Question: JAVA, Write algorithms using pseudocode and draw the flowcharts for the following problems. Example: a) Calculate the total of a retail sale. Ask the user
JAVA, Write algorithms using pseudocode and draw the flowcharts for the following problems. Example:
a) Calculate the total of a retail sale.
Ask the user for the following:
- The retail price of the item purchased
- the sales tax rate
Once these items have been entered, the program should calculate and display the following:
- The sales tax for the purchase
- The total of the bill
Example: If the sales tax rate is 7%, compute 7% of the purchase, add it to the total purchase that would be total of bill.
Total of bill = purchase + 7% of purchase
b) Decide if credit is available
Ask the user for the following:
- The customer's maximum amount of credit
- The amount of credit used by the customer
Once these items have been entered, the program should calculate the customer's available credit by subtracting the amount of credit used from the maximum amount of credit. The program should print out "no more credit available" if the available credit is less than zero or print "credit available" if the available credit is greater or equal to zero
START Input M1, M2, M3, M4 Step 1: Input M1, M2,M3,M4 Step 2: GRADE (M1+M2+M3+M4)/4 Step 3: if (GRADE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
