Write a Java application and use a two-dimensional array that will store the five top artist sales for 2017. The application must also hold the artist sales for CDs, DVDs and BLU RAY items. Do not forget to use the marking guideline on the next page to see how the marks are allocated for this question. Your program must: Q.1.1 Create a two-dimensional array to contain the three sale items for five different artists. A single array must be used to store the artist names. ARTIST NAME CD SALES DVD SALES BLU RAY SALES Ed Sheeran 900 000 800 000 500 000 Pink 700 000 500 000 500 000 Bruno Mars 800 000 100 000 50 000 Foo Fighters 100 000 200 000 200 000 Taylor Swift 300 000 100 000 50 000 Q.1.2 Allow a user to enter in a number, ranging from 1 to 5, which will represent the artist position with regards to the album sales. Q.1.3 Printout the artist name including the CD, DVD, BLU RAY sales amounts and total sales.
Design a console application that will print the final result obtained by a student with the weighting of each module. Make use of an abstract class named Student that contains variables to store the student number, test result, assignment result and exam. Create a constructor that accepts the student number, test result, assignment result and the exam result as parameters and create get methods for the variables. The Student class must implement an iReport interface that contains the following: public interface iReport { public void print_report(); } Create a subclass called Student_Report that extends the Student class. The Student_Report class must contain a constructor to accept the student number, test, assignment and exam results as parameters. Write code for the print_report method which calculates each assessment weighting as follows:
Write a Java program that will create a report to display the top three mobile device sales per month from January to March 2018. The rows and columns represent the monthly sales of each device. JAN FEB MAR TOTAL IPhone 7 30 15 35 80 Samsung S8 20 25 30 75 Huawei Mate 10 25 11 32 68 MONTHLY TOTAL 75 51 97 Using a Two-Dimensional array, produce the monthly mobile device sales report and the total sales for each device.
Write a Java application and use a two-dimensional array that will store the three ratings of five TV shows. Your program must: Q.2.1 Contain a two-dimensional array to contain three ratings for five different series and a single array to contain the series names. SERIES NAME RATING 1 RATING 2 RATING 3 Big Bang Theory 9 8 5 Scandal 7 5 5 Modern Family 8 8 8 Dexter 10 7 8 Grand Designs 3 1 5 (6) Q.2.2 Calculate and print the average of the TV rating for each TV show. (4) Q.2.3 Determine if the series will be continued for another season. If the average rating of the series is greater than or equal to seven then the TV network will continue with a new season. (5) Q.2.4 Print out each series name with the average rating and if there will be a series continuation.
The application must calculate the compound interest of the amount entered at the required investment type. Moderate investments receive 10% interest, while the aggressive receives 15% interest per year for the selected term. A sample output based on the selection above would be: (10) Q.1.4 Comment your program; Marks will be allocated to the declaration of objects, logic, class definitions, method calls, etc.
Develop a Java GUI application that will produce an investment report based on various criteria, such as investment amount, investment type and term. Q.1.1 On the form create two text fields, one to capture the customer name and another to capture the amount to invest. Also create a combo box for the user to select the investment type which will be moderate or aggressive. Finally add three radio buttons for the user to select the term which is five years, 10 years or 15 years.
Q.1.2 You are also required to create a menu system which will allow the user to exit the application under the file menu and calculate and clear under the tools menu. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout, but the following layout is displayed for your convenience.
Design a console application that will print the cell phone bill of a customer. Make use of an abstract class named Cell that contains variables to store the customer name, talk time and price per minute. Create a constructor that accepts the customer name, talk time and price per minute as parameters, and create get methods for the variables. The Cell class must implement an iPrintable interface that contains the following: public interface iPrintable { public void print_bill(); } Create a subclass called Cell_Billing that extends the Cell class. The Cell_Billing class must contain a constructor to accept the customer name, talk time and price per minute as parameters. Write code for the print_bill method which calculates the total due (talk time * price per minute). Finally write a useCell class to instantiate the Cell_Billing class. Sample output is shown below and you may use the same values to test your application.
Write a Java program to display the three top sales made by employees of an organization. The rows and columns represent the sales made by each employee identified by their employee number. SALES 1 SALES 2 SALES 3 101111 R 3 000 R 2 000 R 3 500 101122 R 2 500 R 5 500 R 3 500 101133 R 1 100 R 2 000 R 4 500 101144 R 1 700 R 2 700 R 2 500 101155 R 5 000 R 2 900 R 5 900 Using a Two Dimensional array produce the employee sales report, and the total sales made by each employee.
Create an abstract class named Book. Include a String field for the book’s title and a double field for the book’s price. Within the class, include a constructor that requires the book title, and add two get methods—one that returns the title and one that returns the price. Include an abstract method named setPrice(). Create two child classes of Book: Fiction and NonFiction. Each must include a setPrice() method that sets the price for all Fiction Books to $24.99 and for all NonFiction Books to $37.99. Write a constructor for each subclass, and include a call to setPrice() within each. Write an application demonstrating that you can create both a Fiction and a NonFiction Book, and display their fields. Save the files as Book.java, Fiction.java, NonFiction.java, and UseBook.java
Your task is to create a program that can achieve the above requirements when given the students surname, first name and three digit postfix through CMD arguements