BMIS 212 Week 4 Programming Assignment

$ 15

BMIS 212 Week 4 Programming Assignment

Exercise 6.16 (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 6.20 (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 6.35 (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.

78 in stock

SKU: BMIS212WEEK4 Category:

Description

BMIS 212 Week 4 Programming Assignment

Exercise 6.16 (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 6.20 (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 6.35 (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.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.