JAVA PROBLEMS
Aiza Sanchez - Domingo
PROBLEM 1
Create a Flowchart that declares three variables to
hold user’s initials. Display the three inputted initials
with a period following each one, as J. M. F. Convert
your flowchart to java program. Class name
INITIALS
PROBLEM 2
Create a Flowchart that declares variable to hold
number of eggs of a chicken. Your flowchart will
display the number of eggs inputted by the user in
dozens. Example: 50 eggs is 4 full dozen and 2 left
over. Convert your flowchart to Java program. Class
Name EGG
PROBLEM 3
Create a flowchart that ask the user to enter an
integer variable. Compute the square and cube of
the inputted number and display. Convert your
flowchart into Java program. Class name
SQRCUBE
PROBLEM 4
Create a program that displays the result of a sales
transaction. The calculation requires three numbers.
The first number represents the product price. The
second number is the sales person commission.
These two numbers should be added together. The
third value represents a customer discount; subtract
the third number from the result of addition.
Convert your flowchart into Java program. Class
Name SALE
PROBLEM 5
CAF that ask the user to enter time in Hour:
Minutes: and Seconds. Your flowchart should
convert the inputted values in seconds.
Example: 2 Hours 40 minutes and 30 seconds is
equal to 9630 seconds. Convert your flowchart into
program. Class name TIME