{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Javascript 3 Flowchart

Javascript 3 Flowchart - Keith Spano Computer Applications...

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

View Full Document Right Arrow Icon
Keith Spano Computer Applications For Business JavaScript Assignment 3 - ALGORITHM AND FLOWCHART 1. START 2. INPUT: What is your name? – stored in var Name 3. INPUT: what product/service customer wants – stored in var Product 4. INPUT: how much of the product/service they want – stored in var Quantity DECISION: confirm: [Name] you ordered [Quantity] of [Product]. Is this correct? If No: OUTPUT: tell customer “Refresh the page to reload and place a new order.” If yes, then continue to step 5. 5. DECISION: Did the customer enter a valid product? If no: OUTPUT: tell customer “Sorry, [Name]. You entered an invalid product. Refresh the page to reload and place the order again.” If yes, continue to step 6 6. DECISION: does the customer want to order another product? If yes: loop back up the step where you ask the user to input a product name and quantity If no: continue to step 7 7. PROCESS: Calculate the final cost of the order with the corresponding discount .
Image of page 1

Info icon This 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