Write a Beginner's C++
(e.g.
What month is it? (enter as a number): 10
What day is it? (enter as a number): 5
What year is it? (enter as a number): 2021)
You will use those numbers to calculate YOUR real birthday and the program will display YOUR current age. (Your real birthday should be stored in other variables or in constants). Original Birthdate is April 9th 1975
The program will display your age and based on the age the program calculated should display a response based on 3 possible conditions.
(e.g.
age below 18 display "You are a youngling."
age above 18 below 25 display "You could be a padawan."
age above 25 display "You could be a knight in hopes of becoming a master!"
The program should also wish you a Happy Birthday! or a Happy Unbirhtday!
You must turn in a flowchart or psuedocode for this Homework.
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 1 images
- C++ - No library functions like atoi Write a machine language program to output your first name on the output device. Submit your "machine code" followed by a 'zz.' An example of the machine code to output "hello" is shown below. This is an example of what a machine language submission would look like: 50 00 48 50 00 65 50 00 6c 50 00 6c 50 00 6f 00 zzarrow_forwardC++arrow_forwardC++arrow_forward
- Make C++ program.Your travel agency offers trips to Asian and African countries. This month, you are specifically doing trips to the Philippines (in Asia) and Tunisia (in Africa) and created a program for users to get prices and a boarding ticket. For all Asian countries, you store the name and population information in your program. With African countries, in addition to the name and population, you are also interested in location (North, South, East, West). Create an abstract Country class that holds the country name and population (given by the constructor). There should be two functions: int get_ticket_price and void_print_boarding_pass (which will output a boarding pass as a file-see below) Using the Country class, create two classes called African_country and Asian_country. The Asian_country class should use the same constructor that the Country class uses and the African_country class constructor should allow for the user to enter the location (see sample run).…arrow_forwardroblem: A small business has purchased a computer for its new payroll system. Theprogram will determine the gross wages of each employee type, salaried andhourly, and output the total gross wages to be paid for each employee type. You have been asked to complete the program, using C++, according to thefollowingspecifications:1. Prompt the user to enter the number of employee wages to be calculated. Theprogram will end when the data for all the employees has been entered. 2. For each employee, indicate if the employee is salaried or paid hourly. 3. Define and implement functions for the following:a. If the employee is salaried, enter the annual salary. The gross for that employeewill be determined by dividing the annual salary by 24. Add the result tothetotalsalaried wage. b. If the employee is paid hourly, enter hours worked (40 ≥ hours ≥ 0) and rate perhour. The gross for that employee is determined by multiplying hours workedbyrate per hour. Add the result to the total hourly wages.…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education