Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
a if age 18 Nationality 99 cout Eligible to Vote els...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started