Question

The following are from the Algorithm Workbench in your book on page 140. You are to...

The following are from the Algorithm Workbench in your book on page 140. You are to complete one of these three for your practice program:

25.      A retail store grants its customers a maximum amount of credit. Each customer’s available credit is his or her maximum amount of credit minus the amount of credit used. Write a pseudocode algorithm for a program that asks for a customer’s maximum amount of credit and amount of credit used. The program should then display the customer’s available credit.

After you write the pseudocode algorithm, convert it to a complete C++ program.

26.      Write a pseudocode algorithm for a program that calculates the total of a retail sale. The program should ask for the amount of the sale and the sales tax rate.   The sales tax rate should be entered as a floating-point number. For example, if the sales tax rate is 6 percent, the user should enter 0.06. The program should display the amount of sales tax and the total of the sale.

After you write the pseudocode algorithm, convert it to a complete C++ program.

27.      Write a pseudocode algorithm for a program that asks the user to enter a golfer’s score for three games of golf and then displays the average of the three scores.

After you write the pseudocode algorithm, convert it to a complete C++ program.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Sorry, As you posted multiple questions at a time, As per HomeworkLib rules we can able to answer only one question at a time per post. Please post remaining question separately then only we can able to answer due to the rules we have. I think you will understand my concern, Please cooperate.

Answer:-

Firstly the below is the Pseudocode Algorithm for Available Credit

Code:-

Display " Enter the customer's maximum credit amount "

Read Maximum_Credit

Display "Enter amount of credit used"

Read Amount_Credit

Available_Credit = (Maximum_Credit - Amount_Credit)

Display Available_Credit

C++ Code:-
# incluce <isotream>

using namespace std;

void main ()

{

double maxCredit, CreditUsed, availableCredit = 0 ;

count <<"Enter the customer's maximum amount of credit: " ;

cin >> maxCredit;

availableCredit = maxCredit - Creditused;

count << "The customer's available Credit is $ "<<end1 ; ;

count << availableCredit << end1 ;

system ("pause") ;

If you find any difficulty with the code, please let know know I will try for any modification in the code. Hope this answer will helps you. If you have even any small doubt, please let me know by comments. I am there to help you. Please give Thumbs Up,Thank You!! All the best

Add a comment
Know the answer?
Add Answer to:
The following are from the Algorithm Workbench in your book on page 140. You are to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can you send the code and the screenshot of it running? 1) Create a PYHW2 document...

    Can you send the code and the screenshot of it running? 1) Create a PYHW2 document that will contain your algorithms in flowchart and pseudocode form along with your screen shots of the running program. 2) Create the algorithm in both flowchart and pseudocode forms for the following two functions: A. Write a Python function that receives a real number argument representing the sales amount for videos rented so far this month The function asks the user for the number...

  • Property Tax Program -Must use C programming I attempted this program but couldn't figure what I...

    Property Tax Program -Must use C programming I attempted this program but couldn't figure what I did wrong ;( Property Tax Program Complete the following program: A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is (4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the...

  • Conditional Statements in C++ 1. Your company has decided to offer a rewards program for its...

    Conditional Statements in C++ 1. Your company has decided to offer a rewards program for its loyal customers. The rewards program offers three levels, Gold(G), Silver(S), and Bronze(B). Discounts on the customer’s sales receipt are provided in the table below along with additional discounts for only the amount of the purchase over $200.00. A maximum discount amount for any purchase is $30.00. Your program should prompt the user for their current reward level and sales receipt amount. Based on the...

  • Write an Algorithm in Pseudocode for the Exercises Below Add 5 numbers that a user enters...

    Write an Algorithm in Pseudocode for the Exercises Below Add 5 numbers that a user enters by keyboard and display the Total on screen. Compute the area of a rectangle and display on screen based on length and width values that the user enters by keyboard. Compute the new price for a product that’s on sale for 10% off. Display new calculated price on screen. Assume current price is $25.00. Add the prices of an order of fries, a burger...

  • Your instructor would like you to write a program in Java which would ask for the clerk to enter ...

    Your instructor would like you to write a program in Java which would ask for the clerk to enter the total amount of the customer’s order. The program will then calculate a seven percent (7%) sales tax. Commission is computed based on the following: order amount id="mce_marker" - $200 commission is 2%, order amount $201 - $400 commission is 3%, order amount $401 - $600 commission is 4%, order amount > $600 commission is 5%, The program will display the...

  • Problem: Design and write a C language program that can be used to calculate Voltage, Current...

    Problem: Design and write a C language program that can be used to calculate Voltage, Current and Total Resistance for a Series or Parallel or a Series Parallel circuit. The program should display the main menu that contains the three types of circuit calculations that are available and then the user will be prompted to select a circuit first. After the circuit has been selected the program should then display another menu (i.e., a submenu) requesting the necessary data for...

  • For this assignment, you will implement an “automatic reload” algorithm for an EZ Pass account. You...

    For this assignment, you will implement an “automatic reload” algorithm for an EZ Pass account. You may work in pairs for this assignment. However, keep in mind that both students are still responsible for understanding how to code in Matlab. For the scenario, you will start with $35 in your EZ pass account. And when your account balance drops below $10, the code will automatically reload $25 to the account. When your matlab code is run, it should at minimum...

  • You want to write a converter program which will let user convert distance and weight from SI to ...

    Use functions to complete this C + + program You want to write a converter program which will let user convert distance and weight from SI to the USCS system and vice versa The formulae are as follows: 1. Distance in miles- distance in kilometers x 1.60 2. Weight in kilograms weight in pounds x 2.20 The program would let user input the number that they want to convert and then choose the units to and from which they want...

  • write a c++ program. A real estate broker sets fees for selling properties according to the...

    write a c++ program. A real estate broker sets fees for selling properties according to the property type as shown in the table. The broker wants you to write a program that prompts the user for the broker type, sale price of the property and the property code. If the user enters an invalid property code or broker code, the program should display an appropriate message and end the program. Allow the user to enter uppercase and lowercase letters. If...

  • In C++ Practice Exercise #3a (Calculator) Warm-Up/Version 1 Write a program that vwill get two numbers...

    In C++ Practice Exercise #3a (Calculator) Warm-Up/Version 1 Write a program that vwill get two numbers from the user and then add them together and display the result. . Step 1: Create algorithm/pseudocode . Step 2 (Optional): Watch this video: https:/lyoutu.beyjucjusHSgg Step 3: Code program Submit: . Algorithm/Pseudocode in a separate file . Version 1 source file. Make sure to upload both files before hitting submit Notes: You just need . As with the other Practice Exercise, you can submit...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT