Write a program that will
help an elementary school student learn multiplication. Use a
SecureRandom object to produce two positive one-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
multiplication 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 correctl
Write a program that will
help an elementary school student learn multiplication. Use a
SecureRandom object to produce two positive one-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
multiplication 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 correctl
you have been an integer array A of size N.you need to pfint the number with the value closest to zero.if there are multiple elements print the number with greater value.
Write a Java application and use a two-dimensional array that will store the five top artist sales for 2017. The application must also hold the artist sales for CDs, DVDs and BLU RAY items. Do not forget to use the marking guideline on the next page to see how the marks are allocated for this question. Your program must: Q.1.1 Create a two-dimensional array to contain the three sale items for five different artists. A single array must be used to store the artist names. ARTIST NAME CD SALES DVD SALES BLU RAY SALES Ed Sheeran 900 000 800 000 500 000 Pink 700 000 500 000 500 000 Bruno Mars 800 000 100 000 50 000 Foo Fighters 100 000 200 000 200 000 Taylor Swift 300 000 100 000 50 000 Q.1.2 Allow a user to enter in a number, ranging from 1 to 5, which will represent the artist position with regards to the album sales. Q.1.3 Printout the artist name including the CD, DVD, BLU RAY sales amounts and total sales
Develop a Java GUI application that will produce an Area lookup application that will allow a user to view a phone or postal code for a Town in a particular Country. Do not forget to use the marking guideline at the end of this question to see how the marks are allocated. Q.2.1 On the form create two combo boxes, one for the country selection and another to select a town. Also, add two radio buttons for the user to select to display either a phone or postal code. Q.2.2 You are also required to create a “submit” and “exit” button. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout, but the following layout is displayed for your convenience.
Write a CGPA class that has a constructor for initializing four variables: name, matric number, level, and course of study, The program should have two other overloaded methods, one for collecting the credit unit of each course and the other for collecting points based on the grades of each student in each of the courses. Write a third method for calculating the CGPA of a number of students and return the names, matric numbers, levels, course of study, and their current CGPA, well-arranged (using format specifier if necessary). Execute the program using 5 records. Turn in the codes and a snapshot of the result on google classroom.
Write a Java application and use a Two dimensional array to store five Dutch, French and Italian translated words. Use a single array to store the English words.
Sample Output
My Stack Operations
1. Size of stack after push operations: 5
2. Top of the Stack: 12
3. Pop elements from stack : 12 36 4 23 10
4. Size of stack after pop operations : 0
Complete the code
package mystackusingarray;
import java.util.EmptyStackException;
public class MyStackUsingArray {
public int arr[];
public int size;
static public int top = 0;
public MyStackUsingArray(int s) {
size = s;
arr = new int[s];
}
public void push(int element) {
if (isFull()) {
System.out.print("Stack full"); }
else {
Insert statement push operation
}
}
public int pop() {
if (isEmpty()) {
System.out.print("Stack empty");
}
Insert statement pop operation
}
public boolean isEmpty() {
if (top == 0) {
return true;
}
else
return false;
}
public boolean isFull() {
if (top == size) {
return true;
}
else
return false;
}
public int peek() {
Insert statements for peek operation
}
public static void main(String[] args) {
MyStackUsingArray stack = new MyStackUsingArray(10);
statements desired output
explain to the stakeholder the concept of high-level languages and highlight any five benefits of using java as the chosen programming language for their development project. Include two other examples of high-level languages besides java
Design an application that extends JFrame and that displays a blue smiling face on the screen. Save
the file as Smile.java.