6. Age Bracket Identifier by CodeChum Admin Cody, our favorite robot, wants to determine if The Programmer is an adult. An adult is anyone aged 18 and above. Input the Programmer's age then print "Adult" if he is an adult and "Minor" if he isn't. Input C++ Programming Make a source code of the problems below using C++ Programming: 1. Programmer's age Output The first line will contain a message prompt to input the Programmer's age. The second line will contain either "Adult" or "Minor". Enter·the·Programmer's·age:·19 Adult
6. Age Bracket Identifier
by CodeChum Admin
Cody, our favorite robot, wants to determine if The Programmer is an adult. An adult is anyone aged 18 and above. Input the Programmer's age then print "Adult" if he is an adult and "Minor" if he isn't.
Input
C++
Make a source code of the problems below using C++ Programming:
1. Programmer's age
Output
The first line will contain a message prompt to input the Programmer's age. The second line will contain either "Adult" or "Minor".
7. Apple Conflict
by CodeChum Admin
John is back and he wants Cody to compensate for the apple he took from him. Cody decided to give him some apples to ease the tension. Cody thought that John shouldn’t ask for too much. More than 10 is too much while 5 and below is too few.
Input the number of apples John wants then print "No way, that's too much" if it reaches more than 10 and print "No, ask for more" if he asks for 5 or below. Print "Okay, sure" if it is neither.
Input
1. Number of apples John wants
Output
The first line will contain a message prompt to input the number of apples. The second line will contain the response message.
8. 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. 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.
9. Big, Bigger, Biggest
by CodeChum Admin
Welcome to a game of Big, Bigger, and Biggest! The game where we give you three big numbers and you're going to choose which one is the biggest. Do your worst!
Input
1. First integer
Constraints
This is guaranteed to be a whole number.
2. Second integer
Constraints
This is guaranteed to be a whole number.
3. Third integer
Constraints
This is guaranteed to be a whole number.
Output
The first line will contain a message prompt to input the first number. The second line will contain a message prompt to input the second number. The third line will contain a message prompt to input the third number. The last line will contain the largest among the three numbers.
10. Calculator
by CodeChum Admin
Bonjour, I am Blaise Pascal, and I love math. I want everybody to see math the way I do, however,for most people, math is too complicated. I can’t blame them because the only tool we have that helps us calculate is the stinking Abacus.What if we invented the "Calculator", a device that automatically calculates numbers with the push of a button?
All you gotta do is input the numbers and choose your operation to be performed:
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
Do you think this invention will be used by people now and in the future?
Input
1. The first operand
Constraints
The value is >= 0 and <= 2147483647
Sample
2. The operator
Description
The operator of the operation to be performed. This can either be '+', '-', '*', or '/'
Constraints
It is guaranteed that the value is only either '+', '-', '*', or '/'
Sample
3. The second operand
Constraints
The value is >= 0 and <= 2147483647
Sample
Output
Contains the result of the operation performed.

Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









