Answer:
in my opinion if you have to do three codes in your C++ , you should of course do them in one project. but while submitting you should send the projects individually
REM PROGRAM TO DISPLAY AVERAGE OF TWO NUMBERS
CLS
INPUT “ENTER FIRST NUMBER”; A
INPUT “ENTER SECOND NUMBER”; B
INPUT “ENTER THIRD NUMBER”; C
AV = (A + B + C) / 3
PRINT “AVERAGE OF THREE NUMBERS”; AV
END
hope this helpz
Answer:
The output is: Your cost is 100
Explanation:
Given
The above code snippet
and

Required
Determine the output of the code
if cost < 70 or cost > 150
The above condition checks if cost is less than 70 or cost is greater than 150
This condition is false because 100 is neither less than 70 nor is it greater than 150
So, the else statement will be executed.
discount = cost
Which means
discount = 100
So, the print instruction will print: Your cost is 100
Answer:
user_age = int(input())
if user_age > 17 and user_age != 25:
print("Eligible")
else:
print("Not eligible")
Explanation: