
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > |
Second ProgramLearning Objective(s)
Overview of the ProgramThis lab has three separate programs. The can be found in chapter four of Let us Java -> Question c, parts a, d, and g. Be sure to include proper comments in each program.Specifics
Program oneIf cost price and selling price of an item is input through the keyboard, write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he/she incurred.You should identify and use at least three different sets of data to properly test your program. Program twoIf the ages of Ram, Shyam and Ajay are input through the keyboard, write a program to determine the youngest of the three. There could be at least 13 different types of data sets for testing but you only need to worry about six.Program threeIf the three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is isosceles, equilateral, scalene or right angled triangle.Submission
Optional improvementsOptional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor.
| |||||||