Answer:
Solution part of the question:
if(userTickets>5) //compare the value of userTickets with 5.
awardPoints = 10; // assign the 10 value to the award point
else
awardPoints=userTickets;// assign the userticket value to the awardpoint.
Output:
For the input 4 the output is 4.
For the input 5 the output is 5.
For the input 6 the output is 10.
For the input 7 the output is 10.
Explanation:
All the other part of the program is given on the question so here only if-else statement is given on the answer part. Which is pasted at the place of "/* Your solution goes here */" and the user can get the right answer.
- In the "if" statement the value of "userTickets" variable is get compared by 5 and if it is greater than 5 than variable "awardpoint" assigns the '10' value.
- Otherwise, with the help of "else" statement "userticket" variables value (which is the input value for the program) assign to the "awardpoint" variable.
QUESTION NO. 1 -
A. Cloud computing.
QUESTION NO. 2 -
C. Social networking.
QUESTION NO. 3 -
D. Task list.
QUESTION NO. 4 -
D. Powerpoint.
QUESTION NO. 5 -
B. Sandie should share the document in OneDrive and give her sister permission to edit the document.
QUESTION NO. 6 -
C. The design and arrangement of items for efficiency and safety.
Select row for "ExpirationDate", click the mouse and drag the field until the blue line appears above "Scent," and release the mouse button.
Also ~ how far does a runner run around the bases on a home run? It's explained in my answer. lw = sa (length times width = surface area) So multiplying length by width (since they're the same in this case you're squaring the length or squaring the width - no difference) You'll get 3600 feet.