Question
This is for Program in C Write a program that asks the user for an integer with the prompt Please enter an integer using the
This is for Program in C
Write a program that asks the user for an integer with the prompt "Please enter an integer" using the puts function.
Write the definition of a function isSenior, which receives an integer parameter and returns true if the parameter's value is greater or equal to 65, and false otherwise.
So if the parameter's value is 7 or 64 or 12 the function returns false. But if the parameter's value is 69 or 83 or 65 the function returns true.
Call the function isSenior, and the following statement if the function returns true "The person is a senior". If the function returns false, print the following statement "The person is not a senior"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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