Question

In: Computer Science

Complete a Problem Solving discussion in Word. Your Problem Solving discussion should include Problem Statement, Problem...

Complete a Problem Solving discussion in Word. Your Problem Solving discussion should include Problem Statement, Problem Analysis, Program Design, Program Code and Program Test. For the Program Code section, use Raptor to code

1. Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she has given three tests. It is now the end of the semester and Alberta asks you to create a program that inputs each student’s test scores and outputs the average score for each student and the overall class average. (Hint: The outer loop should allow for Ms. Einstein to input all the students, one by one, and the inner loop should accept the three test scores and compute the average for each student.)

Solutions

Expert Solution

Here i am providing the answer. Hope it helps. please give me a like. it helps me a lot. Here for better understanding i am giving pseudocode and the detailed information how to code in raptor.

Pseudocode

Creating program in Raptor:

Step 1: Add Assignment symbol to the existing new Flow Chart in Raptor.

Set the value of variable as Sum and initialize the value to 0.

Updated in main window,

Step 2: Add Assignment symbol to the existing new Flow Chart in Raptor.

Set the value of variable as TotalAvg and initialize the value to 0.

Updated in main window,

Step 3: Add Assignment symbol to the existing new Flow Chart in Raptor.

Set the value of variable as NumStudents and initialize the value to 0.

Updated in main window,

Step 6

Step 4: Add a Loop. To the Loop add the Input Symbol and double click on the Input Symbol.

At the Enter Prompt Here, type "Enter number of students present in the class: ".

At Enter Variable Here, type NumStudents.

Updated in main window,

Step 7

Step 8

Step 5: Double click the condition box of Loop control.

At the Enter loop exit condition, type NumStudents >= 0.

Updated in main window,

Step 9

Step 10

Step 6: Add Assignment.

Set the value of variable as i and initialize the value to 0

Updated in main window,

Step 1

Step 2

Step 7: Add the loop symbol and double click on the condition box.

At Enter loop exit condition, type i > NumStudents.

Updated in main window,

Step 3

Step 7: Add the Output symbol and double click on it.

At Enter output here, type "For student " + i.

Updated in main window,

Step 8: Add assignment symbol after the Output symbol and double click on it.

Set assignment variable as J and at its value to 1.

Updated in main window,

Step 6

Step 9: Add the loop symbol and double click on the condition box. Add the loop condition as J > 3.

Updated in main window,

Add input symbol and double click on it. Enter the input data in prompt section. "Enter the marks for subject :" + J + ":" and Enter the variable name as Marks.

Updated in main window,

Double click on the condition box after the input symbol.

At Enter loop exit condition, type Marks >= 0 and Marks <= 100.

Updated in main window,

At the Yes condition of Marks condition at J loop, add Assignment symbol and double click on it.

In the Enter an assignment window at Set text box, type Sum.

At to text box as Sum + Marks

Updated in main window,

After the Sum Assignment symbol, add another Assignment symbol and double click on it.

In the Enter an assignment window at Set text box, type J.

At to text box as J + 1.

Updated in main window,

Add assignment symbol at Yes condition of J > 3 and double click on it.

Update assignment variable as StudAvg and Set the value as Sum / 3.

Updated in main window,

Add assignment symbol after the StudAvg assignment box and double click on it.

Update assignment variable as TotalAvg and Set the value as TotalAvg + StudAvg.

Updated main window is,

Add assignment symbol after the TotalAvg assignment box and double click on it.

Update assignment variable as Sum and Set the value as 0.

Add Output symbol after the Sum assignment box and double click on it.

At Enter Output Here, type "Averge score of the student " + i + ": " + StudAvg.

Add Assignment symbol after the Output Assignment symbol and double click on it.

At Enter an assignment, type i at Set Input box and

At To Input box as i + 1.

Updated main window is,

At Yes condition of i > NumStudents condition box, add assignment box and update the data as follows:

At Enter an assignment, type ClsAvg at Set Input box and

At To Input box as TotalAvg / NumStudents.

Updated main window is,

Add Output Assignment symbol after the ClsAvg assignment box and double click on it.

At Enter Output Here, type "Class average is: " + ClsAvg

Updated main window is,

Execution of Raptor:

1. Save and Run the raptor program.

2. After giving first input. In this the user is asked to enter the number of students in the class.

After giving second input. The user is asked to enter the marks in first subject for first student.

4. Similarly, enter the marks for the subject 2 and 3 for student 1.

5. Now, it loops back and prompts for second student marks.

6.Similarly, enter the marks for the subject 2 and 3 for student 2.

7. Now, it loops back and prompts for third student marks.

8. Similarly, enter the marks for the subject 2 and 3 for student 1.

9. The final output is generated after entering and displaying the three student average scores, the final class average score is displayed as shown below:

Thank you. please like.


Related Solutions

Main task is solving problem, in this code there is problem. and you should explain? #include...
Main task is solving problem, in this code there is problem. and you should explain? #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]){ int fd1, fd2; char buffer[100]; long int n1; if(((fd1 = open(argv[1], O_RDONLY)) == -1) || ((fd2 = open(argv[2], O_CREAT|O_WRONLY|O_TRUNC,0700)) == -1)){ perror("file problem "); exit(1); } while((n1=read(fd1, buffer, 512) > 0)) if(write(fd2, buffer, n1) != n1){ perror("writing problem "); exit(3); } // Case of an error exit from the loop if(n1 ==...
Discuss the risk-free rate. In your discussion include you should include a definition, how it is...
Discuss the risk-free rate. In your discussion include you should include a definition, how it is calculated and how and when it is used in finance.                                 Compare and contrast ordinary and preference shares and discuss how their return and value can be calculated.              
Discussion: The Application of Data to Problem-Solving In the modern era, there are few professions that...
Discussion: The Application of Data to Problem-Solving In the modern era, there are few professions that do not to some extent rely on data. Stockbrokers rely on market data to advise clients on financial matters. Meteorologists rely on weather data to forecast weather conditions, while realtors rely on data to advise on the purchase and sale of property. In these and other cases, data not only helps solve problems, but adds to the practitioner’s and the discipline’s body of knowledge....
discuss Section 351 of the Internal Revenue Code.   Your    discussion should include the purpose of the...
discuss Section 351 of the Internal Revenue Code.   Your    discussion should include the purpose of the section, the effect of the receipt of "boot", basis, and collateral problems of incorporating a going business.
Please discuss these topics. Your discussion should include, among others, the importance of credits in the...
Please discuss these topics. Your discussion should include, among others, the importance of credits in the capital market, the significance of crediting ratings for your long-term viability. demand and supply of the credit, chance of default, financial ratios covering solvency and liquidity, the importance of credit ratings and bankruptcy prediction model (Altman's Z score) 150 words talking about these topics, please do not write the definitions of each item i need a discussion.
You will be asked to compose an essay about immunization vaccination. Your discussion should include the...
You will be asked to compose an essay about immunization vaccination. Your discussion should include the specific mechanisms, cells involved and stimulus for antibody production. The category of immune response should be identified. The rationale and significance of booster shots should be included
construct A*star algorithm for solving the 8-puzzle problem . Use MATLAB or Python .Your code should...
construct A*star algorithm for solving the 8-puzzle problem . Use MATLAB or Python .Your code should include two heuristic functions -misplaced tiles and calculation of manhattan distance. The code should work for all cases of puzzle.
“What should a firm do, maximize profit or maximize stakeholder value?” Your discussion, should include: -Well-structured...
“What should a firm do, maximize profit or maximize stakeholder value?” Your discussion, should include: -Well-structured arguments -Pertinent data -Case studies
Assignment problem. Give a small example of an assignment problem statement. Outline an algorithm for solving...
Assignment problem. Give a small example of an assignment problem statement. Outline an algorithm for solving the assignment problem. Is your algorithm polynomial? Explain.
To each part of the homework problems, make a complete problem statement and then show your...
To each part of the homework problems, make a complete problem statement and then show your work for each solution with detailed steps, otherwise, your solution will receive a grade zero, even if it is correct.    Suppose you are told that independent random variables X and Y each have a uniform density on {1,2,…,N}. List explicitly, in terms of N, the elements (x,y) of (X,Y) and then, write down the joint density function density Pr (X=x, Y=y) List the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT