Question: Given integer carAge, write multiple if statements: If carAge is 1933 or later, output Probably has a radio. If carAge is before 1961, output
Given integer carAge, write multiple if statements: If carAge is 1933 or later, output "Probably has a radio." If carAge is before 1961, output "Probably only has a few safety features." If carAge is 1982 or later, output "Probably has seat belts." End with a newline. Ex: If the input is 1964, then the output is: Probably has a radio. 1 # include 2 using namespace std; 3 4 int main() { 5 6 7 8 9 10 11 12} int carAge; cin >> carAge; /* Your code goes here */ return 0;
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
CPP include using namespace std int main int carAg... View full answer
Get step-by-step solutions from verified subject matter experts
