Create a C function type of double to process weekly employee time cards for all employees of an organization. Each employee will have three data items: an identification number, the hourly wage rate , and the number of hours worked during a given week . Each employee is to be paid time and a half for all hours worked over 40. A tax amount of 4% of gross salary will be deducted. The program output should show the employee’s number and net pay.
Q: 3. Write a complete C program to calculate total pay which includes net salary and bonus. Listed…
A: According to the information given:- We have to calculate the total pay by following the instruction…
Q: Create the function Calc_Tax that accept the Employee No and returns his Taxes due, according to the…
A: Note :- You have not mention the language of the program so, I'm answering your question in C++.…
Q: Assume on a planet called “Chocolatey”, 1 month = 20 days and 1 year = 240 days = 12 months. Write a…
A: I have created a function named days(). Inside the function, I have taken 2 arrays and used the…
Q: Q1/ Use the structure Time to write a C++ program that inputs a time in hours, minutes and seconds…
A: #include<iostream> using namespace std; //Time Structure struct Time { int h,m,s; };…
Q: Write a C++ program that calculate and display the total fee for B.Sc. program in Engineering…
A: This question from the subject c++ where we have to use function and variables each for one entry.…
Q: python program to create global constants for hourly rate (35.00), square feet per gallon (112), and…
A: Input the price per gallon of paint and the are in square feet to be painted Then, we have to call…
Q: Problem 4 Write a program called p4.py. Fill in the rest of the program, making use of the functions…
A: Solution for the given problem: In this already a list of maximum word is given then computer…
Q: Create a C++ program that uses a function to calculate and display monthly electricity bill based on…
A: /****************************************************************************** Welcome to GDB…
Q: 3. Give the function header for each of the following functions a. Function hypotenuse that takes…
A: We are going to write function definition for the given functions asked in the question. First we…
Q: PROBLEM: Create a void function that prompts the user to input values for the following: • DC…
A: #include <iostream> using namespace std; int main(){ float vts; int ch; float…
Q: I need a C++ program that does the following: Write a program that computes and displays the…
A: The given problem is to be solved in C++ where the program will ask the vehicle details. Based on…
Q: Question 8: Write a C++ program to calculate net pay of an employee. Input basic pay from user, and…
A: Please go through the code for better understanding. Code snippet is attached below the typed code.…
Q: Write a function print_times_table(factor, max_limit) that prints the times table for factor but…
A: Since you have not asked for the solution in any particular lanaguage, So i will provide the…
Q: Write 2 functions in C program that calculate surface area and the volume of 3 (three) b where the…
A: Using switch case :
Q: Problem #1: Write a program that reads from the user the name of a student, the grades of two…
A: Simple output, Your name: Ali your midters 1 grade: 70 your midterm 2 grade: 65 your final year…
Q: b) Write a complete C- Program for Student Grade Computation. Program will use two user defined…
A: Step 1:- Program Approach:- 1.Include header file 2.Create two user-defined function whose name…
Q: Write a C++ program to calculate net pay of an employee. Input basic pay from user, and pass it to a…
A: Actually, program is a executable software that runs on a computer.
Q: Problem 1 Implement a function that checks if a number is within a given range. It should accept the…
A: The programs have been written in Java programming language for it is easy to read, it can be…
Q: 2. Write a C++ program to compute the average thrust of a rocket motor. Program should read weight…
A: //Answer in step2
Q: 1 // C Code 2 int FindMaxInt (int a, int b) 3 { 4 Q1: In C, each function must have a unique…
A: C++ program with same function name to find the maximum of two data type number
Q: Write a C program to compute the area and hypotenuse of a triangle using 3 functions. i) function…
A: Prototype required for different methods : 1. For Calculating Area float area(float, float); 2. For…
Q: Create a C function type of double to process weekly employee time cards for all employees of an…
A: The structure is a user-defined data type in C language which permits us to couple data of varied…
Q: 2. Write a C++ program to compute the average thrust of a rocket motor. Program should read weight…
A: Answer#include <iostream> using namespace std; //function for calculating force double…
Q: Write a C++ Program to calculate Perimeter of Isosceles Trapezoid and Area of Isosceles Trapezoid
A: Input h,b1,b2 Calculate Perimeter and perimeter formula is wrong in given hint it should be…
Q: Program 2: Write a Python program to accept employee name and basic salary of n number of employees…
A: def calculate_allowance(basic_salary): """returns allowance value for given basci_salary"""…
Q: Create a program that will compute the salary of an employee. The program will read the rate per…
A: Required:
Q: PROBLEM #2: Create a function which solves for the surface area and volume of a sphere. Get a radius…
A: Python Code for computing surface are of sphere is in step 2.
Q: Using C. This question deals with determining the slope and the mid-point between two points in a…
A: #include <iostream>using namespace std; void determineSlopeMid(int x1, int y1, int x2, int…
Q: Use the Design Recipe to define a function pulse_rate that has two parameters. The first is the…
A: Please find the answer below :
Q: create a Python program that will determine the total resistance of series and parallel circuits,…
A: We need to read in the voltage and current ,then determine the resistance , and total resistance in…
Q: C) Assume that the main contains the definition of the following variables and/or constants: int…
A: According to the guidelines we are allowed to answer only the first question. - the question asked…
Q: 18-Write a function called items_price that receives 2 lists as input .The first list contains n…
A: Algorithm of function items_price(a, b): 1. Find length of list a as length. 2. Initialize price to…
Q: Write a C++ program that calculate and display the total fee for B.Sc. program in Engineering…
A: Code: #include <iostream>using namespace std; int calculateCourseFee(int ch,int fpc,int…
Q: Geumga Bowling Centre giving a special rate for their customer as shown in Table 1: Table 1: Table…
A: Sample output
Q: . Write a parameter and return program that will require the user to enter a temperature in Celsius…
A: Actually, c++ is a powerful general purpose language. It is a high level language.
Q: Write a C++ program that calculate and display the total fee for B.Sc. program in Engineering…
A: Answer in step2
Q: 5. ANN Consultancy provides various short courses in IT. Below are some of the short courses…
A: Step-1: Start Step-2: Declare variables code=0, persons=0, discount=0, newTotalFees=0, personFees=0,…
Q: b) Write a complete C- Program for Computation of CREEM Ride Fare. Program will use two user defined…
A: Sample Response: //C programming language//Tested on CodeBlock…
Q: Checkpoints 1) Include name, e-mail, and lab# as comments in the code and also include code to…
A: Given: Checkpoints 1) Include name, e-mail, and lab# as comments in the code and also include code…
Q: Write a C program to take a depth (in kilometers) inside the earth as input data; compute and…
A: Required: Write a C program to take a depth (in kilometers) inside the earth as input data; compute…
Q: write c++ function named grade_avg that accept two floating point number (i.e grade1 and grade…
A: float grade_avg(float grade1, float grade2){ if(((grade1+grade2)/2)>0) { return ((grade1 +…
Q: (python) 12. Create a function based on the following information: You prefer a good old…
A: Solution: Given, - the output format should be 'hh:mm a.m.' (for hours before midday) or 'hh:mm…
Q: A C that deletes the desired character in a text that the user has entered on the keyboard write the…
A: Read a text string from the user and deleting a character. Pass the two arguments to the function.…
Q: Use C++ language and Create a function with the name “ten” that takes two arguments. Both arguments…
A: The program reads two value from the user then call the function with two arguments. In the…
Q: Write a program that reads in two numbers and stores them into two variables a and b respectively.…
A: Program approach: Create input function to input values. Create processing function to swap the…
Q: Question 8: Write a C++ program to calculate net pay of an employee. Input basic pay from user, and…
A: Program for the above question is given below:…
Q: Program 2: Write a Python program to accept employee name and basic salary of n number of employees…
A: # Method for Calcualting Allowanancedef calculate_allowance(basic_salary): """returns allowance…
2. Create a C function type of double to process weekly employee time cards for all employees of an organization. Each employee will have three data items: an identification number, the hourly wage rate , and the number of hours worked during a given week .
Each employee is to be paid time and a half for all hours worked over 40.
A tax amount of 4% of gross salary will be deducted.
The
Step by step
Solved in 3 steps with 1 images
- Part 2. Create a C++ program that will input student’s ID, scholarship code (“A/a-D/d”), units and tuition fee. Per unit is 450php and total tuition after adding misc. fee of 1500php and lab fee of 900php and discount. Scholarship Code Description Discount E/e Regular 0%D/d Non-Academic 25%C/c Department 50%B/b College 75%A/a Presidential 100% Output their scholarship code and the net tuition fee.Write a C program that reserves flight tickets for 150 customers to Germany. Write afunction RegCust that for each customer gets name, surname, Passport ID, and age. If the age ofthe customer is less than 18 years old, the customer is not allowed to buy a ticket and the programmust show a warning message to the user. Write another function ResTCKT that reserves thetickets by saving the Passport ID and seat number for the customers. Seat numbers must beassigned randomly between 1 and 150 with no repeating random number. Write a third functionPrintTCKT that shows the complete name of customers and their seat number as tabular formatshown below. You need to use array of structures and pointers for implementation of thisprogram.Struct Customer{char *name;char *surname;int passID;int age;} Custs[150]; Struct Ticket{int passID;int seatNum;} TCKT[150];Write a complete C++ program that can accept the name, quiz1, quiz2, assignment, test and final exam for 10 students in groupA of MTS3013 course. The overall mark is calculated based on 10% of quizzes mark (average of two quizzes), 15% of assignment mark, 25% of test mark and 50% of final exam mark. Determine an appropriate grade for the mark that has been calculated based on the Table 1. Marks Grade 80 - 100 A 70 - 79 B 50 - 69 C
- Write a program, USING C, to read and display the information employees in a group. Then edit the details of the employee and redisplay the entire information. Here is the list of 3 employees in a group: Employee ID Employee name Experience Salary Department 5561 Richard 1 68000 Product Development 5562 Callum 2 100000 Product Development 5563 Elon 4 150000 Product Development Your Code should generate the following output for each of the employees. Example: ********DETAILS OF Employee 1******* Employee ID = 5561 Employee Name = Richard Salary = 68000 Experience = 1 Department = Product Development Richard started learning Data Structure well and applied for a different position in the same company. He was chosen for the new role under a different department. As a result, his salary raised to 200000 and his new Department is Data Science. Modify the details of Richard and…Write a C program which calculates and prints the number of whole days and hours in a given number of hours. There are 24 hours in a day. You will need to use the integer division operator / to calculate the number of whole days and the modulus (remainder) operator % to calculate the number of remaining hours. The output of your program should have the following format. 130 hours is equivalent to 5 days and 10 hours. Please do not change the provided code. Provided code: #include <stdio.h> int main() { int number_of_hours; scanf("%d", &number_of_hours); //type your code here return 0; } For example:Use C++ codingWrite a program that calculates a student's GPA. Ask the user to enter grade and also the credit hours of the course in a loop until user enter “N” or “n”. Earned points in that course becomessum of all points in all subjects/ Total credit hours i.e.,GPA= sum of earned points in all subjects/total credit hoursGrade points of each grade are as followsGRADE GRADE POINTSA 4B 3C 2D 1F 0FOR EXAMPLEYou got “A” grade in Computer Programming theory course and the credit hours are 3.So your earned grade points=4*3=12 Similarly if you get “C” grade in another subject e.g., Computer Fundamentals and the credit hours are also 3 here. Now earned grade points = 2*3=6If you get “B” grade in Circuit and Systems theory and the credit hours are 3. So yourearned grade points=3*3=9 Now your GPA = (12+6+9) / 9 = 3
- A company hired 10 temporary workers who are paid hourly, and you are given a data file (Problem_02_Data.txt) that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee’s weekly pay and the average salary of all the workers. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40 hours, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees, and a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week, the hourly pay rate, and the weekly pay. Your program must contain at least the following functions—a function to read…Create a c++ program that asks the user to enter all of his 3 quizzes during the preliminary coverage. The program would then compute the average of these 3 quizzes. Afterwards, the program would ask the user again to enter 3 quizzes for his/her midterm coverage. The program again would compute the average for the quizzes for the midterm coverage. Use the math function max() to find out which of the two average grades are highest. Example: Please enter 1st prelim quiz: ____ Please enter 2nd prelim quiz: ___ Please enter 3rd prelim quiz: ___ Please enter 1st midterm quiz: ____ Please enter 2nd midterm quiz: ____ Please enter 3rd midterm quiz: ____ The average of your quizzes in prelims and midterms are: 93 for prelims and 97 for midterms. 97Q 4) Write a c# program to calculate and print the bill of a given customer. [2] The customer id., name and unit consumed by the user should be taken from the keyboard and display the total amount to pay to the customer. The charges are as follow: Unit Charge/unit upto 199 @1.20 200 and above but less than 400 @1.45 400 and above but less than 600 @1.70 600 and above @2.50 If bill exceeds Rs. 400 then a surcharge of 16% will be charged and the minimum bill should be of Rs. 150/=
- SCRIPT MUST BE IN C AND UTILIZE HEADER FILE, THANK YOU. 1) By using a header file for the computation of the resistance, create a script with if, else if, and else conditionals to calculate the Total Resistance (R_T),when r1 = 10 Ω, r2 = 20 Ω, and r3 = 30 Ω. 1) r1 , r2, and r3 are connected in series manner. (R_T= r1+r2+r3)2) r1, r2, and r3 are connected in parallel manner.(R_T = 1/((1/r1)+(1/r2)+(1/r3)) )3) r1 is connected to the parallelly connected r2 and r3 in series manner. (Let’s call thisCombination) (R_T = r1 + r2xr3/(r2+r3) ) The user should be prompted to type in the values of r1, r2, r3 and the choice of the connection.Based on the choice of connection in your script, your script should generate ONLY ONE output out ofthese followings with the numerical result. The Total Resistance is [your result] ohms since r1, r2, r3 are connected in series manner.ORThe Total Resistance is [your result] ohms since r1, r2, r3 are connected in parallel manner.ORThe Total Resistance is [your…The Grocery store bill/receipt generating described in Ex 2.1 above for at least five items should be automated in C++. The customer's name, the item's name, the price, and sales tax and VAT are all required by the software. Net total is calculated after a 5 percent reduction on gross total is taken into account in the program's sub-total (cost + tax). The final bill/receipt is generated by the application in the correct format..Write a C program to process weekly employee time cards for all employees of an organization. Each employee will have three data items: an identification number, the hourly wage rate , and the number of hours worked during a given week . Each employee is to be paid time and a half for all hours worked over 40. A tax amount of 4% of gross salary will be deducted. The program output should show the employee’s number and net pay.