Java TOPIC 15 – IF STATEMENTS – PART 2 LESSON WORK QUESTION 1 Copy and
paste the code below into a Java program and find the error (if there is
one).
Write the
program that will convert a numeric mark into its equivalent grade letter. QUESTION 3 Ask the user
for two integer values. One will be
the numerator and one will be the denominator. As long as the denominator is not zero, you
will output the decimal value of the fraction. If it is zero, you should output that one
cannot divide by zero. QUESTION 4 Write the
program that will take an order from the user and output the total
price. Include also a 13% tax on the
price. Finally, the tip should be the
same as the tax amount but rounded up to the nearest dollar. Do not worry
about the number of decimal places being shown. It is fine to have too many! You can
change the menu items but must keep the same prices.
|
||
|