Answered You can hire a professional tutor to get the answer.

QUESTION

ASSIGNMENT: Answer the following questions by typing your answers into the space after each question. When you are finished, save the file and submit...

ASSIGNMENT: Answer the following questions by typing your answers into the space after each question. When you are finished, save the file and submit this document through Blackboard.

#1. Write a statement that assigns the value 3 to a variable named YearsOfService. (2 points)

#2. Write a series of three statements that assign the value 40 to the variable HoursWorked, the value 17.50 to the variable HourlyWage, and a statement that multiplies them together and stores the result in the variable GrossPay. (6 points)

#3. Write a single statement that prints the label “Your score is: ” followed by a variable named Score1. (4 points)

#4. Write two statements. The first assigns the value 1200 to the variable Sales. The second calculates the value of 10% times Sales and assigns that value to a variable called Bonus. (4 points)

#5. Write the definition of a structure named Book that includes the variables Title, Author and NumberOfPages, using the data types String and Integer as appropriate. (4 points)

#6. Write a single statement that assigns the values 99, 100 and 88 to an integer array named TestScores. Use the C++ notation used for the “lotterynumbers” array. (4 points)

#1. Write a statement that assigns the value 3 to a variable named YearsOfService. (2 points)Solution:YearsOfService=3; #2. Write a series of three statements that assign the value 40 to the...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question