dead line is at 12am its 11;07 right now
no i need the pesudocode
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
sounds good thankyou
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: A80 – 89: B70 – 79: C60 – 69: DLess than 59: FThe program should produce the following output for the student: Student Name: XXXXXXXXXXXXX Final Average: 80.5% Final Grade: XThe 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)
last part of the question is what i really need to finish.
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.comSTEP 2: Upload your file there.STEP 3: When Upload is 100% Complete it will provide the following details for the file:FILE ID and Download LinkSTEP 4: Copy both the details and post them here.Thank You.
the image this pseudo code is different then ours ill show u an example
Input Module (Name ByRef, Score ByRef, count ByRef)
thats the download link
For (i = 0 ; i < count ; i++) whaT does i stands for??
I was thinking of somthing like this
BEGIN DetermineGrade 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 START CalculateGrade scoreExam = student(avgExam) * weightExam scoreQuiz = student(avgQuiz) * weightQuiz scoreLab = student(avgLab) * weightLab finalScore = scoreExam + scoreQuiz + scoreLab IF (final_score > 90) THEN student(grade) = "A" ELSE IF (finalScore >= 80) AND (finalScore <= 89) THEN student(grade) = "B" ELSE IF (finalScore >= 70) AND (finalScore <= 79) THEN student(grade) = "C" ELSE IF (finalScore >= 60) AND (finalScore <= 69) THEN student(grade) = "D" ELSE IF (finalScore < 59) THEN student(grade) = "F" 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) DISPLAY "Final Grade: " + student(grade) STOPEND
Instructor Explanation: Answers may vary, and the following is one possible solution: start main moduleDeclare string studentNameDeclare real examAverageDeclare real quizAverageDeclare real labAverageDeclare real finalAverageDeclare character finalGrade InputStudentData(studentName, examAverage, quizAverage, labAverage)CalculateGrade DisplayResult(examAverage, quizAverage, labAverage, finalAverage, finalGrade)DisplayResult(studentName, finalAverage, finalGrade)end mainInputStudentData(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 CalculateGrade(exam, quiz, lab, score, grade) Set score = (exam * .6) + (quiz * .2) + (lab * .2) if (score >= 90) then grade = “A”else if (score >= 80) then grade = “B”else if (score >= 70) then grade = “C”else if (score >= 60) then grade = “D”else grade = “F”end if End DisplayResult(name, score, grade)Display “Student Name: “ + nameDisplay “Final Average: “ + scoreDisplay “Final Grade: “ + gradeEnd
its 12:30 im not able to submit after 12 but thnx anyways