CSIS 212 Programming Assignment 4
Just Click on Below Link To Download This Course:
http://bit.ly/2PNjL1t
CSIS 212 Programming Assignment 4
CSIS 212 Programming Assignment 4
Multiples Circle Area Computer-Assisted Instruction
Exercise
5.16 JHTP (Multiples) Write a method isMultiple
that determines, for a pair of integers, whether the second integer is a
multiple of the first. The method should take 2 integer arguments and return
true if the second is a multiple of the first and false otherwise.[Hint: Use
the remainder operator]. Incorporate this method into an application that
inputs a series of pairs of integers (1 pair at a time) and determines whether
the second value in each pair is a multiple of the first.
Exercise
5.20 JHTP (Circle Area) Write an application that
prompts the user for the radius of a circle and uses a method called circleArea
to calculate the area of the circle.
Exercise
5.35 JHTP (Computer-Assisted Instruction) The use
of computers in education is referred to as computer assisted instruction
(CAI). Write a program that will help an elementary school student learn
multiplication. Use a Random object to produce 2 positive 1-digit integers. The
program should then prompt the user with a question, such as “How much is 6
times 7?”
The student
then inputs the answer. Next, the program checks the student’s answer. If it’s
correct, display the message “Very Good!” and ask another multiple question. If
the answer is wrong, display the message “No. Please try again.” And let the
student try the same question repeatedly until the student finally gets it
right. A separate method should be used to generate each new question. This
method should be called once when the application begins execution and each
time the user answers the question correctly.


Comments
Post a Comment