Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of these create a separate program in Eclipse. After you have finished the programs, paste the code and associated screenshots for each as

For each of these create a separate program in Eclipse. After you have finished the programs, paste the code and associated screenshots for each as a single submission in one document with separation between, or it may overwrite a previous program with the most recently submitted item. Each of these is worth 5 points for a total of 20 points. You will have until midnight tonight to finish these last four piecving problems of code.
(Do send screenshots of the code working, my eclipse is having issues.)
1. Write a Java program prompts the user to enter in three integers. The program should then calculate the value of the first integer added to the second and print the result. Next, it should calculate the value of the second integer subtracted from the third and print the result. Lastly, it should multiply the first and third integers before adding the value of the second integer and print the result.
2. Write a Java program that will ask the user to input an integer value between 1 and 100 for a grade. Using if-else statements determine if the value entered by the user should be awarded a grade of an A, B, C, D, or an F, and print out the result.
3. Write a Java program that makes a simple menu with a loop using a switch structure. (Not an if statement). The menu will handle five cases and a default. You should have an integer variable called weekday, which the user will input. If choice is a one, it should print out: "Today is Monday." If the choice is two, it should print out "Today is Tuesday." and so on up to five for Friday. If any other value is entered print out Invalid input and exit the program.
4. Write a Java program that declares an array of size 10, using a constant for the size. Then, using a loop prompt the user to enter 10 strings of text and assign those values to the array. Display the contents using a for loop to go through the array and print out the contents until the end of the array has been reached.

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions