display input-prompt-header?

I am taking a C++ class online and am a little confused on this line what i'm supposed to enter

DISPLAY input-prompt-header for employee, preceded by newline and tab escape sequence, follow by employeeNumber and colon

Last edited on
I would guess this is asking you to prompt for input for the information for an employee. I'd need more information to be sure, however.

Is your professor really giving you an assignment with such poor wording/grammar?
this is exactly what he has us doing and i'm stuck on line A-1-3-09

A-1-3-01) DECLARE local named constant double variable named c_maximumHoursWorkedWithoutOvertimePay with a value of 40.0

A-1-3-02) DECLARE local named constant int variable named c_inputPromptWidth with a value of 17

A-1-3-03) DECLARE local double variable named grossPay

A-1-3-04) DECLARE local double variable named hoursWorked

A-1-3-05) DECLARE local double variable named hourlyPayRate

A-1-3-06) DECLARE local named constant double variable named c_overtimePayRatePremium with a value of 1.5

A-1-3-07) DECLARE local int variable named employeeNumber with an initial value of 1



REPETITION HEADER:

A-1-3-08) while employeeNumber is less than or equal getEmployeeCount(), followed by opening brace for body of loop

A-1-3-09) DISPLAY input-prompt-header for employee, preceded by newline and tab escape sequence, follow by employeeNumber and colon (Exhibit Z, lines 5, 9 and 13)

A-1-3-10) DISPLAY hours-worked prompt, preceded by newline and 2 tab escape sequences, COLUMN WIDTH for input prompt, RIGHT JUSTIFICATION (Exhibit Z, lines 6, 10 and 14)

A-1-3-11) ACCEPT user keyboard input for hours worked (Exhibit Z, lines 6, 10 and 14)

A-1-3-12) DISPLAY hourly-pay-rate prompt, preceded by 2 tab escape sequences, COLUMN WIDTH for input prompt, RIGHT JUSTIFICATION (Exhibit Z, lines 7, 11 and 15)

A-1-3-13) ACCEPT user keyboard input for hourly pay rate (Exhibit Z, lines 7, 11 and 15)



DOUBLE-ALTERNATIVE IF HEADER:

A-1-3-14) IF employee did not work overtime THEN

A-1-3-15) ASSIGN value of expression (hoursWorked MULTIPLIED BY hourlyPayRate) TO variable grossPay

A-1-3-16) ELSE

A-1-3-17) ASSIGN value of expression (c_maximumHoursWorkedWithoutOvertimePay MULTIPLIED BY hourlyPayRate

A-1-3-18) PLUS (hoursWorked MINUS c_maximumHoursWorkedWithoutOvertimePay)

A-1-3-19) MULTIPLIED BY hourlyPayRate MULTIPLIED BY c_overtimePayRatePremium) TO grossPay



DOUBLE-ALTERNATIVE IF FOOTER:

A-1-3-20) Enter closing comment for double-alternative if statement



A-1-3-21) ASSIGN value of grossPay TO array element of employeeGrossPay at index employeeNumber - 1

A-1-3-22) INCREMENT employeeNumber



REPETITION FOOTER:

A-1-3-23) Enter closing brace for body of loop

I guess I am going to start by pointing to you to this link:
http://www.cplusplus.com/doc/tutorial/

That link might get you started, because many of the keywords that are emphasized in your text there might get explained in there if you go through the tutorial.

I am not a big fan of coding things for you in a learning process like this, since it is the basics of c++.
Topic archived. No new replies allowed.