Question

In: Computer Science

A student had just collected three quiz results from his lecturer. Find and display the highest...

A student had just collected three quiz results from his lecturer. Find and display the highest quiz score.

Indicate the algorithm (variable declaration / input / process / output) then draw the flowchart.

Solutions

Expert Solution

Algorithm which will find the maximum quiz score among the three quiz scores.

Algorithm :-

Step 1: START

Step 2: [ Declare variables ]

             Declare three integers for quiz1, quiz2, quiz3, max  



Step 3: Define values of quiz1, quiz2, quiz3

Step 4: [ Check conditiones for three numbers]

            if quiz1 > quiz2 

                   true then, check quiz1 with quiz3

                    if quiz1 > quiz3 then

                          true then, store max = quiz1

                   otherwise

                          store max = quiz3

           otherwise

                   if quiz2 > quiz3 then

                         true then, store max = quiz2

                   otherwise

                         store max = quiz3 

Step 5: Display max value

Step 6: STOP

Flowchart:-

I hope you will understand the above flowchart and algorithm.

Do you feel neddful and useful then please upvote me.

Thank you.


Related Solutions

Suppose that a lecturer gives a 10-point quiz to a class of five students. The results...
Suppose that a lecturer gives a 10-point quiz to a class of five students. The results of the quiz are 3, 1, 5, 9, and 7. For simplicity, assume that the five students are the population. Assume that all samples of size 2 are taken with replacement and the mean of each sample is found. Questions: Calculate the population mean and standard deviation Suppose that you obtain at least 20 random samples of size 2. From data obtained by you,...
The results below are based on data collected as part of a student project for an...
The results below are based on data collected as part of a student project for an introductory statistics class at UF. If there is more than one group/treatment, the first group mentioned is group 1. Data was collected to determine if the price of food items at Graham Oasis (a convenience store inside UF campus) is higher, on average, than at a Publix Supermarket located 2 miles away. The p-value was 0.000, and the confidence interval was ( 0.85, 1.62)....
Refer to the accompanying data display that results from a sample of airport data speeds in...
Refer to the accompanying data display that results from a sample of airport data speeds in mbps.complete parts (a) through (c) below . T INTERVAL (13.046,22.15) _ x=17.598 sx=16.01712719 n=50 a.express the confidence interval in the format that uses the "less than" symbol. Given that the original listed data use one decimal place, round the confidence interval limits accordingly. mbps <u <Mbps
Refwr to the accompanying data display that results from a sample of aurport data spoeds in...
Refwr to the accompanying data display that results from a sample of aurport data spoeds in Mbps. TInterval (13.046,22.15) x(bar)=17.598 Sx=16.01712719 n=50 A) What is the number of degrees of freedom that should be used for finding the critical value t (sub alpha/2)? df= B) Find the critical value t (sub alpha/2) corresponding to a 95% confidence level? t(sub alpha/2)=
Use the find command to find all directories under /pub/cs/ whose name is cs160a. Be sure to only display the results that match, do not display any error output.
Unix/Linux1)Use the find command to find all directories under /pub/cs/ whose name is cs160a. Be sure to only display the results that match, do not display any error output.Hint: use: 2>/dev/null.2)Create a one-line command, using he famous.dat file, to add the word " STREET" to the address, for all who live on 2nd or 3rd.For example: '2nd' becomes "2nd STREET" and '3rd' becomes "3rd STREET".Display only the first 9 lines.Hint: use 2 sed statements with pipes.3)Display all lines in famous.dat...
The display provided from technology available below results from using data for a smartphone​ carrier's data...
The display provided from technology available below results from using data for a smartphone​ carrier's data speeds at airports to test the claim that they are from a population having a mean less than 5.00 Mbps. Conduct the hypothesis test using these results. Use a 0.05 significance level. Identify the null and alternative​ hypotheses, test​ statistic,P-value, and state the final conclusion that addresses the original claim.
A graduate student just finished running a western blot and was shocked to see that his...
A graduate student just finished running a western blot and was shocked to see that his protein of interest was not present in any of his samples. Prior to running the western blot, he saw a band at the right molecular weight using SDS-PAGE analysis. Using your understanding of western blotting and SDS-PAGE analysis, explain these seemingly conflicting results.
Programming Java Homework: Find the Highest Score (Just need the code and directions followed exactly and...
Programming Java Homework: Find the Highest Score (Just need the code and directions followed exactly and written in Java code) Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the name and score of the student with the highest score. Use the next () method in the Scanner class to read a name, rather than using the nextLine () method.
The following are three observations collected from treatment 1, five observations collected from treatment 2, and...
The following are three observations collected from treatment 1, five observations collected from treatment 2, and four observations collected from treatment 3. Test the hypothesis that the treatment means are equal at the 0.05 significance level. Treatment 1 Treatment 2 Treatment 3 8 3 3 11 2 4 10 1 5 3 4 2 (a-1). State the null hypothesis and the alternate hypothesis. Null hypothesis H0: μ1 = μ2 H0: μ1 = μ2 = μ3 (a-2). Alternate hypothesis. H1: Treatment...
6.251 Exercise 6.250 describes pulse rates collected from 10 students, once during a quiz and once...
6.251 Exercise 6.250 describes pulse rates collected from 10 students, once during a quiz and once during a lecture. the data are given in table 6.23 and stored in quiz pulse 10. we might expect mean pulse rates to increase under the stress of a quiz. use the information in exercise 6.250 and the data in table 6.23 to test whether the data provide sufficient evidence to support this claim. conduct a March paired test and explain why a matched...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT