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

Develop a program using array that accepts three input values from the keyboard. Then it should also accept a number to search. This number is to be searched if it is among the three input values. If it is found, display the message “Search number is found!!!”, otherwise display “Search numbers is lost!!!.


Write an if-else statement for the following:

If userTickets is not equal to 6, execute awardPoints = 10. Else, execute awardPoints = userTickets.


Ex: If userTickets is 14, then awardPoints = 10.


To develop Java application and use Java Swing using below

requirements.


Tutora is an educational institute which provides education and research to country. Currently their entire business process is operated with books and emails. As a startup company your group has been hired to automate the manual process of Tutora. The following main business requirements has been discussed by the client. Implement a java Swing Application to automate the business requirements.  


Manage Examination issues (Add,Update,Remove)


To develop Java application and use Java Swing using below

requirements.


Tutora is an educational institute which provides education and

research to country. Currently their entire business process is

operated with books and emails. As a startup company your group has

been hired to automate the manual process of Tutora. The following

main business requirements has been discussed by the client. Implement

a java Swing Application to automate the business requirements.


Manage Examination issues (Add,Update,Remove) 


Design a Java application that will allow a user to capture the top students for a module. Allow the
user to enter in the module name, followed by the number of students the user would like to
capture
Continue to capture the results for the number of students entered. Once all the student results
have been captured create a results report.
In the results report display the student results entered, a student count and the average result
obtained.
Make use of a method to get the input from the user, another method to accumulate the student
results, a method to determine the average result and a final method to create the results report.
In your solution make provision if a user has entered in an invalid result amount. Any result
entered that is below zero (0) is an invalid entry.
Design a Java application that will store three different vehicle details for a local car dealership.
The vehicle details must be stored in parallel arrays for the Vehicle Identification Number (VIN),
Vehicle Manufacturer and Vehicle Price. Use the following data as an example when populating
the arrays.
VIN Manufacturer Vehicle Price
112367 AUDI R 180 000
212367 BMW R 170 000
312367 VOLVO R 210 000
Prompt the user with a menu system for searching or displaying the vehicles. The user must have
the option to enter the numbers 1, 2, or zero (0) to exit the application. Make use of JOptionPanes
for input and output. Create a loadArray() method that will store the vehicle details into the three
parallel arrays.
If the user enters a one (1) provide functionality for a vehicle search. Create a searchArray()
method and write the code to enable the user to search for a specific vehicle. If the VIN is found in
the array, display the vehicle details.
Question 5 (Marks: 40)
Design a Java application that will store three different vehicle details for a local car dealership.
The vehicle details must be stored in parallel arrays for the Vehicle Identification Number (VIN),
Vehicle Manufacturer and Vehicle Price. Use the following data as an example when populating
the arrays.
VIN Manufacturer Vehicle Price
112367 AUDI R 180 000
212367 BMW R 170 000
312367 VOLVO R 210 000
Prompt the user with a menu system for searching or displaying the vehicles. The user must have
the option to enter the numbers 1, 2, or zero (0) to exit the application. Make use of JOptionPanes
for input and output. Create a loadArray() method that will store the vehicle details into the three
parallel arrays.
If the user enters a one (1) provide functionality for a vehicle search. Create a searchArray()
method and write the code to enable the user to search for a specific vehicle. If the VIN is found in
the array, display the vehicle details.
Design a Java application that will allow a user to capture the top students for a module. Allow the
user to enter in the module name, followed by the number of students the user would like to
capture.
Continue to capture the results for the number of students entered. Once all the student results
have been captured create a results report.
In the results report display the student results entered, a student count and the average result
obtained.
Make use of a method to get the input from the user, another method to accumulate the student
results, a method to determine the average result and a final method to create the results report.
In your solution make provision if a user has entered in an invalid result amount. Any result
entered that is below zero (0) is an invalid entry.
Design a Java application that will allow a user to keep track of the sales of an employee. The user
should be presented with an option to enter the employee name and the sales amount.
Continuously prompt the user to enter in a sales amount for an employee until a sentinel value of
zero (0) is entered as a sale amount.
Please note that all input must occur in the Console window. Once the sentinel value has been
entered display the employee sales report.
Make use of a method to get the input from the user, another method to accumulate the sale
amounts and a final method to determine the average sale amount. In your solution make
provision if a user has entered in an invalid sale amount. Any sale amount entered that is below
zero (0) is an invalid entry.
  1. Create a program that takes in the following CMD arguments: A car’s plate number (registration number), arrival time and departure time plus the cost for staying in the parking lot. Your task then  is to take these given information to print a simple receipt as indicated below (Don’t worry about the calculations for now.)

Sample run 1:

Java lab01_task04 N88W 8h30 9h45 6.25

Output:

Vehicle Details

N88W

++++++++++++++++++++++

Arrival             8h30

Departure       9h45

++++++++++++++++++++++

 Total Cost: N$ 6.25

++++++++++++++++++++++


LATEST TUTORIALS
APPROVED BY CLIENTS