3. Create a program that allows the user to enter the closing price of a specific stock for any number of days. Use a negative number as the sentinel value. If the sentinel value is the first price...

Give the coding and the result of the coding3. Create a program that allows the user to enter the closing price of a specific stock for any number of days. Use a negative<br>number as the sentinel value. If the sentinel value is the first price the user enters, display the

Extracted text: 3. Create a program that allows the user to enter the closing price of a specific stock for any number of days. Use a negative number as the sentinel value. If the sentinel value is the first price the user enters, display the "No stock prices entered" message on the screen. Otherwise, use a counter to keep track of the number of prices entered and an accumulator to total the prices. When the user has finished entering the prices, calculate the average price by dividing the accumulator's value by the counter's value, and then display the average price on the screen. Given the fiowchart, create the equivalent program. start ramber of turtal prices0 enter price pice number of prikes0 namber of prices add price to total dpley "No stock prices entered verage price total prices/ number of prices prices erter price dolay mer price stop

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here