write a program c++ A General Service company hired you to write a program to compute the total charge for the services rendered to their client. The program will ask first if there is a material needed or not. If there is, the program will ask if what material is needed. The program will then ask for the cost of that materials entered and the number of hours of the services rendered. Finally, the program will compute for the labour cost and the total charge. Assumption: Rate Computation: Labour : Total Charge Materials: 1.) Electricals 2.) Electronics 3.) Construction 4.) Sanitary $45.00 per hour Rate * hours work : Labour + Cost of Materials
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: Programing in c This program will calculate how pricy two products will be in 2030. It will begin by…
A: Note: Comments have been included in the source code itself to have a better understanding of the…
Q: Need Help solving this in C++ language . Prompt for and get the user’s number of donuts to buy…
A: In this program, you need to take input from user for number of donuts and number of people. After…
Q: write in c programming Q# 3. Implement a Tour Planner and Budget Calculator for Holidays. Program…
A: Declare necessary variables. Read input from the user such as number of persons, number of days, and…
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 C PROGRAM that computes and prints the area of a rectangle given its length and width. Your…
A: I give the code in C along with output and code screenshot
Q: In C++, please write a program according to the instructions and all the criteria. Thank you.…
A: Solution:-- 1)As given in the question is to provide the code for required specifications in…
Q: write a program in c++. You work for a box company, and have been asked to write a program to…
A: Hi student, hope you are doing well. This question is about writing a C++ program to display a table…
Q: Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF),…
A: C program to solve the given problem.
Q: Write a progarm in C compiler that inputs three variable from the user of type: int, float and char.…
A: Please find the answer below :
Q: A chemical sensor works to read the value of pollution in four industrial sites every four hours a…
A: Required: write a program in C ++ language that works to read the pollution values in those sites…
Q: write a program c++ A General: Service company hired you to write a program to compute the total…
A: The program will take the user input of material service and hours to compute the total charge for…
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 program (in C++) which acts as a four-function calculator (addition, subtraction,…
A: #include <iostream>using namespace std; int main(){ int ch; float n1, n2, res;…
Q: Write a C++ program that calculates the Perimeter of a circle. The main function asks the user to…
A: C++ is one of the most popular programming languages developed by Stroustrup at Bell Labs. The basic…
Q: Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF),…
A: The following is the arrangement:
Q: Write a C++ function: int rectArea (int len, int wid) that returns the area of a rectangle with…
A: Algorithm 1. Start 2. Var Len, wid, area 3. Accept len and wid from user 4. Area=rectArea (len, wid)…
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 that converts Omani Riyals to United States Dollars. The main function asks the…
A: #include <iostream> using namespace std; //Function prototype double OMRtoUSD(double OMR); int…
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: In C++ Read and understand the following problem: 1. Write a program that accepts from the user a…
A: Here we need to accept quantity and price of that product.
Q: Write a c++ code to print out these requirements, and put a comment and brief description of the…
A: #include <iostream>#include <iomanip>#include <string> using namespace std; int…
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: Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF),…
A: Given table and asked to find the netsalary when basic salary is given: Table is given with…
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: wite in c programming Q # 2. Illustrate your knowledge of C-Control Structures and implement an…
A: C Program: #include <stdio.h>int main(){ double price,total_bill=0.0; int unit; char…
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: Write a C program that takes a command line argument ofa number that you need to calculate the…
A: Given: Please also explain how to put the input.
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: Q7/ Write a program in C++ that asks the user to enter two numbers and prints the sum, product and…
A: PROGRAM CODE: #include<iostream>using namespace std; // function declarationdouble…
Q: Write a unit conversion program in C++ that asks the users from which unit they want to convert…
A: Actually, program is a executable software that runs on a computer.
Q: 4. Write a C++ program to implement the Number Guessing Game. In this game the computer chooses a…
A: Write a C++ program to implement the Number Guessing Game. In this game the computer chooses a…
Q: Write a C++ program to develop a Vehicle Fine Management System for Police. The program will have…
A: Answer is given below .
Q: 1. Write a program in C which is a Menu-Driven Program to compute the area of the various…
A: Note that there were no restriction stated hence made this way. I have created both the program. I…
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: PROBLEM: Write a C++ program that will display a menu consisting of 3 brands of soda, 3 kinds of…
A: Code: #include <iostream>#include <cstdlib>#include <iomanip>using namespace std;…
Q: Write a complete C++ program that calculate a patient's treatment charge based on the types of…
A: C++ code for the requirement: #include <iostream>using namespace std; float…
Q: In C program Write a program that calculates mileage reimbursement for a salesperson at a rate of…
A: Actually, program is executable software that runs on a computer.
Q: Q # 4. Illustrate your knowledge of C-Programming by implementing a 'Game of Dice'. User will start…
A: PROGRAM CODE: #include <stdio.h>#include <stdlib.h>int menu();int roll_a_dice(); int…
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: write a C++program that finds the total amount to be spent on a vacation. In Main ask the user for…
A: Since the bill is given as 0.08 cents per miles driven , I have converted 0.08 cents to dollar i.e.…
Q: Write a C++ program having the following functionality. You will create bank accounts (either…
A: Given: Details for creating bank accounts for two people. Programming language: C++ Aim: Annual…
Q: write a program c++ A General Service company hired you to write a program to compute the total…
A: Given: Assumption: Rate $45.00 per hourComputation: Labour : Rate * hours work Total…
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 that will ask user to input integer and it will display a magic square in a row…
A: Algorithm: if condition then something if; elseif condition then…
Q: An electricity board charges the following rates to domestic users:- Units consumed Tariff For the…
A:
Q: Write a c++ program to display a calendar for a given year. Type of Branches such as switch…
A: PROGRAM STRUCTURE: Include all the required header files. Write a function that gives out the index…
Q: In C++, Write a program that asks the user to enter two numbers, obtains the two numbers from the…
A: The Answer is in Below steps
write a
Step by step
Solved in 2 steps with 1 images
- Using python, define the following function This function must return the task status for a particular task from a checklist. There's the possibility that the task specified is invalid (in this case, because it isn't in the checklist). In that case, taskStatus must print a specific message , and must return None. Define taskStatus with 2 parameters Use def to define taskStatus with 2 parameters Use a return statement Within the definition of taskStatus with 2 parameters, use return _ in at least one place. Do not use any kind of loop Within the definition of taskStatus with 2 parameters, do not use any kind of loop.Using python, define the following function This function must return the task status for a particular task from a checklist. There's the possibility that the task specified is invalid (in this case, because it isn't in the checklist). In that case, taskStatus must print a specific message , and must return None. Define taskStatus with 2 parameters Use def to define taskStatus with 2 parameters Use a return statement Within the definition of taskStatus with 2 parameters, use return _ in at least one place. Do not use any kind of loop Within the definition of taskStatus with 2 parameters, do not use any kind of loop. Example input: In []: taskStatus({'Task 1':False,'Task 2':True},'Task 1') Out[]: Falsepython only** define the following function: This function must return the task status for a particular task from a checklist. These examples for taskStatus demonstrate how it works. As with addTask, there's the possibility that the task specified is invalid (in this case, because it isn't in the checklist). In that case, taskStatus must print a specific message ("That task does not exist."), and must return None. Define taskStatus with 2 parameters Use def to define taskStatus with 2 parameters Use a return statement Within the definition of taskStatus with 2 parameters, use return _ in at least one place. Do not use any kind of loop Within the definition of taskStatus with 2 parameters, do not use any kind of loop.
- Create a C program for a Coffee shop business. The system can do the following task and the corresponding functions:1. register customers for table reservation.Name the function: register_user()2. accommodate the customers. The system must have a specific number of tables that can accommodate the customers. Note: input must not be less than 10 tables. Minimum # of seats = 1Each table must differ on the number of seats they can accommodate. 3. Specify each table on how many guest it can accommodate. Function name: number_of_tables() 4. reserve the table for a specific customer. The customer must be notified when a table is being reserved or occupied by another users. Function name: reserve_table() 5. must be able to determine and check the number of guest before the customer will be able to reserved a table. Function name: number_guest() The three loops must be present in your code/program: For loop, While loop, Do while loop. Both If-else and switch statements must be present in you…ProblemNowadays, software companies are producing classroom management softwarein order to aid school instructors or professors in assessing their students’ performancesin class. As a newly built software company, you’ve decided to create your own versionof a classroom management software in a form of an electronic class record that will suitthe given specifications: A. The program will let the instructor or professor to input 40 student namesand their respective scores for each grade component.B. The students’ raw grades will be computed according to the followingcomponents:GradeComponent Description EquivalentPercentage Experiments »This component is composed of 4experiments.»Each experiment is equal to 100points and has a weight of 5 percent. 20% Skills Tests »This component is composed of 4skills tests.»Each skills test is equal to 100 pointsand has a weight of 5 percent. 20% MachineProblems »This component is composed of 2machine problems.»Each machine problem is equal to100…Code this in C. Project name : SurveyFilenames: survey.h, survey.c, main.c Survey Data AnalysisComputers are commonly used to compile and analyze the results of surveys andopinion polls. Each response is a number from 1 to 9. The program computes for the mean,median and mode of the values. Start with a minimum of 10 responses. If there would be moreresponses, increase the size.Mean – arithmetic averageMedian – middle valueMode – value that occurs most frequentlyThe following are the declarations that will be used by the program:int SIZE 10typedef int* Statistician;void add(Statistician answer, int *count, int *SIZE, int item);- Doubles the size of answer when it is full- Data should be sorted after every insertion.float mean(Statistician answer, int count);float median(Statistician answer, int count);int max(Statistician answer, int count);int min(Statistician answer, int count);int range(Statistician answer, int count);void mode(int freq[], int *freqsize, Statistician answer, int…
- Write a c++ code Shortest Job First (SJF) is a scheduling algorithm where CPU executes the shortest process prior to the longer ones. Given are a number of functions and their required completion time in different arrays. You are required to use the priority queue created in Question No. 01 to implement Shortest Job First Scheduling algorithm. This algorithm will call the functions in ascending order of completion time. This question should be completed in form of a function. Read the source.cpp file provided. Design a proper main. In SJF function, en-queue the node with Fun1 address first then Fun2, Fun3 and so on.1. Given a global list of users and password like the following, write a function (called login) that takes a user name and password and logs in the user if login is successful:- the user exists in the list- and the password is correct The function should return a True/False users = {'Jane': 'Password123@', 'John': 'Password123!'} 2. Write a function called register that takes a user name and password and adds the user to the list if the user does not already exist in the listThe function should return a True/False Put it all together: 3. Write a showmenu function that shows the following options and reads the choice from user and returns it: 1: register 2: login 0: logout 3. In the main section, based on the user's selected option, ask the required input (user name, passwords) and perform the requested operation. 4. Repeat the above until the user enters 0. (keep showing the menu that asks for another option)Use C# Language Write a program that will compute and generate the monthly payslip of employees.Create 3 separate modules for this programThe 1st module: GrossSalary.py will handle the computing of gross salary.The 2nd module: SalaryDeductions.py will compute the deductionsThe 3rd module: NetSalary.py is responsible for computing the net salary.Create the necessary functions for each module.The user shall input the following:Employee NameContact HoursSSS ContributionPhilHealth ContributionOther LoanEach employee is subject for 12% tax and a flat rate of 550 per hour
- Decryption Key A|B|C| D|E|F|G|H|I|J|K|L|M N|O|P|Q|R|S|T|U|V|W|X|Y|Z (letter above equals below, and vice versa) As you can see, A becomes N, B becomes O and so on. Your job is to write a program, with at least four functions, including main, which must do the following: 1. Ask user whether they want to encode or decode a message - if no, then terminate 2. Take the input string from the user, store it in dynamic memory (use new) 3. As appropriate, encode or decode the message using Rot13. 4. Output the encoded/decoded message 5. Delete the input string from dynamic memory (use delete)Please answer in C++ Code Admission to college is just beginning and Chef has also just finished his high school. There are NN colleges, listed from 11 to NN, and listed from 11 to NN. Each college has only one seat left. To apply for a college, each student must submit the same examination, the result of which determines their future, that is, the best student (the highest scorer) gets the first choice of college. Each student has a list of favourite colleges. They will want to get to the top ranked college on their list. If they can't get into it, they'll want to get into a second-ranked college in the middle of their list, and so on. If one vacant college seat is filled, that year's admission closes at that college. Then, people who have applied for that college should look for a lower college in their preferred list as long as it still has vacancies. Looking at the information about MM students, about their exam scores (given as standards) and the college IDs they apply for, find…{python language}Dan’s recently announced that he’s teaching n top-secret courses next semester. Instead of enrolling in them through ACORN, students need to email Dan to express their interests. These courses are numbered from 1 to n in some arbitrary order.In particular, if a student named s is interested in taking a course c, they need to send an email to Dan containing the message c s.Notethatifastudentis interested in taking multiple courses, they need to send multiple emails, one per course.Upon receivinga message c s,Danl ooks at the list of students already enrolled in course c. If there’s already a student on the list whose name is too similar to s, Dan assumes s is the same student and ignores the message. Otherwise, he enrolls s in the course.Dan considers two names too similar if and only if they have the same length and differ in at most one letter (note that “a” and “A” are considered the same letter). For example, “Josh” and “Josh” are too similar. “Sam” and “CaM” are…