int age = getAge(); /*get age as input from the user*/ void display (int age); /*prints the following: Child 0 to 12 years old Teenager 13 to 17 years old Adult 18 to 59 years old Senior Citizen 60 years old and above %3D */

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section8.3: Random File Access
Problem 6E
icon
Related questions
Question
Kindly help me make codes for this coding program using FUNCTIONS in C Programming. I need the codes As Soon As Possible. Thank you!
1 #include<stdio.h
2 #include"age.h"
4 int main(void) {
int age = getAge();
display(age),
return 0;
Transcribed Image Text:1 #include<stdio.h 2 #include"age.h" 4 int main(void) { int age = getAge(); display(age), return 0;
int age = getAge);
/*get age as input from the user*/
void display (int age);
*prints the following:
Child 0 to 12 years old
Teenager 13 to 17 years old
Adult 18 to 59 years old
Senior Citizen 60 years old and above
*/
Note: You are not allowed to edit main.c and
age.h. Add another file that contains the
implementations of the functions above.
Input
A single line containing the age.
Constraint:
-0 <= age <= 99
14
Transcribed Image Text:int age = getAge); /*get age as input from the user*/ void display (int age); *prints the following: Child 0 to 12 years old Teenager 13 to 17 years old Adult 18 to 59 years old Senior Citizen 60 years old and above */ Note: You are not allowed to edit main.c and age.h. Add another file that contains the implementations of the functions above. Input A single line containing the age. Constraint: -0 <= age <= 99 14
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning