Write a series of three statements that assign the value 40


Q1. Write a statement that assigns the value 3 to a variable named YearsOfService.

Q2. 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.

Q3. Write a single statement that prints the label "Your score is: " followed by a variable named Score1.

Q4. 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.

Q5. 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.

Q6. 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.

Q7. Write three statements about sets. The first defines set A with values 1, 2, 3, 4 and 5. The second defines set B with the values 2, 4, 6, 8 and 10. The third lists the union of sets A and B. (Use the uppercase letter U to signify union.)

Solution Preview :

Prepared by a verified Expert
Basic Statistics: Write a series of three statements that assign the value 40
Reference No:- TGS01229177

Now Priced at $15 (50% Discount)

Recommended (95%)

Rated (4.7/5)