• 100% Satisfaction Guarantee
Raj, Engineer
Category: Homework
Satisfied Customers: 1290
Experience:  4 + Experiance in IT Industry
16752232
Raj is online now

# Professor Robinson has asked you to design the logic that will

### Customer Question

Professor Robinson has asked you to design the logic that will be used to calculate final class averages and grades for his students. His grading algorithm is as follows:
Exam average: 60%
Quiz average: 20%
Lab average: 20%
For each student, Professor Robinson will enter the value for each of the averages (exam, quiz, and lab). Then, using the weighting above, the program will calculate the final student class average and store each student’s final average into an array. The program will then determine the letter grade for each student using the following criteria:
90 – 100: A
80 – 89: B
70 – 79: C
60 – 69: D
Less than 59: F
The program should produce the following output for the student:
Student Name: XXXXXXXXXXXXX
Final Average: 80.5%
The program should use separate procedures for:
· inputting the data;
· determining the Final Grade; and
· displaying the results.

The following is the Hierarchy Chart for the design, and notice that modules should pass data between them to perform the necessary processing.
Submitted: 3 years ago.
Category: Homework
Expert:  Raj replied 3 years ago.
Hi There,

I will be helping you with the solution.
Let me know the deadline and the software in which you need the solution?
Customer: replied 3 years ago.

dead line is at 12am its 11;07 right now

Expert:  Raj replied 3 years ago.
Ok And you need it in Visual Logic?
Customer: replied 3 years ago.

no i need the pesudocode

(Points : 10)

Expert:  Raj replied 3 years ago.
Ok I am working on it and Will have Pseudocode ready in next 20 min.

Is there any format to be used for Pseudocode or is it to be written in general Pseudocode terms.
Customer: replied 3 years ago.

i think its general psedocode term if you can show me a sample i will be able to tell you if its the right way

Expert:  Raj replied 3 years ago.
Its Something Like as follows:

START
Main Module
Declare number as Integer

Display "Enter a Number to Display : "
Get number

Display "You Entered : " + number
End Main Module
STOP

The Above Pseudocode sample will ask user for a number of type Integer and than print that number on the screen.

Is the above sample format fine to be used?
Customer: replied 3 years ago.

yes

Expert:  Raj replied 3 years ago.
Ok As We Speek I have almost completed half the Pseudocode of the Requirement.
Customer: replied 3 years ago.

sounds good thankyou

Expert:  Raj replied 3 years ago.
Please stay online for next 10 min and I will provide you Pseudocode for the requirement in an MS Word file.
Customer: replied 3 years ago.

ok

Expert:  Raj replied 3 years ago.
Ho much time is left?
Customer: replied 3 years ago.

27 minutes

Expert:  Raj replied 3 years ago.
Ok I will just need 10 mor min to Finish the final part of the Assignment.
Is that fine with you?
Customer: replied 3 years ago.

1. (TCO 3, 10) Review the following scenario and complete the modular design where the main module only controls the execution of the modules.
Scenario:

Professor Robinson has asked you to design the logic that will be used to calculate final class averages and grades for his students. His grading algorithm is as follows:
Exam average: 60%
Quiz average: 20%
Lab average: 20%
For each student, Professor Robinson will enter the value for each of the averages (exam, quiz, and lab). Then, using the weighting above, the program will calculate the final student class average and store each student’s final average into an array. The program will then determine the letter grade for each student using the following criteria:
90 – 100: A
80 – 89: B
70 – 79: C
60 – 69: D
Less than 59: F
The program should produce the following output for the student:
Student Name: XXXXXXXXXXXXX
Final Average: 80.5%
The program should use separate procedures for:
· inputting the data;
· determining the Final Grade; and
· displaying the results.

The following is the Hierarchy Chart for the design, and notice that modules should pass data between them to perform the necessary processing.

(Points : 10)

Expert:  Raj replied 3 years ago.
Done.

If you face any difficulty than feel free to ask for help.

If the solution file is satisfactory than Please don't forget to RATE the Answer.
It will hardly take few seconds to RATE my Answer

Thank You and Have a Good Day.
Expert:  Raj replied 3 years ago.
I think my last post containing the solution did not get posted so I am posting it again:

If you face any difficulty than feel free to ask for help.

If the solution file is satisfactory than Please don't forget to RATE the Answer.
It will hardly take few seconds to RATE my Answer

Thank You and Have a Good Day.
Customer: replied 3 years ago.

last part of the question is what i really need to finish.

1. (TCO 3, 10) Review the following scenario and complete the modular design where the main module only controls the execution of the modules.
Scenario:

Professor Robinson has asked you to design the logic that will be used to calculate final class averages and grades for his students. His grading algorithm is as follows:
Exam average: 60%
Quiz average: 20%
Lab average: 20%
For each student, Professor Robinson will enter the value for each of the averages (exam, quiz, and lab). Then, using the weighting above, the program will calculate the final student class average and store each student’s final average into an array. The program will then determine the letter grade for each student using the following criteria:
90 – 100: A
80 – 89: B
70 – 79: C
60 – 69: D
Less than 59: F
The program should produce the following output for the student:
Student Name: XXXXXXXXXXXXX
Final Average: 80.5%
The program should use separate procedures for:
· inputting the data;
· determining the Final Grade; and
· displaying the results.

The following is the Hierarchy Chart for the design, and notice that modules should pass data between them to perform the necessary processing.

(Points : 10)

Expert:  Raj replied 3 years ago.

What last part??

Is there any Image??

Please let me know full detail of last part as its not visible

If you have any MS Word file than you can post it to me using the following steps:

STEP 1: GOTO Website www.wikisend.com
STEP 3: When Upload is 100% Complete it will provide the following details for the file:
STEP 4: Copy both the details and post them here.

Thank You.

Customer: replied 3 years ago.

the image this pseudo code is different then ours ill show u an example

Expert:  Raj replied 3 years ago.

If you have any MS Word file than you can post it to me using the following steps:

STEP 1: GOTO Website www.wikisend.com
STEP 3: When Upload is 100% Complete it will provide the following details for the file:
STEP 4: Copy both the details and post them here.

Thank You.
Expert:  Raj replied 3 years ago.
Does Modules in your Pseudocode looks like as follows:

Input Module (Name[] ByRef, Score[] ByRef, count ByRef)

End Input Module

Do you mean that change??
Customer: replied 3 years ago.

Expert:  Raj replied 3 years ago.

You need to spend \$3 to view this post. Add Funds to your account and buy credits.
Customer: replied 3 years ago.

For (i = 0 ; i < count ; i++) whaT does i stands for??

Expert:  Raj replied 3 years ago.

You need to spend \$3 to view this post. Add Funds to your account and buy credits.
Expert:  Raj replied 3 years ago.
If you want I can convert it to DO WHILE which is explained in the document provided by you..

Will that be fine??
Customer: replied 3 years ago.

I was thinking of somthing like this

START
DECLARE ARRAY student
DECALRE INTEGER count = 0
DECALRE INTEGER weightExam = 0.60
DECALRE INTEGER weightQuiz = 0.20
DECALRE INTEGER weightLab = 0.20
DECLARE REAL avgExam = 0
DECLARE REAL avgQuiz = 0
DECLARE REAL avgLab = 0
DECLARE INTEGER sumExam = 0
DECLARE INTEGER sumQuiz = 0
DECLARE INTEGER sumLab = 0
STOP
START InputStudentData
PROMPT "Enter students name: "
GET student(name)
PROMPT "Exam average: "
GET student(avgExam)
PROMPT " Quiz average: "
GET student(avgQuiz)
PROMPT " Lab average: "
GET student(avgLab)
count = count + 1
sumExam = sumExam + student(avgExam)
sumQuiz = sumQuiz + student(avgQuiz)
sumLab = sumLab + student(avgLab)
STOP
scoreExam = student(avgExam) * weightExam
scoreQuiz = student(avgQuiz) * weightQuiz
scoreLab = student(avgLab) * weightLab
finalScore = scoreExam + scoreQuiz + scoreLab
IF (final_score > 90) THEN
ELSE
IF (finalScore >= 80) AND (finalScore <= 89) THEN
ELSE
IF (finalScore >= 70) AND (finalScore <= 79) THEN
ELSE
IF (finalScore >= 60) AND (finalScore <= 69) THEN
ELSE
IF (finalScore < 59) THEN
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
avgExam= sumExam / count
avgQuiz = sumQuiz / count
avgLab = sumLab / count
STOP
START DisplayResult
DISPLAY "Student Name: " + student(name)
DISPLAY "Final Average: " + student(finalScore)
STOP
END

Instructor Explanation: Answers may vary, and the following is one possible solution:

start main module
Declare string studentName
Declare real examAverage
Declare real quizAverage
Declare real labAverage
Declare real finalAverage

InputStudentData(studentName, examAverage, quizAverage, labAverage)
end main
InputStudentData(name, exam, quiz, lab)
Display “Enter student name: “
Input name

Display “Enter exam average: “
Input exam

Display “Enter quiz average: “
Input quiz

Display “Enter lab average: “
Input lab

End

Set score = (exam * .6) + (quiz * .2) + (lab * .2)
if (score >= 90) then
else if (score >= 80) then
else if (score >= 70) then
else if (score >= 60) then
else
end if
End

Display “Student Name: “ + name
Display “Final Average: “ + score
End

Expert:  Raj replied 3 years ago.
Ok So In your requirement Array is represented as () instead of []

So Do you want me to go ahead with the changes to be done in the code?
Expert:  Raj replied 3 years ago.