Question
You have been asked to model an Income Tax proposal from the Single Rate of Tax party. There will be a single income tax rate
You have been asked to model an Income Tax proposal from the Single Rate of Tax party.
There will be a single income tax rate of 2% for everyone. Each taxpayer will receive a deduction of $10,000 regardless of their income amount in order to remove the need to keep receipts of various tax deductible expenditures. For each dependent child there will be a deduction of $2000.
A taxpayers income is reduced by the total amount of their deductions before the amount of tax payable is calculated.
Write a program which will ask the user initially for their total income, which will be a whole dollar amount followed by the number of children that they have and the program will output the amount of tax that the user will be required to pay.
For this exercise, you may assume that the input from the user will always be valid.
Example screenshot:
It is important that you display the exact same messages as in the example. If your program displays something else you may fail the exercise even if your program does the conversion correctly. If you still have difficulties, here are some tips:
Make sure your Main() function is declared public static void Main(). If your Main() function is private, the code will still work in Visual Studio but it will not work in AMS.
If your code uses Console.ReadKey(); it should be replaced with Console.ReadLine();.
Make sure your code displays exactly what the problem asks you for. If you can, copy and paste the text you need to display into your function to avoid possible transcription errors. If there are any mistakes at all your code will not pass.
USE THE SAMPLE CODE BELOW TO COMPLETE
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IncomeTaxCalculator class IncomeTax public static void Main() /I You aren't provided with any example code for this exercise /I Your task is to write this program from scratch Console.WriteLine("nn Hit Enter to exit."); Console. ReadLine()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started