Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer all questions Lab 11: Module 6- Arrays II 1. Create a Java program that reads in temperatures for the month of November in Maryland

image text in transcribed Answer all questions
Lab 11: Module 6- Arrays II 1. Create a Java program that reads in temperatures for the month of November in Maryland and determines if the temperatures are higher, lower or equal to the average. Create a sentinel value to terminate the input. (AvgTemps java) (4 pts) Write a Java program that calculates the sum of a variable sized matrix using a two dimensional array. (ArraySum.java) (8 pts) 2. The user should provide the number of rows and columns o Test multiple user inputs (3 x 2, 4x4,6x 2, etc) A sum should be created for each row and the total for the matrix Ex.: How big would you like your matrix? Rows -?3 Columns-?2 Please enter your row 1? Column 1 -3 Column 2-4 Please enter your row 2? Column 1-7 Column 2-40 Table 1An example ot a 32 atrix 40 12 Please enter your row 3? 20 Column 1-20 Column 2 -12 Your total for row 1 is -7 Your total for row 2 is +-.47 Your total for row 3 is-32 Your total for the 3 x 2 matrix is 86 3. Create a program that simulates a pack of eight Crayons (an array of objects). Each crayon should have a color (red, yellow, green, blue, brown, black, orange and purple) length in millimeters and sharpness (a number between 1 and 5). The user wants to be able to randomly select a crayon and then be presented with the color, length and sharpness (no one likes a dull crayon). Let the user randomly select three Crayons The same color Crayon cannot be select more than once. (Crayon java) (13 pts) The user should also be able to view all of the Crayons (color, length and sharpness) in a menu as an alternative to the random selection Extra-Credit: The user should be able to exit the program at any time by typing end (+2 pis)

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

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago