Write a program that calculates the electricity bill. The rates of electricity per unit are as follows:If the units consumed are <=300, then the cost is Rs. 12 per unit.If the units consumed are >300 and <=500, then the cost is Rs. 17 per unit. If the units consumed exceed 500 then the cost per unit is Rs. 22A line rent of Rs. 1500 is also added to the total bill and surcharges of 5% extra if the bill exceeds Rs. 15000. Calculate the total bill with all the conditions given above. Write a program that calculates the electricity bill. The rates of electricity per unit are as follows: 100% Working Code File is Ready | C++ 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: (9 ratings) 9 out of 9 people…
Category: C++
C++ | Write a program that can be used to calculate the federal tax.
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…
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.
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.
Write a program to create a customer’s bill for an electrical appliances company.
Assume the company sells only THREE (3) different products: Plasma TV, LED TV and LCD TV. The unit prices are RM3500.00, RM3880.00 and RM2890.00, respectively.