Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 206 Weeks Ago, 2 Days Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
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)
----------- ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly