Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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: image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago