Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE WRITE CODE IN ANDRIOD. Thank you so much!!!!!! please use java. andriod studio Programming Practice These exercises use the skills learned in Chapters 1,

PLEASE WRITE CODE IN ANDRIOD. Thank you so much!!!!!! image text in transcribed
please use java. andriod studio
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

Describe employee assistance programs.

Answered: 1 week ago