6. Baby's Age by CodeCham Aamin Waing home, Cody was amaed that peapie cod grow so odand wonderedhe,arobot, wod be aie to grow ke that. Suddeny, he heard a sharp ay nearty, and as he tumed the comer, he saw ty. Cony never sea baby before, pan, he we never a baby nimset so he was rety surprised that sometning could be that young Cody aed the by his age and the baby repled through arying. My age is the prodact of The Programmers age and your teachers ge of which is divided by Peter age then aed y Cady quy ngutted athe ages. npa 1. The Programmars age 2. Teachers age 3. Peters age The frst ine wil containamessage prompt to int The Progremmers ge. The second ine w containamessage prompt to Input her's age.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

using C language

6. Baby's Age
by CodeChum Admin
Walking home, Cody was amazed that people could
grow so old and wondered if he, a robot, would also
be able to grow like that. Suddeniy, he heard a sharp
ory nearty, and as he turned the comer, he saw a
baby. Cody never sew a baby before, plus, he was
a baby himseif so he was realy surprised that
something could be that young. Cody asked the
baby his age and the baby repled through orying.
"My age is the product of The Programmers age and
your teechers ege ell of which is civided by Peters
age then added by 1. Cody quicdy inputted al the
ages.
Input
1. The Programmars age
2. Toacher's age
3. Poters age
Output
The first ine wil contain a message prompt to input
The Programmer's age.
The second ine will contain a message prompt to
Input the teacher's age.
Transcribed Image Text:6. Baby's Age by CodeChum Admin Walking home, Cody was amazed that people could grow so old and wondered if he, a robot, would also be able to grow like that. Suddeniy, he heard a sharp ory nearty, and as he turned the comer, he saw a baby. Cody never sew a baby before, plus, he was a baby himseif so he was realy surprised that something could be that young. Cody asked the baby his age and the baby repled through orying. "My age is the product of The Programmers age and your teechers ege ell of which is civided by Peters age then added by 1. Cody quicdy inputted al the ages. Input 1. The Programmars age 2. Toacher's age 3. Poters age Output The first ine wil contain a message prompt to input The Programmer's age. The second ine will contain a message prompt to Input the teacher's age.
"My age is the product of The Programmers age and
your teachers age al of which is divided by Peters
age then added by 1 Cody quickly inputted all the
ages.
Irput
1. The Programmer's age
2. Teacher's age
3. Poter's age
Output
The first ine wil oontain a message prampt to input
The Programmer's ege.
The second line wil contain a message prompt to
input the teacher's age.
The third line will contain a message prampt to input
Poter's age.
The fourth line will ontain the age of the baby.
Enter The Programer's age: 10
Enter the tescher's ager 10
Enter Peter's age: 28
Baby 's age -6
Transcribed Image Text:"My age is the product of The Programmers age and your teachers age al of which is divided by Peters age then added by 1 Cody quickly inputted all the ages. Irput 1. The Programmer's age 2. Teacher's age 3. Poter's age Output The first ine wil oontain a message prampt to input The Programmer's ege. The second line wil contain a message prompt to input the teacher's age. The third line will contain a message prampt to input Poter's age. The fourth line will ontain the age of the baby. Enter The Programer's age: 10 Enter the tescher's ager 10 Enter Peter's age: 28 Baby 's age -6
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY