Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a java with modules where you ask the user for a number. then you print the color that it represent and add up the

create a java with modules where you ask the user for a number. then you print the color that it represent and add up the value (10,15,23,29,30). please use arrays and import jpotionpane. when using arrays, have the colors in one, the numbers (1-5) in one, and the values in one.

1=blue=10

2=red=15

3=orange=23

4= gray=29

5=black=30

example the users enter 1,3,4

convert those numbers to that value that matches them

10+23+29=62

print 62 and the colors that matched numbers that user entered, and how many times they enterd the numbers.

total is 62

1 blue,

1 orange,

1 gray

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

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

with jit manufacturing, finished goods inventories are

Answered: 1 week ago