between them and the average speed of the airplane. 2. Using only sequential operations, write an algorithm in pseudocode that inputs four numbers corresponding to scores received on three semester tests and a final examination. Your algorithm should compute and display the weighted average of all four tests, weighting the final exam three times as heavily as a regular test. 3. Write an if/then/else construct to do each of the following operations. Include user prompts to collect the input variable values. a. Compute and display the value x ÷ y if the value of y is not 0. If y does have the value 0, then display the message 'Unable to perform the division.' b. Compute the volume and circumference of a cylinder given the length L and radius r if the radius is greater than or equal to 1.0; otherwise, your algorithm should compute only the circumference. 4. Write an algorithm that uses a loop (1) to read in 20 pairs of numbers, where each pair represents the score of a basketball game with the Computer State University (CSU) score listed first, and (2) for each pair of numbers, determine whether CSU won or lost. After reading in these 20 pairs of values, print out the won/lost record, total points scored, and total points allowed for CSU. In addition, if their record is a perfect 20-0, then print out the message 'Congratulations on your undefeated season.' Assignment files: None Submissions: You can only submit your assignment once. No re-submission is permitted. Notification: The instructor will not be notified via email when you submit this assignment.
- Fall '09
- Pseudocode Assignment Information, CIS121 HOMEWORK ASSIGNMENT