COMP 1000 Lecture Notes - Lecture 4: Winzip
Document Summary
Assignment 4: write a program that continually displays to the user the following options, to calculate average, to calculate summation, to stop execution. Then your program must read the option and ask the user to enter two numbers from the keyboard each on a separate line and for which he performs the required operation according to the selected option. For example, if the user selected the first option then the program asks the user to enter two numbers. If the user entered 4 and 10, the program will calculate the average of the number between 4 and 10 inclusive. Note: both options 1 and 2 must be implemented using methods: write a program that implements 2 methods called createcolor that meet the below description and a main method that will invoke them [25 points] First createcolor method does not accept any parameter. It simply generates 3 random integers from 0 to 255 mapping to rgb colors.