Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%.Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information:Marital statusIf the marital status is “married,” ask for the number of children under the age of 14Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.)Percentage of gross income contributed to a pension fund Your…
Category: Computer Science
Write a program to calculate the total cost to enter into a waterpark for a family/group.
Write a program to calculate the total cost to enter into a waterpark for a family/group. Ticket rates are listed below kids (Age 12 and under) 12.50 Regular( Age between12 -55) $18.25 Seniors (55 and above) $15.00 Tax-7% Your program should ask the user to enter the total number of members in their group. User needs to enter the ages for all members. An array should be used to store the ages of the family members. Based on the age it has to calculate the cost of each member and calculate the total cost including tax. Your program should display the number of tickets for each type and the total cost for the group. After display your program should repeat the process until the user wants to stop. Write appropriate error messages for invalid entries. Your program must use 1. Array 2. While or do while loop 3. Constant variable…
Design a program to input the basic salary of a worker and compute the net pay assuming the following conditions:
Design a program to input the basic salary of a worker and compute the net pay assuming the following conditions House allowance of 17% of basic salary Entertainment allowance of Ksh 4,000 Medical allowance of Ksh 6,000 Transport allowance of Ksh 3,000 Tax of 12% of gross salary Solved by verified study co-pilot All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area. Get Solution Contact Us Student review: (1 rating) 1 out of 1 people found this solution helpful.
A program is required to compute the volume of a cube given by the formula; V = L*B*H*.
A program is required to compute the volume of a cube given by the formula; V = L*B*H*. Design this program using an algorithm of your choice; and convert the algorithm into a C++ Program. 100% Working Code with Output Given Solved by verified study co-pilot All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area. Get Solution Contact Us Student review: (2 ratings) 2 out of 2 people found this solution helpful.
Lab Work 2: Implement a coffee shop example.
In this coffee shop, everything must progress as if it does in real life. It means that the program should ask a person for body temperature in Celsius, and grant or reject access to a coffee shop.
Python program for an online MoonBucks coffee order.
Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax.
Write a C++ program using array and loop that prompts a user to enter 15 Students marks in Program Design and Implementation (PDI) Module in an array.
The program sorts the students’ marks in descending order using a loop and displays the marks of all students as well as lowest, highest, average marks, and the class result based on the average module marks.