Computers and Technology , 22.06.2019 06:00 willowcollins3753

Write a program that uses a widgetviewer object to do the following: generate two random integers between 1 and 9 (inclusive). name one of them x, the other y. display them to the user using jlabel objects. create a jlabel object displaying the text "enter an operation number." create a jtextfield for the user's input. create a jbutton displaying the text "press here when you've entered your operation." use addandwait to add it to the widgetviewer object. when the user clicks the jbutton, evaluate operation in the following order to determine the one and only mathematical operation to perform on x and y. use a jlabel to display the result. if operation is between 1 and 10 inclusive, add x and y. if operation is evenly divisible by 4, subtract y from x. if operation is evenly divisible by 5, use integer division to divide y into x. if operation is an even number, use floating point division to divide y into x. if none of the other tests on operation apply, multiply x and y. note: operation can be negative or zero.

ansver
Answers: 2
Show answers

Another question on Computers and Technology

Computers and Technology, 21.06.2019 22:20
What is a non-deterministic finite state machine? explain the relationship between non-deterministic finite state machines and deterministic finite state machines
Answers: 3
Answer
Computers and Technology, 21.06.2019 23:30
Write a function called isbalancedthat takes a string of braces as input and returns trueif the braces in the string are balanced. if there are more ‘{’than ‘}’or more ‘}’than ‘{’in the string, the function should return false. you should make use of the built-in java implementation of the stack data structureunder java.util.stack
Answers: 1
Answer
Computers and Technology, 22.06.2019 03:30
Write a computer program to calculate the three-phase fault current for a fault at f in figure 1.16, with the network normal, and with one line at a time removedproblems 1.1 write a computer program to calculate the three-phase fault current for a fault at f in figure 1.16, with the network normal, and with one line at a time removed 20 power system relaying from service. the positive-sequence impedance data are given in the accompanying table. use the commonly made assumption that all prefault resistance values are (1.0+j0.0) pu, and neglect all resistance values. calculate the contribution to the fault flowing through the cb b and the voltage at that bus. for each calculated case, consider the two possibilities: cb b2 closed or open. the latter is known as the stub-end fault í• figure 1.16 problem 1.1 system data for figure 1.16 from to positive sequence 0.0+j0.1 0.05j0.15 0.04 j0.2 0.01 jo.i 0.015 + j0.15 0.01 j0.19 0.01 +j0.19 0.03+j0.1 0.0+j0.08 6 6 6 from service. the positive-sequence impedance data are given in the accompanying table. use the commonly made assumption that all prefault resistance values are (1.0 + j 0.0) pu, and neglect all resistance values. calculate the contribution to the fault flowing through the cb b1, and the voltage at that bus. for each calculated case, consider the two possibilities: cb b2 closed or open. the latter is known as the “stub-end” fault.
Answers: 2
Answer
Computers and Technology, 22.06.2019 10:30
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
Answer
You know the right answer?
Write a program that uses a widgetviewer object to do the following: generate two random integers b...
Questions
question
English, 19.07.2019 11:50
In 50 to 100 words, list two ways through which an author can show how a theme develops....
question
Mathematics, 19.07.2019 11:50
What is the formula for finding the average rate of change for any function?...
Computers and Technology, 19.07.2019 11:50
By default what is the instruction that starts the animation segment...
question
Mathematics, 19.07.2019 11:50
Nathan is playing golf at a golf course. the height of the golf ball from the ground, in feet, x seconds after the ball is hit is given by the express...
question
Mathematics, 19.07.2019 11:50
Which statements represents the relationship between y=4^x and y=log4x? 1. the graphs of functions are symmetric to each other over the line y=x 2. t...
question
Physics, 19.07.2019 11:50
The resistance of a conductor depends on all of the following, except...
question
English, 19.07.2019 11:50
A(n) connects thoughts, ideas, and objects....
question
Mathematics, 19.07.2019 11:50
Andrew needed 14 gallons of paint to cover a 430 square foot structure. now he will be painting a 700 square foot structure. how many gallons of paint...
question
Biology, 19.07.2019 11:50
An ulcer found in the lower esophagus, stomach, or duodenum is called what?...
question
Physics, 19.07.2019 11:50
Describe how a battery works. (4 points)...
question
English, 19.07.2019 11:50
Based on your knowledge of words such as century, centimeter, and centigrade, you can tell that the latin root cent- means a. "to measure." b. "to kee...
question
English, 19.07.2019 11:50
How does the author of ms kemp recruits voulenteers to reveal character...
question
English, 19.07.2019 11:50
Which of the following sentences is correct? a. that author is the one who i saw at the bookstore today. b. against who did you think you would com...
question
Mathematics, 19.07.2019 11:50
Which pair of numbers is relatively prime? a.88 and 121 b.92 and 274 c.145 and 1300 d.187 and 290...
Computers and Technology, 19.07.2019 11:50
Ron travels extensively. he posts articles, photos, and videos about his experiences on a website. which type of electronic community is he is using?...
question
Biology, 19.07.2019 11:50
What unzip the dna ladder made of the doube helix?...
question
History, 19.07.2019 11:50
Who, or what, is responsible for leading the executive departments and advising the president?...
question
English, 19.07.2019 11:50
In these frames, the author emphasize the challenges iqbal faced by showing...
question
Business, 19.07.2019 11:50
Which of the following statements about excavations accidents is true? a. both statements are true about excavation accidents b. nearly all acciden...
question
English, 19.07.2019 11:50
How is literary nonfiction unique from other types of nonfiction? it includes more information in a shorter amount of space. it uses elements and dev...
Questions on the website: 13984067