Search for question
Question

Write C++ if statement code fragments to satisfy the given conditions. а)Check the range of frequency, freq to be between 100HZ and 10000HZ. Display"Acceptable" if within the range and "Unacceptable"

if not. b)Check the prerequisite for a soldier candidate to be of age between 18 to 30 years, weight between 50 to 65kg and height must be greater than 156m. Display "Fulfill requirements" or "Do not fulfill requirements" based on these conditions. c)Henry wants to buy a car. It must be under one of these conditions. Either: (i) The year made: after 2010, cylinder capability: cc between 1.5 to 2.0. (ii) The year made: before 2010 , cylinder capability: cc greater than 2.0.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6