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

Write a Java application and use a Two dimensional array to store five Dutch, French and Italian translated words. Use a single array to store the English words.  Your program must: Q.2.1 Contain a single array to contain the following five English words and a Two dimensional array to store the following Dutch, French and Italian translated words. ENGLISH WORD  DUTCH WORD FRENCH WORD ITALIAN WORD  sky  hemel ciel cielo run  rennen courir correre study studie etude studia music muziek musique musica dog  hond chien cane.


Develop a Java GUI application that will display the ink cartridge usage of three different printers with a time span of three years. Q.1.1 On the form, create two combo boxes, to allow a user to select between three different printers and years. When a user has selected a printer and year and clicked the submit button, display the amount of ink cartridges used for that year. Use the following table for the printers and yearly cartridges used: 2018 2019 2020 HP Deskjesk 650 10 35 20 Epson K750 15 22 12 Canon Z100 30 31 33 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. Under the tool’s menu, allow the form submission and an option to display the yearly ink cartridges used for each printer. 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 fine due for a citizen who was caught speeding in a 120km zone. Make use of an abstract class named Fine that contains variables to store the citizen name, speed and fine payable. Create a constructor that accepts the citizen name and speed as parameters and create get methods for the variables. The Fine class must also contain a method to calculate the fine. If the speed is greater than or equal to 120km, multiply the speed by R10.20, or else no fine if payable.


Write a Java program to display the three highest monthly speeding fines recorded for four different cities. The following rows and columns represent the monthly speeding fines of each city.  JAN FEB MAR JHB 128km 135km 139km DBN 155km 129km 175km CTN 129km 130km 185km PE 195km 155km 221km Using a Two Dimensional array, produce the speeding fines report including the speeding fines statistics. The speeding fines statistics must display the highest and lowest speeding fines in the two dimensional array.


Write a Java GUI application that will keep track of sport vehicle details. The application must contain the vehicle name, vehicle price, 0 – 100 in seconds and the engine size. Q.3.1 On the form create three radio buttons and a list box to display the vehicle details. Also create a submit button that when clicked will display the vehicle name, vehicle price, 0 – 100 in seconds and engine size. Q.3.2 Create a sequential file (cars.txt) that contains data for the following fields: • The vehicle name • The vehicle price • The speed from 0 to 100 in seconds • The engine size Q.3.3 Load the data from the cars.txt file and populate the list box with the vehicle details.


Write a Java application and use a Two dimensional array that will store five information technology courses, with the average amount of students registered for each course. Your program must: Q.2.1 Contain a two dimensional array to contain three student registration figures for five different information technology courses and a single array to contain the course names. COURSE REGISTRATION 1 REGISTRATION 2 REGISTRATION 3 Programming 101 50 10 50 Web Dev 101 10 50 20 Databases 101 10 10 20 Logic 101 10 7 5 Management 101 30 10 50 Q.2.2 Calculate and print the average of the course registration figures for each IT course. Q.2.3 Determine if the IT course will be run or not. If the average registration figures of the IT course is greater than or equal to 70 then the IT course will run. Q.2.4 Print out each course name with the average registration and if the course will run. 


Develop a Java GUI application that will display the petrol cost per litre for three different cities with a time span of three years. On the form create a list box, to allow a user to select between three different cities. Also create a combo box for the user to select the year. Finally add a submit button. Once the user has selected a city, year and clicked the submit button display the petrol price per litre for that year. Use the following table for the city and yearly petrol prices per litre: 2017 2018 2019 Johannesburg 10.72 10.35 10.20 Durban 12.75 12.32 12.22 Cape Town 13.70 13.31 13.23 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. Under the tools menu allow the form submission and option to display the average yearly petrol price report. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout


Write a Java GUI application that will keep track of a user’s contact list. The application must contain the contact mobile number, work number and email address. Do not forget to use the marking guideline at the end of this question to see how the marks are allocated. Q.3.1 On the form, create a list box that will allow the user to select a contact name, which is populated from a text file. Also create a search button that when clicked will display the mobile number, work number and email address. Q.3.2 Create a sequential file (contacts.txt) that contains data for the following fields:  The contact name;  The contact mobile number;  The contact work number;  The contact email address. Q.3.3 Load the data from the contacts.txt file and populate the list box with the contact names. Include a feature to inform the user on the amount of contacts.


The application must allow a user to select between two countries, namely South Africa and the United Kingdom. When a particular country is selected, present the available towns in the town combo box. SOUTH AFRICA UNITED KINGDOM Cape Town  Phone Code: 021  Postal Code: 8000 London  Phone Code: 020  Postal Code: WC2N5DU Johannesburg  Phone Code: 011  Postal Code: 2000 Oxford  Phone Code: 01865  Postal Code: OX13PN Durban  Phone Code: 031  Postal Code: 4000 Southampton  Phone Code: 023  Postal Code: SO147DW


Develop a Java GUI application that will produce an Area lookup application that will allow a user to view a phone or postal code for a Town in a particular Country. Do not forget to use the marking guideline at the end of this question to see how the marks are allocated. Q.2.1 On the form create two combo boxes, one for the country selection and another to select a town. Also, add two radio buttons for the user to select to display either a phone or postal code. Q.2.2 You are also required to create a “submit” and “exit” button. 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.


LATEST TUTORIALS
APPROVED BY CLIENTS