Write an android phone program that has six rows of widgets

Assignment Help JAVA Programming
Reference no: EM131704523

Programming Assignment

1. Write an Android phone program such that an instance of each class: TextView, Button, EditText, CheckBox, RadioGroup with two RadioButtons, ImageView, ImageButton, and Spinner with three items will be displayed on an AVD. A sample run of your program is as follows.

2. Write an Android phone program such that one instance of EditText, one instances of Button, one instance of TextView, and another instance of EditText are displayed vertically on the AVD. The users of your program will be asked to input a positive integer in the first instance of EditText. When the users click the button instance, the product of integers from 1 to n will be displayed in the second instance of TextView and a triangular pattern consisting of s will be displayed in the second instance of the EditText. For instance, if n = 3, the product should be 6 and the pattern should be

$ $ $
$ $
$.

The beginning of the program run is as follows.

A sample run of the program is as follows.

3. Write an Android phone program such that one instance of Button with text "Fahrenheit -> Celsius", one instance of EditText with text "Input a value in Fahrenheit:", one instances of TextView with text "The corresponding value in Celsius is :", another instance of Button with text "Celsius -> Fahrenheit", another instance of EditText with text "Input a value in Celsius:", and another instances of TextView with text "The corresponding value in Fahrenheit is :" are displayed vertically on the AVD. The users of your program will be asked to input a number for a value in Fahrenheit in the first instance of EditText. When the users click the first instance of Button, the corresponding value in Celsius will be displayed on the first instance of TextView. The users of your program will be also asked to input a number for a value in Celsius in the second instance of EditText. When the users click the second instance of Button, the corresponding value in Fahrenheit will be displayed on the second instance of TextView. Notice that Celsius = 5*(Fahrenheit - 32)/9 or Fahrenheit = 9*Celsius/5 + 32.

The beginning of the program run is as follows.

A sample run of the program is as follows.

4. Write an Android phone program such that three instances of EditText with respective texts "Input the first positive integer", "Input the second positive integer", and "Input the third positive integer", one instances of Button with text "Right Triangle?", and one instance of TextView are displayed vertically on the AVD. The users of your program will be asked to input a positive integer in the first instance of EditText, a positive integer in the second instance of EditText, and a positive integer in the third instance of EditText. When the users click the button instance, the answer (either "yes" or "no") for the question that the three input integers can the lengths of three edges of a right triangle will be displayed in the instance of TextView. In addition, if the answer is "yes", the area of the right triangle should also be displayed.
The beginning of the program run is as follows.

A sample run of the program is as follows.

Another sample run of the program is as follows.

5. Write an Android phone program such that one instance of EditText with text "Input a positive integer", one instances of Button with text "Click here to get outputs", and four instances of TextView with respective texts "Decide if the input number is a prime: ", The number of digits in the input number is: ", "The sum of the digits in the input number is: ", and "The product of the digits in the input number is: "are displayed vertically on the AVD. The users of your program will input a positive integer. After the users click the button, the information for the input integer will be displayed in the corresponding four instances of TextView.

The beginning of the program run is as follows.

A sample run of the program is as follows.

Another sample run of the program is as follows.

6. Write an Android phone program that has six rows of widgets.

The first row has one instance of EditText with text "Num 1", one instance of TextView with text "/" (representing division operation), one instance of TextView with text "Num 2", one instance of TextView with text "=", and one instance of EditText with text "Quotient".

The second row has one instance of EditText with text "Num 1", one instance of TextView with text "%" (representing remainder operation), one instance of TextView with text "Num 2", one instance of TextView with text "=", and one instance of EditText with text "Remainder".

The third row has an instance of Button with text "Start or Restart".

The fourth row has an instance of Button with text "Check Your Answers".

The fifth row has an instance of TextView with text "Quotient is correct or incorrect".

The sixth row has an instance of TextView with text "Remainder is correct or incorrect".

The users of your program will click the button with text "Start or Restart" in the third row.

Then a random integer i with 0 ≤ i ≤ 99 will be set into the two instances of EditText with text "Num 1" in the first and second rows and a random integer j with 1 ≤ j ≤ 99 will be set into the two instances of EditText with text "Num 2" in the first and second rows.

The users of your program will input his or her answers for the integer division and remainder operations for the two randomly generated numbers.

The users of your program will click the button with text "Check Your Answers" in the fourth row. Depending the correctness (or incorrectness) of the answers from the users, the corresponding information will be displayed in the two instances of TextView in the fifth and sixth rows.

Also, during the program run, when the users click the button with text "Start or Restart" in the fourth row, a new pair of integers should be generated and set into the corresponding instances of EditText in the first and second rows.

The beginning of the program run is as follows.

A sample run of the program is as follows.

Another sample run of the program is as follows.

A sample run of the program is as follows.

The last sample run of the program is as follows.

A sample run of the program showing another pair of integers is generated is as follows.

Reference no: EM131704523

Questions Cloud

Meaning the price-intercept of the demand curve : If there is an increase in market demand for the good (X increases, meaning the price-intercept of the demand curve moves up), then:
Discuss advantages of issuing preferred stock versus bonds : The following is an excerpt from a conversation between the chief executive officer, Discuss advantages and disadvantages of issuing preferred stock versus bond
Impacts of cutting social security benefits : Discuss the impacts of cutting social security benefits on U.S. National Debt and social security beneficiaries. Who is helped, who is hurt?
Incentive of students to study and learn : As a result, the A students end up with Bs and the F students get Ds . How would this redistribution affect the incentive of students to study and learn?
Write an android phone program that has six rows of widgets : Write an Android phone program such that an instance of each class. Write an Android phone program that has six rows of widgets.
Describe a real-life example of a sweezy : Describe a real-life example of a Sweezy, Cournot, Stackelbery. or Betrand Oligopoly and offer reasons that you believe that industry fits that conditions.
Why is the adjustment to long run equilibrium : Why is the adjustment to long run equilibrium shown as a shift of demand in monopolistic competition but as a shift of supply in perfect competition.
Comprehensive set of journal entries and financial statement : Cort Hospital was established as a not-for-profit organization on January 1, 2013, to take over the assets of an existing hospital.
Calculate the weighted-average contribution margin : A small drink sells for $1.00 with a variable cost of $0.50. The weighted-average contribution margin is

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd