Array Assignment

Reply

Join Date: Nov 2004
Posts: 3
Reputation: sugpo is an unknown quantity at this point 
Solved Threads: 0
sugpo sugpo is offline Offline
Newbie Poster

Array Assignment

 
0
  #1
Nov 14th, 2004
Hey, I heard this site is very good.

I need help on my C++ assignment. I would appreciate if you guys help me. :rolleyes: My professor is not very good teaching this class. Attached please find some of the excercise he want us to do.

Array Assignments

1. Write a C++ program to calculate the test score for student.
a) Create a 10 questions (True False and multiple choice)
b) Store the answers in an array.
c) Compare student answers with correct answer from array.
d) Increment the counter for each correct answer and for wrong answer.

Your output should look like

Name of Student xxxxxxxxx
Correct Answers xx
Wrong Answers xx
Percent of correct Answer = xx%

2. Write a program to calculate commission report for EZ-Tech corporation. They have five sales people. Your program must ask input for 3 sales for each sales person. Add the sales for each sales person and calculate commission. Commission is given by using the following information

a) For first $1000.00 commission rate is 5%
b) For next $2500.00 commission rate is 7%
c) Over $2500.00 commission rate is 9%
Use array

Your output should look like

Commission Report

Name Sale1 Sale2 Sale3 Total Commission

Xxxxx xxxxx xxxx xxxx xxxxx xxxx


Total xxxx xxxx xxxxx xxxxx xxxx
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 8,313
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 824
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Array Assignment

 
0
  #2
Nov 14th, 2004
Okay, and what have you tried? We don't do homework for you, we help you with specific problems (when the specific problem isn't "I need you to do my homework").
In case you were wondering, yes, I do hate you.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 3
Reputation: sugpo is an unknown quantity at this point 
Solved Threads: 0
sugpo sugpo is offline Offline
Newbie Poster

Re: Array Assignment

 
0
  #3
Nov 14th, 2004
I don't really understand C++, and I don't have nobody to help me. So far all I have is this:

# include <iomanip.h>

int main()
{

char studentName[20];
char question[];
int correctanswrs;
int wronganswers;
int cal_percentanswers;

cout<< " Enter Student's Name: " <<studentName;

char question[25]={True, False, multiple choice}

cout<< " Correct Answers: ";
cin>>correctanswers;

cout<< " Wrong Answers: ";
cin>>wronganswers;
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,482
Reputation: jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all 
Solved Threads: 235
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Array Assignment

 
0
  #4
Nov 15th, 2004
If that's the extend of your C++ knowledge I wonder how you've come so far in your course to get an assigment like the one you posted.

Or have you been chased away from another site for once too often asking people to do your homework for you?

Every programming course I've ever taken had one or more books as required (or sometimes strongly suggested but take that as required) reading.
I suggest you read your courseware as it should help you along no small bit.

Then break up your assignment into discrete parts and solve each of those.
Then glue the pieces together.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 3
Reputation: sugpo is an unknown quantity at this point 
Solved Threads: 0
sugpo sugpo is offline Offline
Newbie Poster

Re: Array Assignment

 
0
  #5
Nov 15th, 2004
Thanks, but I just find out myself how to do it.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 8,313
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 824
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Array Assignment

 
0
  #6
Nov 15th, 2004
>but I just find out myself how to do it.
Good. Maybe you actually learned something.
In case you were wondering, yes, I do hate you.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 12
Reputation: happyHour is an unknown quantity at this point 
Solved Threads: 0
happyHour happyHour is offline Offline
Newbie Poster

Re: Array Assignment

 
0
  #7
Jan 1st, 2005
but your paying all that money for someone to teach you are you not??
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,482
Reputation: jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all 
Solved Threads: 235
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Array Assignment

 
0
  #8
Jan 3rd, 2005
Originally Posted by happyHour
but your paying all that money for someone to teach you are you not??
Most kids don't pay for school. Their parents do but don't pass on the bill, so the kid never knows the cost of their schooling.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 207
Reputation: Real-tiner is an unknown quantity at this point 
Solved Threads: 7
Real-tiner Real-tiner is offline Offline
Posting Whiz in Training

Re: Array Assignment

 
0
  #9
Jan 19th, 2005
From the description, the instructor does not expect any student to get all the answers right. The percentage has only two spaces for digits in "Percent of Correct Answer"

The instructor also doesn't understand english syntax, because "Percent of Correct Answer" does not mean anything close to what is intended. It's almost scramblish.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 9799 | Replies: 8
Thread Tools Search this Thread



Tag cloud for Computer Science
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC