Question: 1. (25 Points) Write a complete, working C++ program called euidA.cpp (where eu your EUID) that does the following: Declare the following variables: string variable
1. (25 Points) Write a complete, working C++ program called euidA.cpp (where "eu your EUID) that does the following: Declare the following variables: string variable to store the salesperson's full name (i.e,first and last name). An integer to store the salesperson's monthly sales earnings. o o A floating-point number to store the value of the salesperson's bonus. Prompt for and read in the full name more proper names (e.g., "John Smith") Generate and store a seeded, randomly generated integer inclusively, that is used to represent a salesperson's monthly sales earnings. Calculate and store the salesperson's bonus to be 5.4% of the monthly sales earnings. Print out a meaningful message that includes the full name of the salesperson along the salesperson's monthly bonus. When printing out the monthly bonus value, type cast it as an integer and include the '$' character before this value. e full name of the salesperson, which may consist of one or between 1,600 and 3,500, . Write a single- or multi-line comment anywhere in the code with your name and EUID. Due to time constraints, no comments are required in this code. Here is a sample output to help you write the code. The items in bold are entered by the user. ./a.out Enter the first and last name of the salesperson: John Smi th John Smith earned a $161 monthly bonus
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
