Question: CIT 120-Computational Thinking Chapter 4 Programming Problem A program is needed that will prepare a contract labor report. The input will contain the employee name,

CIT 120-Computational Thinking Chapter 4 Programming Problem A program is needed that will prepare a contract labor report. The input will contain the employee name, job performed, hours worked per day, and a code. Journeyman employees have a code of J, apprentices a code of A, and casual labor a code of C. The output consists of the employee name, job performed, hours worked, and pay. Journeyman employees receive $15.00 per hour. Apprentices receive $13.00 per hour. Casual labor receives $10.00 per hour. This problem should be solved using either a case structure or nested-if structure. Once you first have the flowchart and pseudocode completed, enter this program into QBasic in order to test your solution. In the QBasic program, you should display the Pay in currency format using a PRINT USING statement. You should turn in the Visio file containing the flowchart and pseudocode. You will also turn in your QBasic file. (Be sure to submit the .bas file, not the exe file.) You may use the following sample data for testing purposes. Sample data Name Joe Dunham Job Hours 3.25 Code A Pay $42.25 Mike Fulton Drywall finishing 13.5 Phil Denton Wire a garage Joe Crider Dig a drainage ditch Run a water line 8.75 15.5 $135.00 $131.25 Should give an error message for an invalid code. In your solution, be sure to use good programming techniques as studied in previous le Additionally, check the following.. In the flowchart.. Be sure to label the Yes/No (or True/False) arrows Don't leave a box "hanging" (the flow must end at "Stop") Don't let arrows (flowlines) cross over each other . In the pseudocode Internal documentation (header&step comments) If and Then are on the same line; Else is on a line by itself Don't forget that every If must have a matching End If Indent the If statements as demonstrated in class . QBasic prog ram.. .No runtime errors! Make sure you are getting the correct answers CIT 120-Computational Thinking Chapter 4 Programming Problem A program is needed that will prepare a contract labor report. The input will contain the employee name, job performed, hours worked per day, and a code. Journeyman employees have a code of J, apprentices a code of A, and casual labor a code of C. The output consists of the employee name, job performed, hours worked, and pay. Journeyman employees receive $15.00 per hour. Apprentices receive $13.00 per hour. Casual labor receives $10.00 per hour. This problem should be solved using either a case structure or nested-if structure. Once you first have the flowchart and pseudocode completed, enter this program into QBasic in order to test your solution. In the QBasic program, you should display the Pay in currency format using a PRINT USING statement. You should turn in the Visio file containing the flowchart and pseudocode. You will also turn in your QBasic file. (Be sure to submit the .bas file, not the exe file.) You may use the following sample data for testing purposes. Sample data Name Joe Dunham Job Hours 3.25 Code A Pay $42.25 Mike Fulton Drywall finishing 13.5 Phil Denton Wire a garage Joe Crider Dig a drainage ditch Run a water line 8.75 15.5 $135.00 $131.25 Should give an error message for an invalid code. In your solution, be sure to use good programming techniques as studied in previous le Additionally, check the following.. In the flowchart.. Be sure to label the Yes/No (or True/False) arrows Don't leave a box "hanging" (the flow must end at "Stop") Don't let arrows (flowlines) cross over each other . In the pseudocode Internal documentation (header&step comments) If and Then are on the same line; Else is on a line by itself Don't forget that every If must have a matching End If Indent the If statements as demonstrated in class . QBasic prog ram.. .No runtime errors! Make sure you are getting the correct answers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
