Design (pseudocode) and implement (source code) a program (name it IncomeTax) that reads from the user annual income, as integer value, and calculates the income tax based on the tax table below. Income Tax bracket Annual income <= $50,000 5% $50,000 < Annual income <= $200,000 10% $200,000 < Annual income <= $400,000 15% $400,000 < Annual income <= $900,000 25% $900,000 < Annual income 35% The program output should include the entered annual income followed by the applied tax bracket and the tax amount. Document your code and properly label the input prompts and the outputs as shown below. Note: Taxes are computed based on brackets. For example, if one’s income falls in the 25% bracket, the first $50,000 is taxed at 5% rate, the next $150,000 is taxed at the 10% rate, the next $200,000 is taxed at 15% rate, and the remaining income is taxed at the 25% rate. See sample run 3 below. Sample run 1: Annual Income: $25,000 Tax Bracket: 5% Tax due amount: $1250 Sample run 2: Annual Income: $350,000 Tax Bracket: 15% Tax due amount: $40,000
Hey,
Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries
using System;
public class IncomeTax
{
public static void Main(string[] args)
{
Console.Write("Enter annual income: ");
double amount = Convert.ToDouble(Console.ReadLine());
double tax, taxAmount;
if (amount <= 50000)
{
tax = 5;
taxAmount = 0.05 * amount;
}
else if(amount <= 200000)
{
tax = 10;
taxAmount = 0.05 * 50000 + 0.10 * (amount - 50000);
}
else if(amount <= 400000)
{
tax = 15;
taxAmount = 0.05 * 50000 + 0.10 * 150000 + 0.15 * (amount -
200000);
}
else if(amount <= 900000)
{
tax = 25;
taxAmount = 0.05 * 50000 + 0.10 * 150000 + 0.15 * 200000 + 0.25 *
(amount - 400000);
}
else
{
tax = 35;
taxAmount = 0.05 * 50000 + 0.10 * 150000 + 0.15 * 200000 + 0.25 *
500000 + 0.35 * (amount - 900000);
}
Console.WriteLine("Annual Income: $" + amount);
Console.WriteLine("Tax Bracket: " + tax + "%");
Console.WriteLine("Tax due amount: $" + taxAmount);
}
}

Pseudo Code:
Read the income
Initialize tax = 0
If income <= 50000
tax += 0.05 * income
else
tax += 0.05 * 50000
income -= 50000
if income > 0 then
If income <= 200000
tax += 0.10 * income
else
tax += 0.10 * 200000
income -= 200000
if income > 0 then
If income <= 400000
tax += 0.15 * income
else
tax += 0.15 * 400000
income -= 400000
if income > 0 then
If income <= 900000
tax += 0.25 * income
else
tax += 0.25 * 900000
income -= 400000
if income > 0 then
tax += 0.5 * income
print Tax
Kindly revert for any queries
Thanks.
Design (pseudocode) and implement (source code) a program (name it IncomeTax) that reads from the user...
PSEUDOCODE and PYTHON source code! Program 4: Design (pseudocode) and implement (source code) a program (name it MinMaxAvg) to determine the highest grade, lowest grade, and the average of all grades in a 4-by-4 two-dimensional arrays of integer grades (representing 4 students’ grades on 4 tests). The program main method populates the array (name it Grades) with random grades between 0 and 100 and then displays the grades as shown below. The main method then calls method minMaxAvg()that takes a...
PLEASE DO THIS IN JAVA!Design (pseudocode) and implement (source code) a program (name it PhoneBill) that calculates the bill for a cellular telephone company. The company offers two types of service: regular service and premium service. The rates vary depending on the type of service. The rates are computed as follows: Regular service: $15.00 fee covering first 50 minutes. Charges for over 50 minutes are computed at the rate of $0.50 per minute. Premium service: $25.00 fee plus: a. For...
IN JAVA PLEASE Design (pseudocode) and implement (source code) a program (name it PhoneBill) that calculates the bill for a cellular telephone company. The company offers two types of service: regular service and premium service. The rates vary depending on the type of service. The rates are computed as follows: Regular service: $15.00 fee covering first 50 minutes. Charges for over 50 minutes are computed at the rate of $0.50 per minute. Premium service: $25.00 fee plus: a. For daytime...
Do pseudocode in java Design (pseudocode) and implement (source code) a program (name it LargestOccurenceCount) that read from the user positive non-zero integer values, finds the largest value, and counts it occurrences. Assume that the input ends with number 0 (as sentinel value to stop the loop). The program should ignore any negative input and should continue to read user inputs until 0 is entered. The program should display the largest value and number of times it appeared as shown...
PLEASE DO THE PSEUDOCODE FOR THE PROGRAM BELOW Program 3: Design (pseudocode) and implement (source code) a program (name it DistinctValues) to display only district values in an array. The program main method defines a single-dimensional array of size 10 elements and prompts the user to enter 10 integers to initialize the array. The main method then calls method getValues() that takes an integer array and returns another single-dimensional array containing only distinct values in the original (passed) array. Document...
Design in Python (pseudocode) and implement (source code) a program (name it MyRectangle) that defines the following 3 methods: Method isValid() returns true if the sum of the width and height is greater than 30 Method Area() returns the area of the rectangle if it is a valid rectangle Method Perimeter() returns the perimeter of the rectangle if it is a valid rectangle The main method of MyRectangle prompts the user to enter the width and height of a rectangle...
: Design (pseudocode) and implement (source code) a program (name it Circles) to determine if a circle is either completely inside, overlapping with, or completely outside another circler. The program asks the user to enter the center point (X1, Y1) and the radius (R1) for the first circle C1, and the center point (X2, Y2) and the radius (R2) for the second circle C2. The program then determines if the second circle C2 is either completely inside, or overlapping with,...
Pseudocode and PYTHON source code, thanks! Program 1: Design (pseudocode) and implement (source code) a class (name it QuadraticEquation) that represents a quadratic equation of the form of ax2+ bx + x = 0. The class defines the following variables and methods: Private data field a, b, and c that represent three coefficients. A constructor for the arguments for a, b, and c. Three get methods for a, b, and c. Method getDiscriminant()returns the discriminant value, which is disc =...
IN PYTHON ONLY !! Design (pseudocode) and implement (source code) a program (name it Occurrences) to determine whether two two-dimensional arrays are equivalent or not. Two arrays are equivalent if they contain the same values in any order. The program main method defines two two-dimensional array of size 3-by-3 of type integer, and prompts the user to enter integer values to initialize the arrays. - The main method calls method isEquivalent()that takes two two-dimensional arrays of integer and returns true...
Program 5: Design (pseudocode) and implement (source code) a program (name it Weekl yHours) to compute the total weekly hours for 3 employees. The program main method defines a two-dimensional array of size 3x7 to store employers' daily hours for the week. Each row represents one employee and each column represent one day of the week such that column 0 designates Monday, column 1 designates Tuesday, etc. The program main method populates the array with random numbers between 0 and...