Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

During the tax season, every Friday, the J&J accounting firm provides assistance to people who prepare their own tax returns. Their charges are as follows:

During the tax season, every Friday, the J&J accounting firm provides assistance to people who prepare their own tax returns. Their charges are as follows:

If a person has low income (<= 25,000) and the consulting time is less than or equal to 30 minutes, there are no charges; otherwise, the service charges are 40% of the regular hourly rate for the time over 30 minutes.

For others, if the consulting time is less than or equal to 20 minutes, there are no service charges; otherwise, service charges are 70% of the regular hourly rate for the time over 20 minutes.

Write a function that prompts the use to enter the hourly rate, the total consulting time, and whether the person has low income. Write another function to calculate the billing amount based on this input. Write a driver to test your program. Make your driver loop so that you can enter test data for:

low income, < 20 minutes

low income, > 20 minutes

high income, < 20 minutes

high income, > 20 minutes.

Hand calculate the expected results using your test data and verify that your program produces the expected results.

Source code must include following steps.

Analysis at the top of the file including your test data sets and predicted results.

Function analysis, preconditions, and postconditions after each function prototype

Major tasks identified as comments in main function

Comments in functions as needed

Need help on following program using c++ langugae.

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions