Problem 1: Assignment #2
Problem 1: Assignment #2
Problem 1
Design an algorithm that will read two numbers and an integer code from the screen. The value of integer
code should be 1,2,3, or 4. Display an error message if the integer code not equal to 1,2,3, or 4.
Problem 2
Design an algorithm that will read a series of integers at the terminal. The first integer indicates how many
more integers will follow. Your algorithm is to calculate the sum and average of the integers, exclusing the
first integer, and display these values to the screen.
Problem 3
Design an algorithm that will read the inventory file and validate record code and part number in each
record and print the details of valid inventory records.
SUBMISSION GUIDELINES: