Question: C# SAMPLE/FRAMEWORK: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IncomeTaxCalculator { class IncomeTax { public static void Main() { // You aren't provided
C#


SAMPLE/FRAMEWORK:
using System; using System.Collections.Generic; using System.Linq; using System.Text;
namespace IncomeTaxCalculator { class IncomeTax { public static void Main() { // You aren't provided with any example code for this exercise // Your task is to write this program from scratch
Console.WriteLine(" Hit Enter to exit."); Console.ReadLine(); } } }
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 o 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 taxpayer's 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 If the user enters a negative income value, ask the user to re-enter their income. The same is true if the user enters a non-numeric value An income of S0 is okay. If the user enters a negative or non-numeric number of children, ask the user to re-enter their number of childrern If the amount of tax payable is a negative amount or zero, then output "You owe no tax." Example screenshots: hat is your total income: 10000 low nany children do you have 1 ou ove no tax Hit Enter to exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
