Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(What Does This Program Do?) What does the following app display? For Exercises 5.175.20, perform each of the following steps: a) Read the problem statement.

(What Does This Program Do?) What does the following app display?

For Exercises 5.175.20, perform each of the following steps: a) Read the problem statement. b) Formulate the algorithm using pseudocode and top-down, stepwise refinement. c) Write a C# app. d) Test, debug, and execute the C# app. e) Process three complete sets of data.

Exercises 5.17

(Sales Tax) Sellers collect sales taxes from the buyer and remit the tax to a government agency. One seller has to file a monthly sales tax report listing the sales for the month and the amount of sales tax collected both at the county and the state level. Develop a C# program that asks for the total amount collected for the month and calculates as well as displays the total sales tax amount at the county and state levels for the month of transaction. Assume the sales tax is 4% at the state level and 5% and at the county level. It should also use a while loop for taking input and input validation.

Exercise 5.18

(Body Mass Index) Develop a C# program that will determine whether an individual has optimal weight or is underweight or overweight by calculating his or her body mass index. The body mass index is a heuristic measure for human body fat based on an individual's weight and height. In SI units, it is measured as: BMI = mass/height2 Where mass is expressed in kilograms and height in meters. A BMI of 18.5 to 24.9 may indicate optimal weight; a BMI lower than 18.5 suggests that the person is underweight, while a number above 24.9 may indicate the person is overweight. A BMI value more than 30 indicates obesity. The program should use a while loop to input a persons height and weight and calculate his or her body mass index, and determine whether the person is overweight, underweight, or optimally weighted.

Exercise 5.19

(Mortgage Calculator) You have clients who need to calculate interest accrued on their mortgage. Write a C# program that should ask for the a) mortgage amount b) mortgage term i.e., the number of years to pay the loan c) interest rate. It should calculate the total payable interest and add it to the mortgage amount to get the gross amount. Then it should calculate the monthly pay by dividing the gross amount by the number of months. Finally, it should display the monthly payment. The program should use a while statement to input each clients mortgage amount, terms, and interest rate, and calculate and display the monthly interest payable. Process one clients figures at a time.

Exercise 5.20

(Income Tax) Develop a C++ program that uses a while statement to determine the payable income tax for each of several employees. The program should ask for the gross income, standard deduction, personal exemption, and tax rate. Total payable tax should be charged on net income, which is obtained by deducting standard deduction and personal exemption from the gross income of the employee. You are given a list of the employees of the company, along with all the above figures for each employee. Your program should input this information for each employee, and determine and display the employees payable income tax. Assume a tax rate of 15%.

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

Recommended Textbook for

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions

Question

In Problems 1130, solve each equation by factoring. x 2 + 4x = 0

Answered: 1 week ago