| | |
Array Assignment
![]() |
•
•
Join Date: Nov 2004
Posts: 3
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Nov 2004
Posts: 3
Reputation:
Solved Threads: 0
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;
# 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;
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.
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.
•
•
Join Date: Dec 2004
Posts: 207
Reputation:
Solved Threads: 7
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.
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.
![]() |
Similar Threads
- Multidimensional Array assignment statement (Visual Basic 4 / 5 / 6)
- RemoveAll Function (for an Array) (C++)
- Array (C++)
- array help (C)
- Return Array from C++ (C++)
- C++ file to array (C++)
- Read in a file and store in char array (C)
Other Threads in the Computer Science Forum
- Previous Thread: General Programming issue
- Next Thread: theory of programming languages
Views: 9799 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for Computer Science
ai algorithm algorithms array assembly assignment assignmenthelp assignments automata binary bletchleypark blogging book brunel cern cheating-failed clueless code compiler computer computers control conversion copyright cryptography data-base database dfa dissertation dissertations dissertationtopic education email execution extensions git github givemetehcodez government graphics guidelines history homework homeworkassignment homeworkhelp ibm ideas impress info information insertion introductory itcontracts jobs language lazy lighthouse lincence linkbait marketing method mobileapplication ms nerd networkingprojects news notation offtopic openoffice os parser problem programming ps3 quick recursion result science security servers skills software sorting spoonfeeding sql sql-server stephenfry student student-gets-caught supercomputing syntactic telecom time traffic tree uk verify visualbasic warehouse ww2






