Wrox Programmer Forums
BOOK: Ivor Horton's Beginning Visual C++ 2010
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2010 by Ivor Horton; ISBN: 9780470500880
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2010 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 18th, 2011, 05:36 PM
Registered User
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C++ Calculator

So this is the scenerio I need to do. Example: The Federal government has hired you to develop a program to calculate the taxes owed based on an individuals income. The program should allow the user to input the S.I.N number, followed by the gross income for that person. If the individuals gross income is greater than or equal to $50,000 then the tax rate is .47% if the gross income is less than $50,000 then the tax rate is .44%

In 2007 the Federal government concluded that Canadians are using up too much air, for decades Canadians have been breathing air for free. Seeing this as a potential revenue stream, the government has slapped us with yet another tax, “the air surtax”. This tax will be .07% of your total income that was deducted in the calculation above.

Gross Income 59500.00
Tax Deducted 59500.00 * .47 = 27965.00
Air Surtax 27965.00 * .07 = 1957.55
Total Tax Paid 27965.00 + 1957.55 = 29922.55
Net Income 59500.00 - 29922.55 = 29577.45

Write a structured C++ program that will do the above calculations. You should use at least two functions in your program. The input/output should look like this:

Tax Calculation Program:

Enter S.I.N 458987898

Enter Income 65000

Total Income Tax is 30550 air tax total is 2138.5 Net Income is 32311.5
Enter Another Y/N

If the user hits “Y” the program should loop back and allow for more entries, if the user hits “N” the program should stop.


Can someone help me with this?
Old March 28th, 2012, 10:27 AM
Registered User
Join Date: Mar 2012
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts

If you study the book related to this forum, you should be able to do this exercise.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project calculator earlmw BOOK: Ivor Horton's Beginning Visual C++ 2005 0 February 13th, 2010 11:56 PM
Calculator AdamPembs BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 January 31st, 2010 02:48 PM
calculator mojtaba rashidi Visual Studio 2005 0 March 17th, 2008 07:29 AM
Calculator DweeLer Other Programming Languages 1 November 18th, 2005 08:13 AM
calculator kale_tushar C++ Programming 1 January 28th, 2004 01:09 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.