Placeholder

CSIS 212 Programming Assignment 4 Multiples Circle Area Computer-Assisted Instruction

$19.00

Description

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.
SCREENSHOTS
SOLUTION
PAYMENT
CSIS212 Assignment 4 Report
CSIS212 Assignment 4 Screenshot
CSIS212 Assignment 4 Screenshot
CSIS212 Assignment 4 Screenshot
The solution consists of:
A report word document for this assignment
All Java programs in case you want to run theses programs on your computer.
Screenshots while running programs
Attachments [Move over files to preview content of those files]
CSIS212_Assignment_4.zip (423.46 KB)
CSIS212-Assignment-4-Report-Screenshot.png
CSIS212-Assignment-4-Screenshot-1.png
CSIS212-Assignment-4-Screenshot-2.png
CSIS212-Assignment-4-Screenshot-3.png
CSIS_212_Assignment_4_Report.docx
Source Code
Exercise516.java
Exercise520.java
Exercise535.java
Preview Exercise516.java
xxxxxx xxxx.xxxx.xxxxxxx;
xxxxxx xxxxx xxxxxxxx516 {
public static void main(String[] args) { Scanner input = new Scanner(System.in); while (true) { System.out.println(“Enter two numbers: “);
int number1 = input.nextInt(); int number2 = input.nextInt();
xx (xxxxxx1 % xxxxxx2 == 0) {
xxxxxx.xxx.xxxxxxx(xxxxxx1 + ” xx x xxxxxxxx xx ” + xxxxxx2);
} xxxx xx (xxxxxx2 % xxxxxx1 == 0) {
xxxxxx.xxx.xxxxxxx(xxxxxx2 + ” xx x xxxxxxxx xx ” + xxxxxx1);
} xxxx {
Preview Exercise520.java
xxxxxx xxxx.xxxx.xxxxxxx;
xxxxxx xxxxx xxxxxxxx520 {
private double radius;
public double getRadius() { return radius; }
public void setRadius(double r) {
xxxxxx = x;
}
xxxxxx xxxxxx xxxxxxxxxx() {
xxxxxx xxxx.xx * xxxxxx * xxxxxx;
}
Preview Exercise535.java
xxxxxx xxxx.xxxx.xxxxxx;
xxxxxx xxxx.xxxx.xxxxxxx;
xxxxxx xxxxx xxxxxxxx535 {
public static void main(String[] args) { Scanner input = new Scanner(System.in); Random rand = new Random(); while (true) { int randomNumber1 = rand.nextInt(9) + 1; int randomNumber2 = rand.nextInt(9) + 1;
xxxxxx.xxx.xxxxxxx(“xxx xxxx xx ” + xxxxxxxxxxxx1 + ” xxxxx ” + xxxxxxxxxxxx2 + “?”);
xxx xxxxxx3 = xxxxx.xxxxxxx();
xx (xxxxxx3 == xxxxxxxxxxxx1 * xxxxxxxxxxxx2) {
xxxxxx.xxx.xxxxxxx(“xxxx xxxx!”);
} xxxx {
xxxxxx.xxx.xxxxxxx(“xx, xxxxxx xxx xxxxx”);
Price: $19
You May Also Like:
CSIS 212 Programming Assignment 1 Create Five Programs
CSIS 212 Programming Assignment 2 Salary Calculator
CSIS 212 Programming Assignment 3 Bar Chart Printing Program
CSIS 212 Programming Assignment 5 Variable-Length Argument List Dice Rolling
CSIS 212 Programming Assignment 6 Date Class
CSIS 212 Programming Assignment 7 Rectangle Class
CSIS 212 Programming Assignment 8 Payroll Modification

Reviews

There are no reviews yet.

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