You drive fast along EDSA, and an officer stops you. Write a function to return one of 3 possible results: "No credential," "Small credential," or "Big credential." If your acceleration is 60 or less, the result is "No credential" if speed is between 61 and 80, "Small Ticket" results. Assume speed is 81or more, "Big credential" results. Unless it is your birthday(encoded as a boolean value in the function's parameters) --on your birthday, your speed can be five higher in all case

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.1: Assignment Operations
Problem 9E: (Civil eng.) Write an assignment statement to determine the maximum bending moment, M, of a beam,...
icon
Related questions
Question

Answer the questions or complete the tasks outlined in bold below, use the specific method described if applicable.

    1. You drive fast along EDSA, and an officer stops you. Write a function to return one of 3 possible results: "No credential," "Small credential," or "Big credential." If your acceleration is 60 or less, the result is "No credential" if speed is between 61 and 80, "Small Ticket" results. Assume speed is 81or more, "Big credential" results. Unless it is your birthday(encoded as a boolean value in the function's parameters) --on your birthday, your speed can be five higher in all cases.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr