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

  Separation performed by flash vaporization in a drum

Consider a vapor/liquid separation performed by flash vaporization in a drum:

  Illustrate example from ansi c programming language

Illustrate example from ANSI C programming language, without using nested procedures, to show the fact that "assignment-by-sharing in conjunction with quasi-dynamic object binding

  Program which opens a data file and displays its content

writing a C++ program which opens a data file and then displays its contents with line numbers. That is the program should display the number 1 and then the first line of the file, then the number 2 and the second line of the file, etc.

  A perfect solution is impossible or too expensive

Optimization is often encountered in engineering problems. More often than not, a perfect solution is impossible or too expensive to find and implement. Therefore, we resort to sub-optimal, yet useful, solutions. This assignment tackles a classical p..

  Modify the c program so that user inputs the purchase amount

Modify the C program so that the user inputs the purchase amount. Check the user's input for validity. In addition to calculating the sales tax for each location, calculate and display the total sale amount for each location.

  Create huffman codes

Write a C++ program to create Huffman codes. Program input is a file called freq.txt (make up your own file for testing) that contains data on the characters in some cleartext file in the form of each character's non-zero frequency of occurrence i..

  Design a new class c non-routable network

Design a new Class C non-routable network

  Binary tree routines in c++ that will handle single word

Attached is the input file. The commands should be executed in the order given. Where it says an order type such as inorder, that means to print the tree so far, in that way.

  What happens when c is a function of just one variable

What happens when C is a function of just one variable? Can you provide a geometric interpretation of what gradient descent is doing in the one-dimensional case?

  Define the purpose of a pointer with a example

How does ASP.NET extend the capability of using C++ as a programming language to create dynamic websites? Is C++ the preferred programming language for developing ASP.NET pages?

  Questionnbspnbspi have a product called neverwet that

questionnbspnbspi have a product called neverwet that creates a hydrophobic surface on stuff. theres a base and top

  Can you have an array of arrays

What are the purposes of the following three functions? How would you use them in your programs? Hint: In relation to buffers.

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