wk1.docx

# wk1.docx - Running head PROBLEM SOLVING WITH ALGORITHMS...

• 4

This preview shows page 1 - 4 out of 4 pages.

Running head: PROBLEM SOLVING WITH ALGORITHMS 1 Problem Solving with Algorithms Dawn Greene PRG\211 8/27/2018 JIMING LIU

Subscribe to view the full document.

PROBLEM SOLVING WITH ALGORITHMS 2 Problem Solving with Algorithms The Algorithm Find price of book 1 Find price of book 2 Find price of book 3 Find price of book 4 Find price of book 5 Calculate average by adding up the price from each book and dividing total by 5 Average number of wins from the five books is displayed // Prompt for the price of book 1 Display “Enter the price of book 1” Input bookPrice1 // Prompt for the price of book 2 Display “Enter the price of book 2” Input bookPrice2 // Prompt for the price of book 3 Display “Enter the price of book 3” Input bookPrice3 // Prompt for the price of book4 Display “Enter the price of book 4” Input bookPrice4 // Prompt for the price of book 5

Subscribe to view the full document.

You've reached the end of this preview.
• Fall '17
• Dawn Greene, Jiming Liu, price of book, Average number of wins

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern