Franco_Yesica_M06HW.docx - Yesica Franco SDEV 120 1/Summary Input Sales CommissionRate Calculate CommissionEarned Output CommissionEarned Declare

Franco_Yesica_M06HW.docx - Yesica Franco SDEV 120 1/Summary...

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

Yesica Franco SDEV 120 1. /Summary/ Input Sales: CommissionRate Calculate: CommissionEarned Output: CommissionEarned Declare SalesAmount as float Declare CommissionRate as float Declare CommissionEarned as float Prompt “Input the amount of sales for the month” Input SalesAmount Prompt “Input the commission rate” Input CommissionRate Set CommissionEarned = SalesAmount * (CommissionRate/100) Prompt “The commission earned for this month is “ + CommissionEarned
Image of page 1
/Input Data Module/ Prompt for SalesAmount, CommissionRate Input SalesAmount, CommissionRate /Perform Calculations Module/ Set CommissionRate = CommissionRate/100 Set CommissionEarned = SalesAmount * (CommissionRate/100) /Output Results/ Prompt SalesAmount Prompt CommissionRate Prompt CommissionEarned 2. Declare ItemName as String
Image of page 2
Image of page 3
Image of page 4

You've reached the end of your free preview.

Want to read all 4 pages?

Unformatted text preview: Declare Pounds as Float Declare Ounces as Float Declare PoundPrice as Float Declare TotalPrice as Float Declare UnitPrice as Float Prompt “what is the unit name” Input ItemName Prompt “price of the unit” Input the PoundPrice Prompt “pounds of unit” Input UnitePrice Prompt “what is the unit weight in pounds” Input Pounds Prompt “what is the unit weight in ounces” Input Ounces Set UnitPrice = PoundPrice/16 Set TotalPrice = PoundPrice * (Pound + Ounces/16) /Input Data Module/ Input UnitPrice Input ItemName Input PoundPrice Input Ounces Input pounds /Calculations Module/ Set UnitPrice =PoundPrice/16 Set TotalPrice=PoundPrice * (Pounds + Ounces/16) /Output Module/ Prompt UnitPrice Prompt TotalPrice...
View Full Document

  • Spring '15

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes