Question: a) b) c) Write an if-else statement that displays the message Eligible to: Vote provided the value of the variable age is greater than
a) b) c) Write an if-else statement that displays the message "Eligible to: Vote" provided the value of the variable age is greater than or equal to 18 and also the value of the variable Nationality is equal to 99. Otherwise, the if- else statement displays the message "Not Eligible to Vote". The variables age and Nationality are both of type int. (2 marks) Write an if-else statement that displays the word "Warning" as an output if the value of the variable temperature is greater than or equal to 100, or the value of the variable pressure is greater than or equal to 200. Otherwise, the if-else statement displays the word "OK". The variables temperature and pressure are both of type int. Write a complete C++ program for the following flowchart. Display Tever True Begin Get temperature in Celsin Convert Celsius to Fahrenheit: Fahrenheit 9.0/5.0X Celsius +32 97.5 Fahrenheit 100.4 End False (2 marks) (6 marks) Display "Normal temperature
Step by Step Solution
3.48 Rating (155 Votes )
There are 3 Steps involved in it
a if age 18 Nationality 99 cout Eligible to Vote els... View full answer
Get step-by-step solutions from verified subject matter experts
