Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

StudentLoans class This class has a menu control method that allow users to add a Student or PostGraduate object to an array. The array allows for 20 elements, but the array may contain less elements. The number of elements if the arrays is available in the variable noOfStudents. 1 Code a no-argument constructor. In this constructor, a) Add 2 Student objects to the Students array. b) Add 2 PostGraduate objects to the Students array. c) Set noOfStudents to 4. 2 Code a method menu() that returns an int value. This value represents the choice the user has made from the available menu options. a) Define a Scanner variable to read from the keyboard. b) Define an int value, named choice. c) Display a menu in the following forma
POSTGRADUATE CLASS Write the PostGraduate class as per the class diagram. Remember to call the super class methods or constructors as needed. show() method This method is void and displays the details of a PostGraduate object as follows: Student details Name: Mpho Student number: 201812345 Loan amount: 10000.0 Thesis: I do not know Code the method interest(). This method returns a double value calculated as follows: loanAmount times 10%.
STUDENT CLASS Write the Student class as per show () method This method is void and d diagram. oes not students with student loans have any parameters. This method display s the details of a . Student object as follows: Student details Name: Smittie Student number: 12345 Loan amount: 10000.0 Coding for interest() method public double interest() { return loanAmount*.05; }
You Y are required to assist with ou must write all the development of a system to manage the JAVA classes. UML class diagram of two base classes STUDENT CLASS Write the Student class as per show () method This method is void and d diagram. oes not students with student loans have any parameters. This method display s the details of a . Student object as follows: Student details Name: Smittie 1 Applications Development Foundations I
We’ve set up a robot workshop to build some droids. All that’s missing are the instructions on how to create the robots and what they’ll do.
Can we write a Java class to help?

String droidName
droidName
name
battery level
performing a task
stating its battery level
codey.performTask("dancing")

Design a console application that will print a movie ticket for a customer. Make use of an abstract class named Tickets that contains variables to store the customer name, movie title, customer age and price of the movie. Create a constructor that accepts the customer name, movie title, customer age and price of the movie as parameters and create get methods for the variables. The Tickets class must implement an iTickets interface .

Create a subclass called TicketSales that extends the Tickets class. The TicketSales class must contain a constructor to accept the customer name, movie title, customer age and price of the movie as parameters. . A discount of 10% is applied if the customer’s age is greater than or equal to 65. If the customer is under 65 years old, no discount is given. Finally, write a Movie_Tickets class to instantiate the TicketSales class.



Write a program which inputs a positive integer n and outputs an n line high triangle of '*' characters whose right-angle is in the bottom left corner. For example, if 5 is input the output should be


Write a Java program to display three monthly sales of different vehicle types. The rows and columns represent the monthly sales of each vehicle type.

JAN FEB MAR SUV 25 15 35 COUPE 25 55 35 SEDAN 11 20 45 VAN 17 27 25

Using a Two-Dimensional array, produce the vehicle type sales report and the total sales made for each vehicle type. If the total sales made per month are greater than or equal to 100, gold status is awarded. If the monthly sales are less than 100, silver status is awarded.


Create a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user whether he or she wishes to perform the operation again. If so, the loop should repeat; otherwise it should terminate


Using a switch statement, write a program that prompts the user for a numeric code and two operands. The numeric codes of 1, 2, 3, and 4 represents addition, subtraction, multiplication, and division respectively. Before division, your program should check whether the second operand is not zero. If it is, it should display “Division by zero not allowed” to the screen.


LATEST TUTORIALS
APPROVED BY CLIENTS