Question: C++ Programming Exercise 4 C++ Programming Exercise 4 #1 (C++PE4-1) 1.Name your C++ source code file: C++PE4-1.cpp Write the C++ code for a program that

C++ Programming Exercise 4

C++ Programming Exercise 4 #1 (C++PE4-1)

1.Name your C++ source code file: C++PE4-1.cpp

Write the C++ code for a program that accepts two numbers from a user and displays one of the following messages: "First is larger", "Second is larger", "Numbers are equal".

Use this header for your C++ file:

// C++ Programming Exercise 4 #1

// name

// date

// Program description

// *********************************************************************

C++ Programming Exercise 4 #1 screenshot of C++ source code and run

C++ Programming Exercise 4 #2 (C++PE4-2)

2.Name your C++ source code file: C++PE4-2.cpp

oWrite the C++ code for a program that accepts one salesperson's name and number of sweatshirts sold in the last month. You are to calculate the total value of the sweatshirts sold assuming each sweatshirt cost $30. You are to display the salesperson's name, number of sweatshirts sold, total value of the sweatshirts that were sold, and the message" High Performer", only if the salesperson is a high performerdefined as a person who sells more than $7000 worth of sweatshirts in the month.

Use comments to create three modules (sections) within the main program. The main program declares global variables and then includes housekeeping, detail, and end-of-job modules. The housekeeping module prompts for and accepts a salesperson's name .The detail module prompts for and accepts the number of sweatshirts sold in the month, computes the total value of the sweatshirts, and displays and displays the results for that sales person. The end-of-job module displays the message Thanks for using this program.

Use this format for your C++ file:

// C++ Programming Exercise 4 #2

// name

// date

// Program description

// *********************************************************************

// main program

//Declarations

// housekeeping

// detail

// end-of job

C++ Programming Exercise 4 #2 screenshot of C++ source code and run

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!