Student S.

asked • 01/21/21

Write a program based on the problems given below.

1) Create a date chooser using mm-dd-yyyy format by creating three separate combo boxes. The user shall be able to concatenate the combobox values to form a full date then display it using JOptionPane via button click. (Year 1900 – 2000).

Note: The day of the month should exactly match the number of days that month has. (Example, if it is January then the days are until 31, if February, 28 days if not leap year and so on...)

2) Create a color combining app by using three different checkboxes, the first is labeled ‘Red’, the second is ‘Green’, and the third is ‘Blue’. Selecting and/or deselecting each color will output a different color.

Display the color selected using JOptionPane.

R + G = YELLOW

R + B = MAGENTA

G + B = CYAN

If there’s no checkbox selected, the color is BLACK (absence of colors)

3) Create a simple quiz system with 10 questions that will apply the concept of RadioButton in Java. The user shall click the correct answer and will automatically consider that as 1 point, otherwise no points added. By the end of the program, the user shall be able to see the total number of correct scores.


1 Expert Answer

By:

Patrick B. answered • 01/22/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.