Create a console calculator application that make use of a menu it should gives a user an option to end a program when she entered a certain option
Design and develop an algorithm, function, method, utility, command or component that sorts a multi-column contact list (contain last name, first name, middle name). You may use any appropriate data structure of choice to hold your data.
Implement your solution as part of a program (written in JAVA) that displays list, before sorted, after sorted. Refer to the Sample Unsorted Input Data and the Sample Sorted Output Data below to see how the list be transformed by the sort process.
The output should be ordered by Last Name. First Name must be ordered within Last Name and the Middle Name should be ordered within First Name. All the sorting be performed in ascending order.
If use a pre-existing algorithm, identify Library, OS, individual, etc. give full attribution to source.
Sample Unsorted Input Data:
Smith, John Vince
Doe, Jane Marie
Doe, Sally Mae
Smith, Robert Anthony
Doe, Sally Maria
Sample Sorted Output Data:
Doe, Jane Marie
Doe, Sally Mae
Doe, Sally Maria
Smith, John Vince
Smith, Robert Anthony
You have to design your own Java console application about any valid problem that your application must solve. Your solution can include solving a business problem, a new idea or even a game. Your application must make use of concepts such as arrays, loops, inheritance, constructors and information hiding. Output must be shown in the form of a report using the console.
You have to design your own Java console application about any valid problem that your application must solve. Your solution can include solving a business problem, a new idea or even a game. Your application must make use of concepts such as arrays, loops, inheritance, constructors and information hiding. Output must be shown in the form of a report using the console. In your solution, make use of as many concepts, and components dealt with in this course, but pay special attention to the following: Advanced arrays and Introduction to inheritance.
1. Write a class called Item. It should have the following attributes (fields): a) a String name to store the name of the item. b) a String comment to store a comment about the item. c) a double value to store how much the item cost
2. Write a CD class that extends the Item class. CD’s have a String artist field and an int playingTime field. Write a DVD class that extends the Item class. The DVD class has a String director and an int runningTime
3. Write a Database class that creates and maintain a list of multimedia items. Your class must use the subclasses defined above to provide the following minimum functionality: a) add an item to the list b) remove an item to the list c) print out a list of items (to the screen) d) depreciates each item 4. Write a test program that creates some items of different types, adds them to the database, removes one of them and then prints out a list.
Write a program called GradeBook.java. This program should do the following:
1. Prompt the user to enter 3 grades one at a time, and read them in using Scanner (assume the grades are integer numbers).
2. Compute the average of the 3 grades.
3. Print the resulting average (do not worry about rounding the result, just print the value with all of the decimal places).
Here is an example of what the program output will look like (bold-italics indicate user input):
Enter grade 1: 89
Enter grade 2: 93
Enter grade 3: 72
84.666666667
Write a program called CalculateSeconds.java. This program should do the following:
1. Prompt the user to enter her/his name.
2. Greet the user by name and ask to enter a number of years (assume it will be an integer).
2. Compute the number of seconds in the number of years entered by the user (this should be done by calling the numOfSeconds() method).
3. Print the resulting number of seconds as shown below.
The numOfSeconds() method will:
1. Take an integer value as the input parameters
2. Calculate the number of seconds in the given number of years (assume that each year has exactly 365 days, with 24 hours in each day). Note, that you would need to use long and not int for these calculations to be accurate for a large number of years!
3. Return the number of seconds (as a long, not an int).
output
Please enter your name:
Peter
Hello, Peter. Please enter the number of years:
15
There are 473040000 seconds in 15 years, Peter.
Write a program called GradeBookMethod.java. This program should do the following:
1. Prompt the user to enter 3 grades (assume the grades are integer numbers)
2. Compute the average of the 3 grades by calling a method, which you write, named: average( )
3. Print the resulting average (do not worry about rounding the result, just print the value with all of the decimal places)
The average( ) method will:
1. Take 3 integer values as the input parameters
2. Calculate the average of the three integers (what data type should the average be?)
3. Return the average.
Here is an example of what the program output will look like (bold-italics indicate user input):
Enter grade 1: 89
Enter grade 2: 93
Enter grade 3: 72
84.666666667