C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 10th, 2004, 07:49 PM
Majestica Majestica is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 Majestica User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 11th, 2004, 03:57 AM
kode_monkey kode_monkey is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 367 kode_monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 21 sec
Reputation Power: 6
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-

Reply With Quote
  #3  
Old August 11th, 2004, 07:55 PM
Majestica Majestica is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 Majestica User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks I have actually gotten it completed I think!!


!!!!!!!!!!!

Reply With Quote
  #4  
Old May 2nd, 2005, 04:05 PM
psoftdba psoftdba is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 1 psoftdba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 41 sec
Reputation Power: 0
Thumbs up My Program is bumming.

Quote:
Originally Posted by Majestica
thanks I have actually gotten it completed I think!!


!!!!!!!!!!!
- Can I get a copy of the program?
thanks,

Reply With Quote
  #5  
Old May 28th, 2005, 04:49 PM
ComscienceWhiz ComscienceWhiz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 1 ComscienceWhiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Help with array...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT