quiz2-cs-104b - Quiz 1 1 Semester SY 2016-2017 CS 104B st...

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

Quiz 1 1 st Semester SY 2016-2017 CS 104B Directions: Create the given interface using Visual Basic 2010. Write the code on your test booklet. A supermarket sells bags of mixed candies. Four types of candies are for sale. Candy A cost P 42.25/kg; Candy B P 36.75/kg; Candy C P48.00/kg and Candy D P29.50/kg. Calculate and print the amount of a bag of candies in terms of the weights of each type of candy, as provided by the user. Assume buyer will buy mixed candies. Form 1 The form will have the following specifications: Object Propert y Value Event Behavior 1 Form Text Sweet Tooth Candy Store 2 Label1 Text Candy A 3 Textbox1 Name txtCA 4 Label2 Text Candy B 5 TextBox2 Name TxtCB 6 Label3 Text Candy C 7 TextBox3 Name txtCC 8 Label4 Text Candy D 9 TextBox4 Name txtCD 10 Command Button1 Text Buy Candies Click Form 2 will be displayed with displayed values for each amount of candy and the total amount of candy purchased Name cmdBuy 11 Command Button2 Text Clear Click All textboxes and label will be blanked. The insertion Name cmdClr
Image of page 1

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

Object
Image of page 2
Image of page 3

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

Image of page 4
This is the end of the preview. Sign up to access the rest of the document.
  • Summer '06
  • Jdusndnksm
  • Candy D, Candy B

{[ 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