Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old October 18th, 2011, 05:36 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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?
  #2 (permalink)  
Old March 28th, 2012, 10:27 AM
Registered User
Points: 60, Level: 1
Points: 60, Level: 1 Points: 60, Level: 1 Points: 60, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2012
Location: Germany
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.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project calculator earlmw BOOK: Ivor Horton's Beginning Visual C++ 2005 0 February 13th, 2010 10: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 01:48 PM
calculator mojtaba rashidi Visual Studio 2005 0 March 17th, 2008 07:29 AM
Calculator DweeLer Other Programming Languages 1 November 18th, 2005 07:13 AM
calculator kale_tushar C++ Programming 1 January 28th, 2004 12:09 PM

All times are GMT -4. The time now is 01:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.