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 06-Nov-2008, 06:31
sixth_vang sixth_vang is offline
New Member
 
Join Date: Nov 2008
Posts: 3
sixth_vang is on a distinguished road

Please help computer programming 101 questions


Well i need help completing these programs. They have to be written in module or whatever and have to have flow and hierarchy charts. I can do the charts but if someone can help me out with the rest that'd be great. This just has to be written in very basic modular/pseudocode language.

module main () etc etc etc

4. A book club awards points to its customers based on the number of books purchased each month. The points are awarded as follows

purchase 0 books, 0 points
1 book, 5 points
2 books, 15 points
3 books, 30 points
4 or more books, 60 points

design a program that asks the user to enter the number of books that he or she has purchased this month and displays the number of points awarded

5. A software company sells a package that retails for $99. Quantity discounts are given according to the following table:

Quantity Discount
10-19 20%
20-49 30%
50-59 40%
100 or more 50%

Design a program that asks the user to tneter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.

6. Shipping charges

Company charges the following rates:

weight rates per pound
2 lbs or less = 1.10
over 2 but not more than 6= 2.20
over 6 but not more than 10 = 3.70
over 10 = 3.80

design a program that asks the user to enter the weight of a package and displays the shipping charges.
  #2  
Old 06-Nov-2008, 06:45
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 1,032
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough

Re: Please help computer programming 101 questions


Please show us your work and ask specific questions on what you need help with.
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #3  
Old 06-Nov-2008, 06:51
sixth_vang sixth_vang is offline
New Member
 
Join Date: Nov 2008
Posts: 3
sixth_vang is on a distinguished road

Re: Please help computer programming 101 questions


Everything if possible. This quarter has been hell for me as I thought I could handle 2 jobs and 4 classes at a tech school. I just discovered that programs are 60% of our grade. So i just need to get these 3 out of the way and try to move forth.
  #4  
Old 06-Nov-2008, 06:58
sixth_vang sixth_vang is offline
New Member
 
Join Date: Nov 2008
Posts: 3
sixth_vang is on a distinguished road

Re: Please help computer programming 101 questions


Well all i have so far for the first one is

Module Main ()
Declare
//Prompt User for the amount of books purchased this month
Display "how many books were purchased this month?"
Input bookPurchase


i'm lost from here
  #5  
Old 06-Nov-2008, 07:30
ocicat ocicat is offline
Regular Member
 
Join Date: May 2008
Posts: 580
ocicat is a jewel in the roughocicat is a jewel in the rough

Re: Please help computer programming 101 questions


Quote:
Originally Posted by sixth_vang
Well all i have so far for the first one is...
The point LuciWiz is making is that we need to see what code you have already written to solve this problem. This is helpful for a number of reasons:
  • We aren't in you class, so we don't know what you have covered or understand. Assignments typically are exercises covering material recently covered in lecture, so if you are attending class, you should be able to start something. It doesn't have to be complete, but posting code helps frame discussion & focus specific questions.
  • Our goal isn't to write code for for you. Our goal is to clarify concepts so you can complete the code yourself.
When posting code, please place a [cpp] tag before the code & a [/cpp] tag afterwards.
  #6  
Old 06-Nov-2008, 09:19
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: Please help computer programming 101 questions


Every one of your problems has the same basic process:

1) Get input from the user and store it into a variable of some kind
2) Process the input to get the output
3) Display the output to the user

You will have to add the details for each scenario.
 
 

Recent GIDBlogProgramming ebook direct download available 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
List of programming related questions juvenile386 Miscellaneous Programming Forum 4 05-Jul-2007 08:49
Student programming questions Shawn Miscellaneous Programming Forum 1 02-Apr-2007 22:31
A few questions for someone in the programming industry. WAEvans Miscellaneous Programming Forum 0 08-Oct-2006 10:19
Computer Programming Question knuckle50 MySQL / PHP Forum 3 09-Mar-2006 10:14
Computer security article crystalattice Open Discussion Forum 0 01-Oct-2004 15:31

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

All times are GMT -6. The time now is 10:49.


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