Homework Programming Logic and Design Chapter 1 Part 1.docx

Homework Programming Logic and Design Chapter 1 Part 1.docx

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework Programming Logic and Design Chapter 1 Part 1 For each of the following questions, find the inputs and outputs, write the pseudocode, and desk check the pseudocode. 1. A store sells cups and plates for parties. The owners want a program that allows them to enter the price of a cup, the price of a plate, the number of cups purchased, the number of plates purchased, and the sales tax rate. The program should calculate and display the total cost of the purchase. Inputs Process Outputs Price of cup #of Cup x price of cups Total Cost of Purchase Price of plate # of Plates x price of plates Number of cups Sales Tax rate Number of plates Sales tax rate Pseudo Code: 1. Enter price of cups 2. Enter price of plates 3. Enter number of cups 4. Enter number of plates 5. Enter sales tax 6. Calculate cost of cups by multiplying number of cups by price of cups 7. Calculate cost of plates by multiplying number of plates by price of plates 8. Calculate pre-tax cost by adding cost of cups and cost of plates 9.
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern