GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Oct-2009, 17:08
metrsostation metrsostation is offline
New Member
 
Join Date: Oct 2009
Posts: 3
metrsostation is on a distinguished road

Write a program to help manage an inventory of musical instruments


Hey Guys Please I Am All new In C++ and i need to pass this assignment

Write a program to help manage an inventory of musical instruments. When A delivery arrives, the user should be able to enter the following for each itme being unloaded from the truck:

-- type of the instrument, assume piano --> Write a programme to help manage an inventory of musical instruments. When a delivery arrives the user should be able to enter the following for each item being unloaded from the truck:
type of the instrument, assume: piano à 1, guitar à 2, drum set à 3 saxophone à 4
class of the instrument, assume: top à “A”, average à “B”, below average à “C”
price of the instrument which differs depending on the brand, type, class etc. choose any.

Once the user has finished entering data the programme should output a display similar to the following with the correct values (Be sure to use integer or double where needed):

The total number of pianos is: The total number of guitars is:
The total number of drum sets is: The total number of saxophones is:

The total cost of all new inventories is:
The total number of instruments is:
The percentage of class “A” instruments is:
The average cost per instrument is:


How To Start?! and we should comment all the way though!
  #2  
Old 27-Oct-2009, 17:37
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 713
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: Help! I Dnt Know how To Start


Start with this and add code:
CPP / C++ / C Code:
int main()
{
  return 0;
}

If you want help, you must first try doing something yourself and ask questions when you get stuck. We are not here to do your assignment for you.
  #3  
Old 28-Oct-2009, 00:26
jnCPP jnCPP is offline
New Member
 
Join Date: Oct 2009
Posts: 9
jnCPP will become famous soon enough

Re: Help! I Dnt Know how To Start


I just started c++ a few months ago,
but what I was told was to always
sit down and think about how to write the program..
If you look at this as one HUGE chunk of work, it'll
be intimidating, and I'm sure that's why you don't
know where to start.
I don't plan on talking you through the entire assignment,
but here's a couple of starter tidbits.

1. What kinds of variables are you going to need?
2. How will I know when the user is done inputting numbers?
3. How am I going to calculate what needs to be calculated?
  #4  
Old 28-Oct-2009, 06:23
Mexican Bob's Avatar
Mexican Bob Mexican Bob is offline
Member
 
Join Date: Mar 2008
Location: Chicxulub, Yucatán
Posts: 226
Mexican Bob is a jewel in the roughMexican Bob is a jewel in the roughMexican Bob is a jewel in the rough

Re: Write a program to help manage an inventory of musical instruments


Quote:
Originally Posted by metrsostation
Hey Guys Please I Am All new In C++ and i need to pass this assignment

...so, how new to C++ are you? I mean, is this the first program you've ever had to write or do you have experience with the fundamentals of the language?

Quote:
Originally Posted by metrsostation
How To Start?! and we should comment all the way though!

This is really a very funny "statement." I guess start with a comment?!


You indicate that you need to pass this assignment...so you're out and about, working on your veterinary sciences degree and decided that a course in C++ would be a nice diversion? How about some context as to why you're in this predicament? Did this sneak up on you unexpectedly?


MxB
  #5  
Old 29-Oct-2009, 02:04
metrsostation metrsostation is offline
New Member
 
Join Date: Oct 2009
Posts: 3
metrsostation is on a distinguished road

Re: Write a program to help manage an inventory of musical instruments


I mean im new to UNiversity and everythingg fine ill try my best just tht i wanted a way to start declaring the variables anw thnk u guys!
  #6  
Old 29-Oct-2009, 08:38
Howard_L Howard_L is offline
Regular Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 800
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Re: Write a program to help manage an inventory of musical instruments


If you really want to "try your best" you might start by spelling words correctly.
This is VERY important in programming AND in being taken seriosly by others, especially programmers, they're as bad as English Majors...

What is your C++ programming level.
Do you know anything about arrays? . . . structures? . . . classes?

Have you got anything started yet , like an outline?

How about starting with the list of questions you think you will need answered for each insturment.
That might help you decide on what data structure(s) you will need to store the data in.

Get something started and post it so the guys have something to start with.
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a mathematical formula for this recursion? transgalactic C Programming Language 8 12-Oct-2008 08:43
Sum of the even numbers between n1 and n2 avg81 C++ Forum 11 02-Nov-2007 08:35
Urgent ! Pls Help Me ! mycashmoney C Programming Language 4 01-Jul-2006 23:49
Looking for Reliable, Cheap ASP, ASP.NET MSSQL Hosting start from $4 stevewatt88 Web Hosting Advertisements & Offers 1 31-Jul-2004 05:27
Athlon system locking up on start up. Is it MoBo, Processor, PSU or what? ebolaosu Computer Hardware Forum 8 26-Feb-2004 12:19

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:42.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.