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 I/ name I/ date // Program description I/ ******* ***************** ****** C+ Programming screenshot of C++ source code and run

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.4: Program Input Using Cin
Problem 12E
icon
Related questions
Question
Answer both
C++ Programming
C++ Programming
2.
C+ Programming
o Write the C++ code for a program that accepts one salesperson's name and number of
1. N.
Write the C++ code for a program that accepts two numbers from a user and displays one of the
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 performer-defined as a person who sells more
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
// ********s*
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.
**********
C+ Programming
screenshot of C+H source code and run
Use this format for your C++ file:
// C+ Programming Exercise 4 #2
// name
// date
// Program description
// ****************
// main program
I/Declarations
*********
// housekeeping
// detail
// end-of job
C+ Programming
screenshot of C+H source code and run
Transcribed Image Text:C++ Programming C++ Programming 2. C+ Programming o Write the C++ code for a program that accepts one salesperson's name and number of 1. N. Write the C++ code for a program that accepts two numbers from a user and displays one of the 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 performer-defined as a person who sells more 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 // ********s* 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. ********** C+ Programming screenshot of C+H source code and run Use this format for your C++ file: // C+ Programming Exercise 4 #2 // name // date // Program description // **************** // main program I/Declarations ********* // housekeeping // detail // end-of job C+ Programming screenshot of C+H source code and run
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Public key encryption
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning