info system homework last quiz

profilebostonguy90
CFinalQuiz41.docx

1. ) You need a language compiler to write a program for example C++ compiler. What is a language compiler and how would you download it. Answer the question and paste your snapshot(s) as evidence.

Download Compiler. I had to download twice. Make sure to download to desktop.

2.) How do you activate? Click and open program. Create new file by file, new, source file.

3) Write the simplest possible program (maximum 8 lines of code) which displays only your payroll’s company name- which includes your name. Make sure your program is not completely correct.

I typed Lauren and Austin’s Payroll Company into the program. I followed guidelines by not doing more than 8 lines.

4.) How would you compile your simplest payroll program? Answer the question and paste your snapshot(s) as evidence +10 points.

This was my first experience with this, so I looked for the word compile in menu. I found it under execute, clicked compile. It asked me to save the document.

5.) How would you fix the syntax errors and add the necessary steps so that there would not be any syntax errors. At the end of trial and error, your program should include the followings that makes the basic block of any C++ program:

#include <iostream>

using namespace std;

main(){

cout<<” ..”<<endl;

system (“pause”);

return 0;}

I wrote the above information into the program, inserted Lauren and Austin’s Payroll Company into the program and hit compile. After fixing the quotation marks, I hit compile and got the below picture.

6.) How would you run the program and view the display-output (after the successful compilation).

I searched for the run button in the menu. I found it under Execute and hit run.

After you hitting run, I got the below page.

If run your program, make sure to close out if you are receiving errors.

7) What is the C++ statement responsible for the output display and add the new display statement to the existing program requesting “ENTER EMPLOYEE ID”. Compile and run your program.

# 5

8.) What is the statement that accepts (grabs) the input from the user ( input entry)? Add the variable names (hw, hr ) and declare it appropriately (int and float). Compile and run.

Add other cout and cin to your program.

9.) Add the operation to compute the grosspay and display all the previous information (data) and the grosspay. Make sure to declare a variable name for the grosspay with appropriate data type. Compile and run.

10.) Loop the existing program for as many duration as possible for example infinite loop (forever)

Final Product!!!!