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

In this assignment, you will modify your Quiz class from the previous assignment. You will create a method that asks a quiz question and a method that checks the answer, and you will use those methods to ask multiple questions. Your program will then report how many questions the user got correct. This program will be the basis for future Programming Assignments in this course.


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




Sample Screenshot:




L Sports Vehicles




Select Vehicle




Jaguar F-Type




Audi TT




Porsche Cayman




Audi TT




Price: R: 765 000




0-100: 5.5 seconds Engine: 2.0 litre




SUBMIT

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








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.






Create a sequential file (contacts.txt) that contains data for the following fields






Q.3.2






The contact name;






The contact mobile number,






The contact work number:






The contact email address






Q.33






Load the data from the contacts txt file and populate the list bax with the contact names Include a feature to inform the user on the amount of contacts






Sample Screenshot:






Contacts Application






Select Contact






Joe Bloggs






Jeff Jones






Mobile






072 157 1545






Work






021 5555555






Email






@gmail.com






Number of contacts: 2






SEARCH

Write a program that will accept a number n and display the sum of all even numbers and

the sum of all odd numbers from 1 to n and the number of rows.


  1. Using this Online IDE, create three (3) linked lists named songs, artists, and playlist. You may refer to the sample codes in this module. 
  2. Add five (5) song titles to the first linked list then add the five (5) singers/bands of those songs to the second linked list.
  3. Combine the first two (2) linked lists and add each combination to the third linked list, which is playlist.
  4. Display the content of the three (3) linked lists in separate lines. See sample output below.

Instructions

  1. Create a variable that accepts a positive integer.
  2. Create an empty array. Then, using loops, add random integer values into the array one by one. The number of values to be stored is dependent on the inputted positive integer given in the first instruction.
  3. Print out the largest integer among all the elements in the array, by any means necessary.


Input

The first line contains the size of the array/list.

The next lines contains an integer on each.

5
5
34
3
23
10

Output

A line containing an integer.

34

Implementation of Stack ADT Operations using Array

Encode the given source code and provide the needed statements which will complete the program.

1. Take note of the following:

• push() is a method that will insert an element at the top of the stack

• pop () is a method that will delete the top of the stack

• peek() is a method that will return the top of the stack

2. Include the following push operations in your code, specifically in the main method:

• push(10)

• push(23)

• push(4)

• push(36)

• push(12)


After compiling and running your code, it is expected that the sample output below will display in your screen.


My Stack Operations

1. Size of stack after push operations: 5

2. Top of the Stack: 12

3. Pop elements from stack : 12 36 4 23 10

4. Size of stack after pop operations : 0





Develop a Java GUI application that will display the petrol cost per litre for three different cities with a time span of three years. Q.1.1 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:


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 can

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 can

LATEST TUTORIALS
APPROVED BY CLIENTS