do the same assignment by using different codes. make 3 different versions.
all the information attached in the file.
CS 165 02
Program Assignment 02
Chapter 03
20 Points
Name _____________________________________
Due:
Wednesday, October 4, 2017 at the beginning of class
Create an application with a form that resembles Figure 3-48 on page 197. The PictureBox controls
display the images of four fruits (a banana, an apple, an orange and a pear) and each fruit’s calories.
You can find these images in the I:\kopp\outbox\CS 165 02\Program Assignments\Chapter 03 folder.
When the application starts, the total calories displayed should be zero. Each time the user clicks one of
the PictureBoxes, the calories for that fruit should be added to the total calories, and the total calories
should be displayed. When the user clicks the Reset button, the total calories should be reset to zero.
Add the following comments to the beginning of the program.
Name:
Your Name
Class and Section:
CS 165 02
Assignment:
Program Assignment 02
Due Date:
See above
Date Turned in:
Program Description: You write a short description of what the program will do
When you complete the program, do the following.
1. Turn in a printout of the source code with this sheet attached to the front
2. Create a folder with the following name: Program 02
3. Copy your project to this folder
4. Copy the folder to the following location: I:\kopp\inbox\CS 165 02\your name where your
name is a folder located in I:\kopp\inbox\CS 165 02.
c
80 Calories
115 Calories
Programr
building and then displays the minimum amount of insurance he
buy for the property.
9. Cookie Calories
A bag of cookies holds 40 cookies. The calorie information on the ba
there are 10 servings in the bag and that a serving equals 300 calori
application that lets the user enter the number of cookies he or she ac
then reports the number of total calories consumed.
10. Calorie Counter
Create an application with a form that resembles Figure 3-48. The Pi
trols display the images of four fruits (a banana, an apple, an orang
and each fruit’s calories. You can find these images in the Chap03
Student Sample Programs.
When the application starts, the total calories displayed should be ze
the user clicks one of the PictureBoxes, the calories for that fruit shou
the total calories, and the total calories should be displayed. When
the Reset button, the total calories should be reset to zero.
Figure 3-48 Calorie Counter form
Calorie Counter
–
X
Total Calories
0
MM
115 Calories
80 Calories
Reset
Edit
90 Calories
120 Calories
90 Calories