The members of the board of a small university are considering voting for a pay increase for their 100 faculty members. They are considering a pay increase of 5%. Write a complete program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase. You have to use a loop for the problem. C++ language only.
Q: MY CODE WAS BELOW, Can you help me. CAN YOU HELP ME PROVIDE THIS OUTPUT? Create a nested looping…
A: As per the requirement program is completed. The given requirement is achieved by using basic nested…
Q: Write a program that mimics a calculator. The program should take as input two integers and the…
A: logic:- Define 5 functions i.e add, sub, mul, division, display. First four functions will take a…
Q: A. write a c++ program that asks the user to enter values for dollar and convert into peso. display…
A: ANSWER:-
Q: In this assignment you will write a C++ program that can figure out a number chosen by a human user.…
A: Program: #include <iostream>using namespace std;/*getMidpoint.This function accepts two…
Q: Q1/A chemical sensor works to read the value of pollution in four industrial sites every four hours…
A: Required: Code to get the pollution reading every day in every 4 hours. and find the pollution rate…
Q: Write a C# program that plays a guessing game with the user. Your program should select a random…
A: rndNumber.Next(1,50) will generate random number in range of 1 to 50. compare the random number…
Q: Your task is to make a C++ program that will allow the user to input his/her grades in 5 subjects.…
A: Use an if-else ladder to find the range and print respective Grade
Q: You’re given coins of different denominations and a total amount of money. From that, you need to…
A: In this problem, we were given the coins of different denominations and a total amount of money is…
Q: You are beginning to work on a problem that needs to output names in several formats along with the…
A: Actually, given information is: You are beginning to work on a problem that needs to output names in…
Q: Write a C++ program that displays a table of speeds in kilometers per hour with their values…
A: Following program will convert the values from Kilometers per hour(KPH) to Miles per hour(MPH)…
Q: C++ program that prompts the user to enter the number of items and each item’s name and price, and…
A: Write a C++ program that prompts the user to enter the number of items and each item’s name and…
Q: Write a C++ program which has an user input of decimal, octal, or hexadeciaml (all three types of…
A:
Q: Write a C++ program that displays a table of speeds in kilometers per hour with their values…
A: Given, The formula for converting kilometers per hour to miles per hour:…
Q: This is a C++ programming question The code should be in C++ language When you borrow money to…
A: Program: #include <iostream> #include <cmath> using namespace std; double…
Q: Write a C++ program that performs basic arithmetic operations including addition,…
A: Create an object for file operations. Declare two variables for two operands. Declare a character…
Q: In this part, you are asked to write a C-program that makes change for amounts less than one dollar.…
A: I have created an infinite while loop. Next, inside the loop, I have taken input from the user and…
Q: Given the value of n from the user, write a program that will display the first n even numbers. Ex.…
A: Programming approach:- Using the necessary header file. Using namespace standard input/output.…
Q: Write a c++program to simulate the roll of two dice. If the total of the two dice is 7 or 11, you…
A: Let us consider a C++ program to simulate the roll of two dice, if the total of the two dice is 7or…
Q: Write a c++ program that calculates the cost of 3 bags of fruit. The 4 possible fruits are pears…
A: i hope it will work for you #include<bits/stdc++.h>#define INF 1000000using namespace std;…
Q: Create a program in c using do while and/or for loops that mimics rolling 2 dice to create 2 random…
A: C program to rolls 2 dice and generate 2 random numbers between 1 to 6. If both dice rolls the same…
Q: Write a C Program that allows a user to enter any number of student test scores until the user…
A: Introduction of the Program: The C program takes scores from the user and stores all score in the…
Q: Write a program in C# that will compute how much money a user has in coins. Your program should…
A: As we are dealing with currencies, the standard formatting is 2 decimal
Q: From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then calculate…
A: Input Code in C++ for the given condition :- #include <iostream>…
Q: Trying to write a C# program, everytime l try and run it it fails and says they are errors.Below…
A:
Q: MY CODE WAS BELOW, Can you help me edit my code to provide the given output. Create a nested…
A: Algorithm: The algorithm to get given pattern is: Start Initialize the variables x, y for x=1 to 5{…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: Program code: #include <bits/stdc++.h>using namespace std; int main(){ string…
Q: Write a C++ Program that calculate and print the insurance for 15 cars. For each car, the program…
A: #include <iostream>using namespace std; int main(){ int year, price; char insuranceType;…
Q: In your C compiler: 1. Given two numbers X and Y. Write a program to determine the difference…
A: #include <stdio.h>int main(){ //1 int X,Y,R; //reading X,Y value from user…
Q: Write a C# program that plays a guessing game with the user. Your program should select a random…
A: Given Hints:- Some Random Number Generation HintsRandom rndNumber = new…
Q: Write a C++ program that asks the user for the length and width of a rectangle then calculate its…
A: create a main() and then initialize the variables w for width, l for length, and then area_rect to…
Q: This is a C program. I want you to convert it to a C++ program. Also provide a screenshot that it is…
A: In this question, we are asked to change a C++ program into C. The new changes: 1) Changed header…
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: Code: #include <iostream> using namespace std; int main() { // Declaring arrays with…
Q: Write a C++ program that is concerned with employee's Salary .The Original Salary is entered through…
A: Start Accept number of emeployyes to read. Use for loop to read original salary from console.…
Q: Write a C++ program that calculates the Volume of a Triangular Prism. The main function asks the…
A: #include <iostream> using namespace std;//function declarationint Volume(int a, int b, int h){…
Q: rite a C++ program to make a simple calculator for addition, subtraction, multiplication and…
A: #include<iostream>using namespace std;int main(){ int c,d,i,answer=0,j; char op;…
Q: Write a C Program that allows a user to enter any number of student test scores until the user…
A: EXPLANATION: - A do...while loop is used to read the scores of the students till 999 is not entered…
Q: A dice is an n-sided shape with the sides labelled by numbers 1, 2, dice used to play various games…
A: Answer : SOURCE CODE IN C++: #include <iostream> #include <fstream>…
Q: Jason Hardy opened a coffee shop at the beach and sells coffee in three sizes: small (9 oz), medium…
A: Answer :- #include <iostream> #include <iomanip> using namespace std; //constants…
Q: I want it to be a simple program not difficult. Write a c++ program that reads information from the…
A: Required: I want it to be a simple program not difficult. Write a c++ program that reads information…
Q: . Write a c++ program that tells what coins to give out for any amount of change from 1 cent to 99…
A: Programming instructions: Declare the required variables. Use a do-while loop that allows the user…
Q: Write a C++ program, which calculates the area of 6 circles and their total sum. The program should…
A: To Do: To write the C++ Program.
Q: Write a C program that will calculate the total payment for a brand new car being purchased on…
A: C program: C is a programming language developed by Dennis Ritchie at AT & T Bell Laboratory in…
Q: I would like to write a code in the C programming language that specifies how many times the numbers…
A: While doing programming in any programming language, you need to use various variables to store…
Q: calculate the total charges for the duration stayed at the hotel
A: Program: // C++ version 17// header files#include <iostream>#include <iomanip>using…
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: #include<iostream>using namespace std;int main(){ char type;…
Q: In mathematics, a series is, roughly speaking, a description of the operation of adding infinitely…
A: The program prompts the user to enter the user a number, for which the nth number in the series will…
Q: Find the C program language Deal or No Deal? by CodeChum Admin When I was a kid, I used to watch…
A: As per the requirement program is done. Here you can change the array values as your wish but as per…
Q: I would like to create a C++ code that creates a table for the user's choice of basic math…
A: Syntax: do { // Loop-body } while ( Condition ) ; Flowchart:
Q: Write a C++ program to calculate a rectangle's area. The program consists of the following function:…
A: The C++ program is given below with code and output screenshots
The members of the board of a small university are considering voting for a pay increase for their 100 faculty members. They are considering a pay increase of 5%. Write a complete program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase. You have to use a loop for the problem. C++ language only.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images
- This is a C++ programming question The code should be in C++ language When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is: You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is: where R is the periodic payment. (Note that if the payments are monthly, then m = 12.) Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the user can repeat…write a program in C++ that A user needs to determine the size of squares (let say delta) in a grid, the center of the circle (does not have to lie on a grid but it can!) and the radius. (for example use "cin>>" ) Then you need to plot a circle using parametric equations of circle (you need to increase angle and plot these (in my picture black) points). First plot the first point of the circle and determine in which square of grid it is. (in my picture it is an orange square) and plot the left bottom vertex of this square (in my picture it is a blue point). Then increase an angle and plot next point of circle - check if it lies in different square. -If it is not in different square, you need to increase angle and check again. (because an angle was too small) -If it is the different square, then check, if this square has THE COMMON EDGE with the previous one -> if it has the common edge, then print new left bottom vertex of this square (if does not have common edge,…Write a program in C++ with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies. If the input is: 0 The output should be: no change If the input is: 45 The output should be: 1 Quarter 2 Dimes only using: #include <iostream> using namespace std;
- Trying to write a C# program, everytime l try and run it it fails and says they are errors.Below screenshot is for the problem Write a program to calculate electricity charges for a customer. The program requests a name, previous meter reading and current meter reading. The difference in the two readings gives the number of units of electricity used. The customer pays a fixed charge of $25. In addition to the fixed charge, 20 cents is charged for each unit used. Print all the data, the number of units used and the amount the customer must pay, appropriately labelled. Additional information: You may assume that the current meter reading is larger than or equat to the previous meter reading. You may assume all data entered into your program is correctWrite a C++ program that displays a table of speeds in kilometers per hour with their values converted to miles per hour. The formula for converting kilometers perhour to miles per hour is: MPH = KPH * 0.6214. In the formula, MPH is the speed in miles per hour and KPH is the speed in kilometers per hour. The table that your program displays should show speeds from 60 kilometers per hour through 130 kilometers per hour, in increments of 10, along with their values converted to miles per hour.Write a C program that calculates the price of a pizza and prints the receipt as follows: 1- Your program should first ask the user to enter the size of the pizza (integer value 1=large, 2=medium, 3=small) as well as the number of toppings (integer). 2- Your program should then read the pizza basic price (double) as well as the price of a topping ( float ) from the user. 3- Your program should then calculate the total price of the pizza using the following formula: Total price = ( basic price + number of toppings * topping price ) / size; And print a receipt which displays the details of your pizza order as well as the final total price to the screen
- You are beginning to work on a problem that needs to output names in several formats along with the corresponding Social Security number. Therefore, you need to create a C++ program which reads in a Social Security number, a first name, a middle name or initial, and a last name from the file inData.dat. The name is written to file outData.dat in three different formats: Format 1: First name, middle name, last name, and Social Security number Format 2: Last name, first name, middle name, and Social Security number Format 3: Last name, first name, middle initial, and Social Security number Format 4: Last name, middle initial, last name Note: The social security number and name in three parts on file “inData.dat”, each separated by one or more whitespaces characters: 222-33-3543 Robert James Williams Output: Write data in file “outData.dat” with proper format: Robert James Williams 222-33-3543 Williams, Robert, James…Martin wants to create a program in c++ that requires the user to input 10 integers then print the total number of even integers, highest even integer, lowest even integer, total number of odd integers, highest odd integer, and lowest odd integer. If, however, the user inputs zero (0), the program will display “You have not yet entered 10 integers.”.Write a C# program that plays a guessing game with the user. Your program should select a random number between 1 and 50 and then let the user try to guess it. The program should continue asking the user for a number until he guesses correctly. (See below for some tips on random numbers). CHALLENGE #1: Modify your program so that it only allows the user 10 guesses, and then declares them to be an inadequate guesser if they haven’t gotten it correct. Your program should output the random number chosen. CHALLENGE #2: Modify your program so that after they guess a number (or get declared inadequate, if you do Challenge #1) that it asks them if they want to play again, and responds accordingly.
- In C++ 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 program must consist of at least the following functions:Function getData: This function asks the user to enter the…Find the C program language Deal or No Deal?by CodeChum Admin When I was a kid, I used to watch this TV game show, Deal or No Deal? In the game, there are different brief cases, each labeled with a number. Inside each brief case is an amount in Pesos and the goal is to guess which briefcase contains the smallest amount. In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in the array smaller than the inputted integer. Instructions: In the code editor, you are provided with an array with 100 elements.Your task is to ask the user for an integer input and then print all the elements in the array whose value is lesser than the inputted integer.Input 1. Inputted integer Output Enter value: 6132450351503022244This is a C program. I want you to convert it to a C++ program. Also provide a screenshot that it is still working.Here is the program to be converted: /* Write a program that will compute and display sales commission ofa Sales Representative given as input his total sales. The sales commissionis computed as 15% of the total sales. Moreover, a bonus of 1000.00 is givenif the computed sales commission exceeds 20,000.00. */ #include <stdio.h>#include <conio.h>int main(){ float TS,SC; clrscr(); printf("Enter your Total Sales: Php "); scanf("%f",&TS); SC=TS*0.15; if (SC<=20000.00) printf("The Sales Commission is Php %0.2f\n",SC); else { printf("For Exceeding Php 20000.00 Sales Commission\nYou are entitled for Php 1000.00 bonus!!!\n\n"); SC=SC+1000.00; // SC+=1000.00 printf("Your Total Sales Commission is Php %0.2f\n",SC); } getch(); return(0);}