IN JAVA CODE: Walking home, Cody was amazed that people could grow so old and wondered if he, a robot, would also be abl

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

IN JAVA CODE: Walking home, Cody was amazed that people could grow so old and wondered if he, a robot, would also be abl

Post by answerhappygod »

IN JAVA CODE:
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.
Suddenly, he heard a sharp cry nearby, and as he turned the corner,
he saw a baby. Cody never saw a baby before, plus, he was never a
baby himself so he was really surprised that something could be
that young. Cody asked the baby his age and the baby replied
through crying, “My age is the product of The Programmer’s age and
your teacher’s age all of which is divided by Peter’s age then
added by 1.” Cody quickly inputted all the ages.
Input
1. The Programmer's age
2. Teacher's age
3. Peter's age
Output
The first line will contain a message prompt to input The
Programmer's age. The second line will contain a message prompt to
input the teacher's age. The third line will contain a message
prompt to input Peter's age. The fourth line will contain the age
of the baby.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply