Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range ($) Tax Rate SPF GI 0 – 1999 0 % 11 % 1 % 2000 – 2999 5% 12 % 2% 3000 – 4999 8 % 13 % 5 % Above 5000 10 % 17 % 8 % Based on the table given, you are required to write a C programming for a system that accepts the employee's basic salary, and generates the net salary after the respective deductions as described above
Q: 2. Write a C+ program to calculate the net salary for an employee of a company that manufactures…
A: Here is the approach : Create the function for three cases one for the fixed salary , contract…
Q: Write a C program that takes a command line argument of a number that you need to calculate the…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Siyazama High School Grade Management The Siyazama High School principal approached you for your…
A: #include<iostream> int main() { int n,ch; char name1[50]; char name[50]; cout<<" Enter…
Q: The language is C++. Can someone write a function for each these three bullet points. One function…
A: I have completed a similar question in past. I have updated the code according to your needs. please…
Q: Note: Please answer in C++ Programming language. During Eid, it is a tradition for every father to…
A: Input-Output Format: The first line of the input contains a single integer T denoting the number of…
Q: PROBLEM: Write a C++ program that will allow the user to input the First Name, Last name, Middle…
A: - We need to create the grade program.
Q: write a program in c++. You work for a box company, and have been asked to write a program to…
A: PROGRAM INSTRUCTIONS: The C++ program has the following algorithm: Declare and initialize the…
Q: Write a program that computes and assess the TF of the students in one semester, based on the given…
A: In the solution of given problem, first we read the tuition fees, then read the mode of payment…
Q: A military academy accepts candidates according to the following height and weight requirements…
A: FUNCTION boolean checkHeight (int height, char sex) if sex is 'M' or 'm' : return (h>=65…
Q: Please create a C++ program that computes the equivalent resistance of a purely series and purely…
A: Note: This code should be rewritten instead of copying to the compiler otherwise it will throw a…
Q: Write a C program that takes a command line argument of a number that you need to calculate the…
A: Create an input directory and new file using nano command as shown below:
Q: PROBLEM: Write a C++ program that will allow the user to input the First Name, Last name, Middle…
A: #include <iostream>using namespace std; int main(){ string FirstName, LastName,…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: Answer : the code snippet : #include <iostream> using namespace std; class Student {…
Q: In C programming language, if the first and the second operands of operator + are of types int and…
A: Question Given:- In C programming language, if the first and the second operands of operator + are…
Q: Write a C++ program that takes user inputs and display the monthly record of employees and their…
A: class Employees{ private: int id,salary; string name; static float avg_sal;…
Q: Write a program in C++ Jordan University of science and Technology has the following rules for…
A: #include <iostream>//header fileusing namespace std;int main() {//main method int n,m;…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: Note: As you have asked multiple questions, as per our policy we will solve the first question for…
Q: in C++, the definition of any variable (e.g. int x;) tells the compiler about ________. all of…
A: int x; Here int x means data type is integer and variable name is x. If it is int x=5; This means…
Q: Create a simple C++ program using struct named Rectangle, which has two data members width and…
A: Input : Define structure in C++. Input width and length of the rectangle Output : Output area of…
Q: 30 and, Rs. 60 respectively. Design a function that will be called if the customer chooses an…
A: PROGRAM#include<iostream>#include<string>using namespace std;class…
Q: Exercise Write a C++ program to develop a Vehicle Fine Management System for Police. The program…
A: Exercise Write a C++ program to develop a Vehicle Fine Management System for Police. The program…
Q: Write a C program that takes a command line argument of a number that you need to calculate the…
A: #include<stdio.h> #include <stdlib.h> long int factorial(int n) { if (n>=1)…
Q: Note: Please answer in C++ Programming language. During Eid, it is a tradition for every father to…
A: Algorithm: Start Read no.of test cases t Iterate through the loop t times Read N value Read the…
Q: write a program in c++. You work for a box company, and have been asked to write a program to…
A: Below is the required C++ program. Program Approach: Include necessary header files and using the…
Q: in C# Sometimes figuring letter grades is hard. Write a program that asks for, and reads from the…
A: C# program
Q: write a program in c++. You work for a box company, and have been asked to write a program to…
A:
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: As you have asked multiple questions, as per our policy we will solve the first question for you.…
Q: ined function called “Student Registration”. This function prompts a user to enter a student’s…
A: Program: #include<iostream>#include<string.h>using namespace std; struct studenInfo{…
Q: SOLVE IN C PROGRAMMING LANGUAGE Q# 4. Illustrate your knowledge of C-Programming by implementing a…
A: Given: To write a C-Programming to implement a 'Game of Dice'. The user will start with 3 lives and…
Q: PROBLEM: Write a C++ program that will allow the user to input the First Name, Last name, Middle…
A: 1)Read the input from the user first name, last name, middle initial and Grade 2)Display the first…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF),…
A: - We will take the input salary - We will apply the conditions as requested - Calculate the actual…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: Note: As you have asked multiple questions, as per our policy we will solve the first question for…
Q: Please help, this question was rejected for complexity but I really don't have any one else to ask!…
A: SUMMARY: -Hence, we got the result.
Q: Programming Projects 2.4 Project 2.4.1. Write a C++ program to compute the weekly wage for an…
A: Given The answer is given below.
Q: Question 1 Employees in a company receives net salary after the deductions for tax, Staff Provident…
A: PROGRAM CODE: #include <stdio.h> // include header file for input output…
Q: You are required to develop a C++ program using C++ structures, arrays, and user defined functions.…
A: Given question has asked to develop a C++ program in which the college stores each student’s full…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: CODE: #include<iostream>#include<conio.h>using namespace std;struct student{string…
Q: The programming language is C++, write a program base on the given statement. The national…
A: 1. Input the magnitude of the earthquake 2. If the magnitude < 5, 1. Display the message-…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: Vehicle Management System would require the use of: Switch Statements Functions Objects The…
Q: You are required to write a complete C++ program for a simple grading system. You need to input…
A: Use a do-while loop to check whether to continue inside loop or not
Q: SOLVE IN GRAMMIN UAGE Q# 3. Illustrate your knowledge of C Programming by implementing a Bank ATM…
A: Given: To create a C program for Bank ATM machine.
Q: Q2/ Write a program in C++ that works to calculate the area of four rectangular halls of different…
A:
Q: Siyazama High School Grade Management The Siyazama High School principal approached you for your…
A: #include<bits/stdc++.h>using namespace std;vector<string>full_name;vector<int>…
Q: An Auto Insurance Program Example - Write a C++ program to determine the cost of an…
A: PROGRAM: //Header File #include <iostream> using namespace std; //Defining main int main() {…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: Note: As you have asked multiple questions, as per our policy we will solve the first question for…
Q: Write a C++ Program in which Write a C++ program for a new ice cream vendor called PopSalon. The…
A: #include <iostream>#include <string>using namespace std;class popcorn{ public:…
Q: function called “Student Registration”. This function prompts a user to enter a student’s personal…
A: code " #include<iostream>#include<string.h>using namespace std; struct student{ int…
Q: An electricity board charges the following rates to domestic users:- Units consumed Tariff For the…
A:
Q: Write a program that will calculate and print bills for the city power company. The rates vary…
A: The C++ program with the given description will be created as follows: Declare int variables for ID…
Step by step
Solved in 2 steps with 2 images
- (Data processing) Your professor has asked you to write a C++ program that determines grades at the end of the semester. For each student, identified by an integer number between 1 and 60, four exam grades must be kept, and two final grade averages must be computed. The first grade average is simply the average of all four grades. The second grade average is computed by weighting the four grades as follows: The first grade gets a weight of 0.2, the second grade gets a weight of 0.3, the third grade gets a weight of 0.3, and the fourth grade gets a weight of 0.2. That is, the final grade is computed as follows: 0.2grade1+0.3grade2+0.3grade3+0.2grade4 Using this information, construct a 60-by-7 two-dimensional array, in which the first column is used for the student number, the next four columns for the grades, and the last two columns for the computed final grades. The program’s output should be a display of the data in the completed array. For testing purposes, the professor has provided the following data:Computer Science Certain banks are interested in ascertaining the status of their potential borrowers so that they caneither approve or reject their loan requests. The key challenge they are facing is that this processtakes a minimum of 30 days yet the potential borrowers want their loans approved in less than aweek. You have been hired as a statistical programmer since banks are interested in a very timelyand effective system to address the above obstacle. Write a Program in C++In C++ Programming Language(Visual Studio Only) On April 24, 2023, all eight first round NHL playoff series had played three games in their best of seven seriesIn every one of these eight series, one team won 2 of those games, and the other team won 1Suprisingly not a single team had a 3-0 advantage or 0-3 disadvantage!I am not taking the time to look into past years, but doesn't this seem like a rather unlikely event? Develop a C++ program that simulates the first three games of the eight playoff series as many times as reasonably possiblePresume that each team has a 50-50 chance of winning any particular game in the seriesWhat are the odds/probabilities that each of the eight series will all be split in some way between the two teams? you must also create and submit a probability tree diagram that shows what the true mathematics of this situation isHow close to the true odds does your program get? The formula max(5.0 - 0.1x, 2.0) and tree diagram for this problem * x represents…
- Programming - C Language Find the code of the following: 1. FORGIVEN!! Yeeey!! Thanks to your help, my friend Lionel Richie forgave me! In return to his kindness and compassion, I want to give him a gift. I'm thinking of giving him straight up cash! I've already prepared something in advance, I just need your help to complete it. Instructions: In the code editor, you are provided with a main() function that asks for an integer input from the user which represents the cash to be given to Lionel and passes it to the getGift() function call. The getGift() function is already declared and partially defined. Your task is to complete the function definition. The getGift() function multiplies the passed integer value by 3 and then checks if the result is even. If it is, the getGift() function adds 100 to the result. Otherwise, it adds 200 to the result. The getGift() function would then return the result as the return type of this function is int. Input 1. Cash amount…In a C program, there are advantages and drawbacks to use parameters rather of a global variable. Parameters may be sent rather than being stored in a variable.C++ programming It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e.200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500. a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself…
- The answer must be C++ Code MACHINE PROBLEM PROGRAM DESCRIPTION A new video store in your neighborhood is about to open. However, it does not have a program to keep track of its videos and customers. The store managers want someone to write a program for their system so that the video store can operate. The program will require you to design 2 ADTs as described below: [1] VIDEO ADT Data Operations Video_ID (preferably int, auto-generated) Movie Title Genre Production Number of Copies Movie Image Filename [1] Insert a new video [2] Rent a video; that is, check out a video [3] Return a video, or check in, a video [4] Show the details of a particular video [5] Display all videos in the store [6] Check whether a particular video is in the store [2] CUSTOMER PARENT ADT Data Operations Customer_ID (preferably int, auto-generated) Name Address [1] Add Customer [2] Show the customer details [3] Print list of all customers…Siyazama High School Grade Management The Siyazama High School principal approached you for your C++ programming expertise. They want a software solution for their teachers who manage student marks. The teachers record the student’s name and surname, the continuous assessment mark out of a 100 and the final term mark out of 100. They then always work with their class lists to analyse and review the students’ performance.Source: Mlotshwa, M. (2021) Question 5 Write a C++ program that will: Accept student’s information into three parallel arrays. The capture of the students’ marks must be a sentinel-controlled mark that is below zero for either the continuous assessment (term) mark or the final mark. Use a sentinel-controlled loop that will exit when the user types in the word ’Done’ instead of a student’s name. For each mark, use a function: int validateData(string,int) that receives a message to be displayed to the user in case the mark is not acceptable, and also the captured…Siyazama High School Grade Management The Siyazama High School principal approached you for your C++ programming expertise. They want a software solution for their teachers who manage student marks. The teachers record the student's name and surname, the continuous assessment mark out of a 100 and the final term mark out of 100. They then always work with their class lists to analyse and review the students' performance. Source: Mlotshwa, M. (2021) Question 5 Write a C++ program that will: 5.1 Accept student's information into three parallel arrays. The capture of the students' marks must be a sentinel-controlled mark that is below zero for either the continuous assessment (term) mark or the final mark. Use a sentinel-controlled loop that will exit when the user types in the word 'Done' instead of a student's name. For each mark, use a function: int validateData(string,int) that receives a message to be displayed to the user in case the mark is not acceptable, and also the captured…
- Needs to be done in C# language. Problem Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient, the following data should be entered: • The number of days spent in the hospital• The daily rate• Hospital medication charges• Charges for hospital services (lab tests, etc.) The program should ask for the following data if the patient was an out-patient: • Charges for hospital services (lab tests, etc.)• Hospital medication charges The program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out-patient information. Both functions should return the total charges. Input Validation: Do not accept negative numbers for any data.Write this program in C#. Things to add while writing the program please: The choice of appropriate data types (variable type) is necessary Appropriate Variable names must be used Indentation is necessary Write a program that calculates the cost of traveling using a private jet. The program must request the name of the destination and the distance (in kilometers) of the destination. The program must then calculate and print the name of the destination and the cost to get there. The table below gives the cost per mile that must be charged based on the distance. Distance (in kilometers) Cost per kilometer More than 0 but less than or equal to 140 kilometers 17.5 More than 140 but not more than 600 kilometers 12.25 More than 600 but less than 1450 kilometers 9.5 1450 kilometers or more 7.5Why is it even necessary to design functions in computer programming?