Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. balance in the account. Design a program that asks the user to enter the dollar amount of the opening balance of an account. Then

1. balance in the account. Design a program that asks the user to enter the dollar amount of the opening balance of an account. Then the program should ask the user to enter the dollar amount of deposits to the account. Use the sum to add this amount to the balance. Next, ask the user to enter the dollar amount of withdrawals from the account during the last month. Use the sum to subtract this from the balance. The program should then display the closing

2. Design a program that asks the user to enter a student's grades on four exams. The program should display the four grades and the average of the four grades, First grade is %10, second grade is %20, third grade is %25 and the fourth grade is %30 of the total grade. To add the grades, use a variable called total_grade, which you should initialize to zero.

3. A bank teller needs a program to total the amount of money in his coin tray. Design a program that asks the user to enter the number of each type of U.S. coin (half dollars, quarters, nickels, dimes, and pennies) and that displays the total value of the coins in dollars and cents.

4. Design a program that asks the user to enter the price of an item and the sales tax rate as a percent. The program should display the total price of the item (price plus sales tax). After obtaining the input from the user, the program should calculate the total price of the item using the equivalent of the following formula: price = price * (1 + sales_tax_rate)

5. Write a program to compute telephone bills for the local telephone company. Each customer has a base charge of 12.95 per month and gets charged extra for each local call and each long-distance call. The program should prompt the user for the number of local calls made during the month. The charge for each local call is $0.10. Use the + = operator to add the cost of the local calls to the total bill. Then the program should prompt the user for the total charge for long-distance calls made during the month. Use the + = operator to add the long-distance charges to the total bill. Finally, the program should calculate the tax on the total bill. The tax rate is 8.72%. Use the *= operator to add the tax to the total bill by multiplying the total bill by 1.0872. The program should display the base charge, cost of the local calls, the cost of the long distance calls, the tax, and the total bill.

They all need to be draw as logic diagram. it has to be draw from. start to stop

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

Step: 3

blur-text-image

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

What is Qos and what is the difference between Diffserv and CoS?

Answered: 1 week ago