Question

psuedocode and raptor flow chart- i need the basic psuedocode and raptor flow chart with reverse...

psuedocode and raptor flow chart- i need the basic psuedocode and raptor flow chart with reverse loop logic. For this program, you will calculate a student's average for a semester. The student has earned 6 test grades during the semester, and their average is calculated after removing the lowest grade from the scores. Write a program that asks the user to enter the six grades and stores them in an array. Then, search the array for the lowest value and remove that value from the total. Calculate the student's average for the best 5 grades. HINT: To find the average, the simplest approach is to find the sum of all 6 test scores and then subtract the lowest score from that total...this will give you the sum of the 5 highest test scores. When you are finding the average, don't forget to use SIZE -1 for the divisor.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

float average()
{
float sum = 0, min, num, average;
printf("Enter 6 grades\n");
for (int i = 0; i < 6; i++) {
scanf("%f", &num);
if (i == 0) {
min = num;
}
if (min > num) {
min = num;
}
sum += num;
}
sum = sum - min;
average = sum / 5;
return average;
}

Add a comment
Know the answer?
Add Answer to:
psuedocode and raptor flow chart- i need the basic psuedocode and raptor flow chart with reverse...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Dr. Maine gives a set of exams during the semester in her chemistry class. At the...

    Dr. Maine gives a set of exams during the semester in her chemistry class. At the end of the semester, she drops each of student’s lowest test score before averaging the scores. She has asked you to write a program that will read a student’s test scores as input and calculate the average with the lowest dropped. She also wants you to create another program that accepts the adjusted Average and returns the course grade. The following pseudocode shows the...

  • Need help completing these three programs using Raptor. Any help is appreciated. What to Submit: Complete...

    Need help completing these three programs using Raptor. Any help is appreciated. What to Submit: Complete the following three programs in Raptor and submit the three .rap files Program 1 Budget Analysis (50 points): Design a program that asks user enter the amount he/she has budgeted for a month. And then use a loop to prompt the user enter each of his/her expenses for the month, and keep a running total. When the loop ends, the program should display budgeted...

  • In Java Programming: Create a flow chart for a program that prompts for an integer N...

    In Java Programming: Create a flow chart for a program that prompts for an integer N (number of students) and M (number of test scores for each students), and allows the user to N*M real numbers. The program then calculates the average for each student and class average. (1) Prompt the user to input N students and M test scores, then display the inputs. Enter number of students: You entered: 2 Enter number of test scores: You entered: 3 Enter...

  • need the raptor flowchart with extra credit part made with procedures/ parameters. will give thumbs up...

    need the raptor flowchart with extra credit part made with procedures/ parameters. will give thumbs up Quiz Statistics For this assignment, you will write a program that requests the quiz scores for 6 students Identified by ID numbers. The program computes the average score and determines the ID number of the student with the highest score. Not an input, should be in The ID numbers for the students in this class are: 1234 2333 4432 3323 2143 3425 (program This...

  • PLEASE USE BASIC C++ CODE PLEASE USE BASIC C++ CODE PLEASE HAVE DONE AS SOON AS...

    PLEASE USE BASIC C++ CODE PLEASE USE BASIC C++ CODE PLEASE HAVE DONE AS SOON AS POSSIBLE THANK YOU I REALLY APPRECIATE IT FILE TEXT: Mary 80 90 75 90 85 Joe 80 65 80 80 80 Same program as Quiz #4, but this time it must be done with arrays: Write a program that calculates the average of 5 test scores for each student on the file. Function 1--write a function to read the student's name 5 test scores...

  • MATLAN Quiz 2 Create a MATLAB function that calculates the average of values in a vector that als...

    MATLAN Quiz 2 Create a MATLAB function that calculates the average of values in a vector that also drops the slowest values. Call this function average_drop(). The function must have a single input (the vector) and a single output (the average without the lowest score). 1. 2. Create a MATLAB program that asks the user to input grades for a student and calculates the final grade and letter grade. The user must enter 5 quiz grades (worth 50% of the...

  • Write the definition of the class Tests such that an object of this class can store...

    Write the definition of the class Tests such that an object of this class can store a student's first name, last name, five test scores, average test score, and grade. (Use an array to store the test scores.) Add constructors and methods to manipulate data stored in an object. Among other things, your class must contain methods to calculate test averages, return test averages, calculate grades, return grades, and modify individual test scores. The method toString must return test data...

  • this is a java course class. Please, I need full an accurate answer. Labeled steps of...

    this is a java course class. Please, I need full an accurate answer. Labeled steps of the solution that comply in addition to the question's parts {A and B}, also comply with: (Create another file to test the class and output to the screen, not an output file) please, DO NOT COPY others' solutions. I need a real worked answer that works when I try it on my computer. Thanks in advance. Write the definition of the class Tests such...

  • A set of data (test scores), can be summarized by a frequency distribution chart. For example,...

    A set of data (test scores), can be summarized by a frequency distribution chart. For example, if the list of test scores is: 90 85 100 50 50 85 60 70 55 55 80 95 70 60 95 80 100 75 70 95 90 90 70 95 50 65 85 95 100 65 then the frequency distribution chart looks like the one below: value           frequency ------           ------------ 100                3           95          ...

  • Write a C++ program that asks user number of students in a class and their names....

    Write a C++ program that asks user number of students in a class and their names. Number of students are limited to 100 maximum. Then, it will ask for 3 test scores of each student. The program will calculate the average of test scores for each student and display with their names. Then, it will sort the averages in descending order and display the sorted list with students’ names and ranking. Follow the Steps Below Save the project as A4_StudentRanking_yourname....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT