Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA PROGRAM 1. Please make a program to compute mean, median, and modus with the following conditions (submit the answer as Numbersort.java): A. The program

image text in transcribedimage text in transcribedimage text in transcribed

JAVA PROGRAM 1. Please make a program to compute mean, median, and modus with the following conditions (submit the answer as Numbersort.java): A. The program consists of 4 menus: 1. Input Number 2. Ascending Sorting 3. Descending Sorting 4. Mean, Median, and Modus 5. Exit B. If user choose menu 1 (Input Number), thenthe program will: Ask user to input of long sequence number that he/she want to process. Validate theinput must be between 1 and 30. Ask user to input numbers as many as long sequence number that he/she input before. Then the program will return to the initial menu. C. If user choose menu 2 (Ascending Sorting), then the program will display sequence number that user input and sorting the number with ascending order D. If user choose menu 3 (Descending Sorting), then the program will display sequence number that user input and sorting the number with descending order E. If user choose menu 4 (Mean, Median and Modus), then the program will display mean, median, and modus from the numbers that he/she input before. Mean, median, and modus are processed with these following conditions Mean Sum of numbers Number of numbers Median o If number of numbers which user input before is odd, then Median the number in the middle of the set of the inputted numbers. o f number of numbers which user input before is even, then Median J average of two numbers that are located in the middle of the set of the inputted numbers. Modus the most frequently occuring value. Result from modus maybe more than one. If the number of occurring of each number is one then display a message "there is no modus in the sequence numbers" and sorting the modus by ascending order F. If user choose menu 5 (Exit), then the program will ends

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

LO4 Identify a system for controlling absenteeism.

Answered: 1 week ago