| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help with array...
OK I need some help. I am a bit of a beginner with C++. I have a small
project due and I am having a hard time even knowing where to start. I have attempted a flow chart and pseudocode, and to no help I am still at ground zero. I am not looking for someone to do it for me, just maybe point me in some type of general direction. I will give to you the wording as it was to me: Use a single subscripted array to solve the following problem. A company pays its sales people on a commission basis. The sales people receive $200.00 per week plus 9 percent of their gross sales for that week. For example, a sales person who grosses $5000 in sales in a week receives $200 plus 9% of $5000, or a total of $650. Write a program using an array of counters that determines how many of the sales people earned salaries in each of the following ranges ( assume that each salesperson's salary is truncated to an integer amt ): a) $200-$299 b) $300-$399 c) $400-$499 d) $500-$599 e) $600-$699 f) $700-$799 g) $800-$899 h) $900-$999 i) $1000 and over 1. The progam should process as many salespersons data that the user wants to enter. A solution might include asking the user if there is salespersons to be processed or not 2. Use the array indexes ( subscripts ) to 'map' to the computed salary ranges. The data stored in the array can represent the 'number of sales persons' in each of the computed salary ranges. OK I am new to C++ I can do really basic things, and I mean basic so this I am having a hard time with this. I have read and read and read the material that I was given and attempted to comprehend, but I really don't even know where to start. Once again, I am not looking for someone to do it completely, maybe just help me get started or get an idea. Any help/hints/tips greatly appreciated!! Thanks |
|
#2
|
|||
|
|||
|
My first piece of advice would be to give it a go. Theres a million and one tutorials out there that will tell you how to set up a small c++ program that prints 'hello world' on the screen. Then from there read another that tells you about user input and play around with it. Keep reading tutorials and trying things out then when you have specific questions let us know we're always happy to help on things like that but don't really see what we can give you if you've made some pseudo code and a flow chart already.
-KM- |
|
#3
|
|||
|
|||
|
thanks
I have actually gotten it completed I think!!!!!!!!!!!!! ![]() |
|
#4
|
|||
|
|||
|
Quote:
thanks, |
|
#5
|
|||
|
|||
|
Did you get it working finally or are you still having problems? E-mail me what you have so I can take a look at it.
Thanks, -CW |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Help with array... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|