Ask a New Question

Asked by Jhon

1. Create a program which will allow the user enter ten numbers. The program is to count how many numbers were above 50. Hint: You will need to incorporate a Selection (If…then) statement.
9 years ago

Answers

Answered by jolly rancher
i = 0
DO 10 times
i = i + 1
<<Prompt for number>>
<<Read and store number entered as number_i>>
end DO

i = 0; j = 0
DO 10 times
i = i + 1
IF number_i > 50 THEN j = j + 1
end DO

Display["Count of numbers exceeding 50 is: ", j]

9 years ago

Related Questions

How do i Create a program that devtermine the shipping cost for an order based on the following char... How do i Create a program that determine the shipping cost for an order based on the following tabl... Create a program that uses two parallel one-dimensional arrays. The program displays a shipping char... create a program that will do the following: 1. ask the user to enter the names of 5 products 2. t... Create a C program that contains a function that computes the final price for a sales transaction an... Create a program that allows a user to select one of the following four menu options: a. En... Create a program that uses the preceding formula and displays the result, but this time, prompt the... I need to create a program that will solve any Caesar Cipher. The goal is to be given an encoded me...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use