Create a program for the sales manager at computer haven

Assignment Help C/C++ Programming
Reference no: EM131008760

Message : I need help programing this...

In this exercise, you will create a program for the sales manager at Computer Haven, a small business that offers motivational seminars to local companies. Figure 7 - 64 shows the charge for attending a seminar. Notice that the charge per person depends on the number of people the company registers.

For example, the cost for four registrants is $400; the cost for two registrants is $300. The program should allow the sales manager to enter the number of registrants for as many companies as needed.

When the sales manager has finished entering the data, the program should calculate and display the total number of people registered, the total charge for those registrants, and the average charge per registrant.

For example, if one company registers four people and another company registers two people, the total number of people registered is six, the total charge is $700, and the average charge per registrant is $116.67.

Problem Specification:

In this exercise, you will create a program for the sales manager at Computer Haven, a small business that offers motivational seminars to local companies. Figure 7 - 64 shows the charge for attending a seminar. Notice that the charge per person depends on the number of people the company registers. For example, the cost for four registrants is $400; the cost for two registrants is $300. The program should allow the sales manager to enter the number of registrants for as many companies as needed. When the sales manager has finished entering the data, the program should calculate and display the total number of people registered, the total charge for those registrants, and the average charge per registrant. For example, if one company registers four people and another company registers two people, the total number of people registered is six, the total charge is $700, and the average charge per registrant is $116.67.

Number of people accompany registers

1 - 3

4 - 9

10 or more

Charge per person ($)

150

100

90

a. Create an IPO chart for the problem, and then desk-check the algorithm appropriately.

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown in Figure 7 - 14 in the chapter. Then code the algorithm into the program.

c. Desk-check the program using the same data used to desk-check the algorithm.

d. If necessary, create a new project call Advanced34 Project and save it in the Cpp7/Chap07 folder. Enter your C++ instructions into a source file called intermediate34.cpp. Also enter appropriate comments and any additional instructions required by the complier. Display the total charge in fixed-point notation with two decimals.

e. Save and run the program. Test the program using the same data used to desk-check the program.

Input

Process

Output

Number of registrants

 

Processing items: none

 

Algorithm:
1.Enter number of people registered

2.Display  total people registered

3.Enter the charge per person

4.Display charge per person

 

 

 

 

 

 

 

 

 

 

 

Total people registered

 

Total charge of registrants

 

Average charge per registrant

 

IPO Chart Info

C++ Code

Input

Number of Registrants

 

 

Processing

 

 

 

Output

 

 

Algorithm

 

 

 

 

 

 

 

 

 

//Input

 

 

 

//Processing

 

 

 

//Output

 

 

//Algorithm

Reference no: EM131008760

Questions Cloud

What is the overall message of the group of articles : A statement of the conclusions that can be drawn when the articles are taken together as a single entity. What is the overall message of the group of articles? Focus specifically on how leadership behavior influences leadership results
Find dimensions of box so that cost of material is minimized : A closed rectangular box with a volume of 16000 cm3 is made from two kinds of materials. Find the dimensions of the box so that the cost of materials is minimized.
What are the total production numbers and individual returns : Suppose the common fishing production function is: F(m) = 1.1 m- (0.1)(m^2), What are the total production numbers and individual returns for 2 firms andfor 12 firms?
How did the issue come to the attention of policymakers : How did the issue come to the attention of policymakers? Briefly describe its legislative history (~1/2 page). This part and the next part will require some background research
Create a program for the sales manager at computer haven : Create a program for the sales manager at Computer Haven, a small business that offers motivational seminars to local companies - calculate and display the total number of people registered, the total charge for those registrants, and the average ch..
Describe the ethical issues you may encounter : Select a case study from Ethics Case Studies for Health Information Management. Describe the ethical issues you may encounter, as well as how you intend to approach them
Analysis of an intercultural experience : A cultural profile of yourself and make an analysis of an intercultural experience (ICE)
How the program or mandate impacts public health informatics : How has public health informatics improved public health and public health services offered to Americans over the last two decades? Describe one example that supports this statement.
Compare talk and reality around some aspect of work : For this exercise, you'll compare talk and reality around some aspect of work and money in America; then once you know the truth, you'll apply some sociological theory to go beyond the headlines and really explain what's happening

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd