Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ CMSC 140 Programming Project 1 Project Description: The department plans to purchase a humanoid robot. The chairman would like you to write a program
C++ CMSC 140 Programming Project 1
Project Description:
The department plans to purchase a humanoid robot. The chairman would like you to write a program to show a greeting script the robot can use later. Your first task is to use the following script a prototype the robot presentation.
write a program that uses the script above as a guy without rose, i.e., robot computer and visitor human, To prototype robot greetings in C++
Project Specifications
Input:
-Visitors age
-An age
-Two numbers
Output: The program should display the following data:
-complete script described above
-Your name as the programmer
-assignment/project number (1)
-Due Date (2/23/21)
Processing Requirements
1. The program should declare and initialize (I.e., Create an assign values for) Variables, Constants to hold at least the following data
- robot name. This variable will hold the robot name. Initialize the variable with "Nao" Or a name of your choice
- visitor name, this variable will hold the user's name
-Age, this variable will hold a persons or pets age
-A constant variable for assignment number initialized the variable with the value 1
- A constant variable for due date. initialize the variable with the due date of this assignment (2/23/21)
-Constant variables for Days of month, human year, gold fish year. Initialize the variables, for example const int ONE_DOG_YEAR =7; const int DAYS_PER_MONTH =30
2. use the above variables when creating the output of the program, for example:
cout
. CMSC 140 Programming Project 1 Chapters Covered: Chapters 1, 2, and 3 Concepts tested in this project To work with cout and cin objects . To work with variables, constants and literals To work with string object Use of different data types To follow programming style Use of basic arithmetic operators Use of output manipulators (setw, fixed, setprecision) Project Description The Department plans to purchase a humanoid robot. The Chairman would like you to write a program to show a greeting script the robot 'can use later. Your first task is to use the following script to prototype the robot for presentation: was Robot Prototype Scripting Hello, welcome to Montgomery College! My name is Nao. May I have your name? john Smith Nice to have you with as roday, John Smith! Let me impress you with a small game. Give me the age of an important person of a per to you. Please give me only a number: 12 2 years You have entered iz If this is for a person, the age can be expressed as or 24 months or about 220 days or about 17280 hours or about 1036800 minutes or about 62208000 seconds. If this is for a dog, is 14 years old in human age. If this is for a goldfish, it is 10 sold in human age Let's play another game, john Smith. Give me a whole number Very well. Give me another whole number 5 Using the operator in C++, the result of 45 is Using the operator the result of his however, the result of 4.0/50 Sabouras Thank you for testing my program! PROGRAMMER Lee TOECT Common Project 1 Due Date: 21/10/2019 Write a program that uses the script above as a guide without roles, le robot computer and visitor human, to prototype robot greeting in C++. See the Sample Screen Output below. Project Specifications Input Visitor's name An age Two numbers Output: The program should display the following data: Complete script described above Your name as the programmer Assignment/Project number Due date Processing Requirements name 1. The program should dedare and initialize (i.e. create and assign values for) variables/constants to hold (at least) the following data: Robot Name. This variable will hold the Robot Name. Initialize the variable with *Nao" or a name of your choice. Visitor Name, this variable will hold the user's name. Age. This variable will hold a person's or a pet's age. A constant variable for Programmer's Name. Initialize the variable with your full A constant variable for Assignment Number. Initialize the variable with the value 1. A constant variable for Due Date. Initialize the variable with the due date of this assignment. Constant variables for Days of Month, Human Year, Gold Fish Year. Initialize the variables, for example const int ONE_DOG_YEAR = 7; const int DAYS_PER_MONTH = 30; 2. Use the above variables when creating the output of the program, for example: cout Where robotName is a variable defined in your program.
3. Use the following for the computations in the program:
- 1 month = 30 days
- Dog's age = 7 times human's age
- Gold fish age = 5 times human's age
Sample Screen output
- A COMPLETED TEST PLAN TABLE
-PSEUDOCODE/FLOWCHART
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started