The program must accept the Employee Number, Salary and Employee job grade, calculate each employee's Tax amount based on their Job grade. For example, all Executives are taxed at 25% of their salary, 20% for Senior Management, etc. (refer to the table below). Job grade Description Tax percentage 1 Executives 25% Senior Management 20% 3 Middle Management 15% 4 Junior Management 10% At the end of the program, the program must generate a report of total Tax amount per Job grade and grand total to be paid to SARS (see screen shots below).
Q: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as…
A: Required:
Q: 1 The salary scales of workers in an institution are taken as input. The workers get paid as per the…
A: Solution 1 - Programming language used - C All necessary comments are included in program code.…
Q: Introduction to Python programming
A: # prompt the user to enter the number of packages purchased. number = int(input("Enter the number of…
Q: A particular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each…
A: The complete code in python programming language is below:
Q: Programming Exercise 2-8 // Declare variables for food charges, tip, tax, and total. Declare Real…
A: Here I have created constants using the final keyword to store the value of tip and tax rate. Then,…
Q: Świtch Statement Problem 5. Electric Bill: Write a program that will calculate and show bills of the…
A: The problem is based on the basics of conditional statements in C programming language.
Q: The program prints the user's identifier (which could be an email address, a phone number, or a…
A: Below I have provided the java code of the given program. Also, I have attached the output of the…
Q: Write a program to input each staff's information of a company (Including name, status of Covid-19…
A: //c program #include <stdio.h> int main() { char name[5][20],status[5]; int…
Q: Assume that you have price distributions as follows: (000 - 299 $), (300 – 599 $), (600 – 899 $),…
A: Program approach:- Using the necessary header file. Define the main function. Displaying STAR for…
Q: "### Exercise 1 ###\n", "\n", "The table presented below gives a final grade based on the amount of…
A: Input number of points received from the user. Check if points less than 500, then set grade as 0.…
Q: Problem Solving 1 – Shipping Charges The currier express company charge the following rates within…
A: I give the code in C++ along with output and code screenshot
Q: My Solutions > Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: We need to write a function using Matlab to compute income tax.
Q: please help me solve this problem the language is C++
A: Program Instructions:Ask the user the name of each friend one by one.Calculate the 20% tip, total…
Q: QUESTION 2 An event for a company is designed to bring customers from Kuala Lumpur to a gathering in…
A: As the language is not specified answer written in c++ Introduction to the problem: 1)using if…
Q: Write a multiple-alternative if statement to display a message indicating the designation of an…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as…
A: Use an if condition to check the damage type and perform respective calculations and display…
Q: Create a counter for each type of item sold (Falafels, Sodas, Extras). 2) When the ‘T’ key is…
A: #include<iostream> #include<iomanip> using namespace std; int main(){ int…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: Swift code to solve the given problem
Q: • Read from the user the number of cities (minimum 6 cities.) • For each city: city name and the…
A: given data
Q: Complete the flowgarithm/pseudo code for the following scenario and upload into drop box Program…
A: pseudo code is the steps required to solve a particular problem in informal language. It uses common…
Q: Write one line of code ONLY. Use concatenation to print the variables given below in one line with a…
A: python code: A="Artificial"I="Intelligence"print(A +" " + I)
Q: Senior salesperson and junior salesperson are paid per a week. Write a program that accepts as input…
A: The iostream is the header needed as the fundamental I/o streaming item. h ,a file of similar type…
Q: The Meteorological service requires a program to allow the operator to enter the rainfall level. The…
A: use while loop to take values until zero is pressed. store the values into array and then find min…
Q: 4. Calculate employee's pay A program is required by a company to read an employee's number, pay…
A: We need to write a code to perform given functions.
Q: An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance…
A: Program Explanation – Import the essential java libraries. Declare the class named as Main.…
Q: ISSUE NEEDED TO BE SOLVED: I attached the error codes that keep presenting themselves with the code…
A: Below is the explanation:
Q: QUESTION 1 a) Based on the requirement given below, prepare a flowchart for a program develop for…
A: A flowchart is defined as the unified modeling language diagram it describes the flow of events or…
Q: Question Print Daily Company (PDC) needs a program that displays weekly salary. PDC has five…
A: Code with the OOP approach in JAVA is given below along with output
Q: 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User input should…
A: Given :- 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User…
Q: a) Write the C++ statements for following tasks: Declare a struct name GameRecord The members are…
A: The question is to write C++ code for the given problem.
Q: Write a program that has variables to hold three test scores. The program should ask the user to…
A: import java.util.Scanner; public class Main{ public static void main(String args[]) {…
Q: A local recording studio rents its facilities for $200 per hour. Management charges only for the…
A: public Class Studio02 'Declare the constants.03 Private TotalNumberSumInteger, AveragesumInteger As…
Q: Background: Commissions are a form of employee payment where the employee, usually a salesperson,…
A: It is defined as a term which is often used in programming and algorithm based fields. It is a…
Q: DESCRIPTION Please make sure you use python 3+ version to do all of your homeworks. Please use…
A: Program: def main(): less_than_30000_count=0 between_30K_50K_count=0…
Q: Nested-if structure Book Club Memberships Yes No Non Student 300 200 Student 60 50 Write a…
A: Note: No langauge is mentioned, therefore answering the given question in python. # Input the…
Q: Programming Problem: Grading system conversion from percentage to numerical. The program will ask…
A:
Q: Exercise II Write a program that finds the positive integer solutions of the following equation ax³…
A: Sample Response: //C++ program to find teh solution of a cubic equation by testing each integer from…
Q: The Barking Lot is a dog day care center. Design a flowchart or pseudocode for the following: a. A…
A: Step 1:- Note:-I am giving the solution of part (a),(b) and (c) Introduction:- Pseudocode:-It is…
Q: Write a structure to store the names, salary and hours of work per day of 10 employees in a company.…
A: Read the name, salary, hours for every Employee and based on hours update the salary accordingly
Q: The Barking Lot is a dog day care center. Design a flowchart or pseudocode for following: a. A…
A: Code input complete data of dog and displays the total amount spend by owner tor dog maintenance…
Q: Jane has opened a new fitness center with charges of 2500 per month so the cost to become a member…
A: Program: //include the required header files #include <iostream> #include <string>…
Q: // A standard mortgage is paid monthly over 30 years. // This program is intended to display 360…
A: Answer: for(int i=0; i<30;i++)//this loop is for the year for(int i=0;j<12;j++) printf("the…
Q: A clinic requires a program to calculate the body mass index (BMI) and display the BMI value and…
A: Input weight in kg Input height in meter Calculate BMI=weight/height2 IF BMI<24 THEN Print "Under…
Q: Write a program that calculates and displays a person's body mass index (BMI). The BMI is often used…
A: Below is the required C++ program: - Explanation: - Importing the header files and the namespace.…
Q: The Barking Lot is a dog day care center. Design a flowchart or pseudocode for the following: a. A…
A: a) START Declare Id, name, breed, age, weight, bill_amt Read value into Id, breed, age, weight If…
Q: KEMBOJA Hospital provides top-notched medical care with comfortable rooms. The following are the…
A: Note : as per company guidelines we are supposed to answer only first 3-sub parts . please repost…
Q: Summary 2 EmployeeBonus.py - This program calculates an emplo productivity bonus. 3 In this lab, you…
A: Decision making is needed to execute a code or block of statements only if a certain condition is…
Q: My Solution Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: function…
Q: Activity 20 Electric Bill: Using Switch Statement, write a program that will calculate and show…
A: Solution :: #include <iostream> using namespace std; int main(void){ // Your code here!…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Step by step
Solved in 2 steps with 1 images
- An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance Note: Use switch cases when you check the total number of accidents.Software SalesA software company sells a package that retails for $99. Quantity discounts are given accordingto the following table:Quantity Discount10–19 10%20–49 20%50–99 30%100 or more 40%Write a program that asks the user to enter the number of packages purchased. The programshould then display he number of packages purchased, the amount of the discount (if any) and the total amount of the purchase after the discount.In the ChiliToGo program in Exercise 12, the costs to produce an adult meal and a child’s meal are $4.35 and $3.10, respectively. Adult meals are sold for $7.00 and children's meals are sold for $4.00. Modify the ChiliToGo program to display the total profit for each type of meal as well as the grand total profit. An example of the program is shown below: Enter number of adult meals ordered >> 10 Enter number of child meals ordered >> 5 10 adult meals were ordered at 7.0 each. Total is 70.0 5 child meals were ordered at 4.0 each. Total is 20.0 Grand total for all meals is 90.0 Profits: Adult profit is 26.5 Child profit is 4.5 Total profit is 31.0
- issignment Portion - hand in your wo nce completed "4.2 (Geometry: gneat circle distance) The great circle distance is the distance between two points on the surface of a sphere. Let(x1,y1)and(x2,y2)be the geographical latitude and longitude of two points. The great circle distance between the two points can be computed using the following formula: \[ d=\operatorname{radius} \times \arccos \left(\sin \left(x_{1}\right) \times \sin \left(x_{2}\right)+\cos \left(x_{1}\right) \times \cos \left(x_{2}\right) \times \cos \left(y_{1}-y_{2}\right)\right) \] Write a program that prompts the user to enter the latitude and longitode of two points on the earth in degrees and displays its great circle distance. The average radius of the earth is6,371.01 km. Note you need to convert the degrees into radians using the Math, toRadi ans method since the Java trigonometric methods use radians. The latitude and longitude degrees in the formula are for north and west. Use negative to indicate south and…3.8: Software SalesA software company sells a package that retails for $99. Quantity discounts are given according to the following table:Quantity Discount10-19 20%20-49 30%50-99 40%100 or more 50%Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. For instance, to calculate 20% of a value N, you can use the formula:(20 / 100.0) * N (or 0.2 * N).After all loan information is input, the program should output the loans in the following format: Sanchez Construction Loan #1 Name: Joe $10000.0 for 5 year(s) at 9% interest Loan #2 Name: Sara $5000.0 for 3 year(s) at 10% interest Loan #3 Name: Mike $975.0 for 1 year(s) at 10% interest Loan #4 Name: Jane $7000.0 for 5 year(s) at 9% interest Loan #5 Name: Peter $300.0 for 1 year(s) at 9% interest
- Fast Food Restaurant Lab Assignment 1) Create a counter for each type of item sold (Falafels, Sodas, Extras). 2) When the ‘T’ key is pressed for the total, display the count and subtotal for each item, the subtotal for all items,compute tax at 8.7%, display the amount of tax, and the final total for all items plus the tax.3) Use a constant (const in C++, or #define in C) to define the tax rate.4) Each display should contain two digits past the decimal point.5) The program must process unexpected or illegal inputs. If the user enters a menu selection that is invalid, an error message must be displayed.A mobile phone service provider has three different subscription packages for its customers: Package A: For $39.99 per month, 450 minutes are provided. Additional minutes are $0.45 per minute. Package B: For $59.99 per month, 900 minutes are provided. Additional minutes are $0.40 per minute. Package C: For $69.99 per month, unlimited minutes are provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of minutes that were used. The program should display the total charges.C CODE PLEASE 3.28 Fixed LAB: Warm up: Automobile service cost (1) Prompt the user for an automobile service. Each service type is composed of two strings. Output the user's input.Ex: Enter desired auto service: Oil change You entered: Oil change (2) Output the price of the requested service. Ex: Enter desired auto service: Oil change You entered: Oil change Cost of oil change: $35 The program should support the following services: Oil change -- $35 Tire rotation -- $19 Car wash -- $7 If the user enters a service that is not listed above, then output the following error message: Error: Requested service is not recognized
- The following code intends to input a user’s first name, last name, and age.However, it has an error. Fix the code.string fullName;int age;cout << "Enter your first and last name." << endl;cin >> fullName;cout << "Enter your age." << endl;cin >> age;cout << "You are " << age << " years old, " << fullName << endl;Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…