Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / 1)Write lgorithm/pseudocode for a program that reads a student record, consisting of the student's first and last name, followed by a sequence of test scores and a sentinel of -1

1)Write lgorithm/pseudocode for a program that reads a student record, consisting of the student's first and last name, followed by a sequence of test scores and a sentinel of -1

Computer Science

1)Write lgorithm/pseudocode for a program that reads a student record, consisting of the student's first and last name, followed by a sequence of test scores and a sentinel of -1. The program should print the student's average score.  Below is a sample input and output: 4 pts
Harry Morgan
94
71
86
95
-1
                The average score is 86.5
2)Write programs that read a line of input as a string. Then, print:
A)   Only the uppercase letters in the string
B)   Every second letter of the string
C)   The string, with all vowels replace by an underscore


a)   Your code with comments
b)   A screenshot of the execution
Test Case:
           Python
A)  P
B)  yhn
C)  Pyth_n


3)Translate the following pseudocode into a Python program for finding the minimum value and prints it from a set of inputs. Keep asking user for a number until they enter a sentinel value, storing the number if it's lower than the number already stored. When a sentinel value is entered, the program stops.
Input value
Set a Boolean variable "first" to true
While input value not equal to sentinel value
     If first is true
                 Set the minimum to the value.
                 Set first to false.
     Else if the value is less than the minimum
                 Set the minimum to the value
     Input value
Print the minimum


a)   Your code with comments
b)   A screenshot of the execution
Test Cases:
                                   15, 12, 4, 2, 22, -1 (should print "the smallest number is 2")

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE