subject
Engineering, 07.04.2020 21:51 irenecupcake4348

CSC 155Computer Science ILab 6 Student NameSection InstructorDue Date PROJECT Commission Function ApplicationObjectiveTo write, compile and execute a simple program that uses a function. PROJECT DESCRIPTIONCharles receives a salary of $2,500 per month. He also receives a 5% commission for sales over $15,000. Last month’s sales were $75,000. Write, compile and execute a program that uses a function to calculate Charles’ gross pay. Information About This ProjectThis project involves utilizing a decision / selection structures such as a block if-else statement. It also demonstrates the use of a function to perform calculations. Steps To Complete This ProjectSTEP 1Open MS Visual C++ and Write the Program CodeOpen Visual C++ on your computer. Write the program code that willallow the user to enter the necessary input items and then use these items to compute the required output value(s). Use the following instructions. Save your code in a file named:Commission. cppSTEP 2Open the Initial Program CodeFirst, type the code shown below, which consists of a preprocessing directive and a main() method. Figure 1 Program Code for the C++ Commission Function Application//Commission Application: Sammy Student Programmer#includeusingnamespace std; //preprocessing directive(s)//place function prototype hereint main(){//declare local variableschar name[30];int num = 0; double commission = 0;double salary = 0; double s

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:20
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa.s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
You know the right answer?
CSC 155Computer Science ILab 6 Student NameSection InstructorDue Date PROJECT Commission Function Ap...
Questions
question
Social Studies, 29.06.2019 16:00
question
Social Studies, 29.06.2019 16:00