Question: -This needs to be done using andriod studio -use java - skill from chapter 1,2,7,8, and 9 are as follows importing classes, methods inside class,

-This needs to be done using andriod studio
-use java
- skill from chapter 1,2,7,8, and 9 are as follows
importing classes, methods inside class, adding button (each question needs to be a button). also use strings & loops.
 -This needs to be done using andriod studio -use java -

Programming Practice These exercises use the skills learned in Chapters 1, 2, 7, 8, and 9 of the textbook. Create a new project named FirstName LastName Programming Practice (e.g., Jane Doe Programming Practice) using the Empty Activity template and Java as the programming language. For each exercise, add a button with the button text as the question number and "question#f" (e.g., questionl, question, etc.) as the onClick attribute. Wire up the button. When the button is clicked, the actions for that question should be performed. All output should be printed to the logcat and to the user via a separate method you create and call for each question. 1. Print 'Hello World'. 2. Greet a user with their name. Note: create a variable for the user's name and hard code a fake user's name to that variable. 3. Modify the previous program such that only the users Alice and Bob are greeted with their names. 4. Print the sum of the numbers 1 to n. Note: hard coden for testing purposes. 5. Modify the previous program such that only multiples of three or five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17. 6. Hard code a choice from the user to compute the sum or the product of 1,...,n., and output the result of the computation. 7. Print a multiplication table for numbers up to 12. 8. Print all prime numbers up to n. 9. Print the next 20 leap years. 10. Print only the odd numbers from 1 to n. Export the project to a zip file (File >Export to Zip File), and submit the zip file to the Programming Practice Dropbox

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!