Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
27 views

Java Problems: Aiza Sanchez - Domingo

This document outlines 5 Java programming problems involving flowcharts and code conversion. Problem 1 involves declaring variables for initials and outputting them with periods. Problem 2 gets egg count input and displays dozens and leftovers. Problem 3 squares and cubes a user-input integer. Problem 4 calculates a sales transaction with price, commission, and discount. Problem 5 converts hours, minutes, and seconds to seconds.

Uploaded by

Aiza Sanchez
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Java Problems: Aiza Sanchez - Domingo

This document outlines 5 Java programming problems involving flowcharts and code conversion. Problem 1 involves declaring variables for initials and outputting them with periods. Problem 2 gets egg count input and displays dozens and leftovers. Problem 3 squares and cubes a user-input integer. Problem 4 calculates a sales transaction with price, commission, and discount. Problem 5 converts hours, minutes, and seconds to seconds.

Uploaded by

Aiza Sanchez
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

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

You might also like