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 GUI application that will keep track of a company’s products. The application must


contain the product id, product name and the product price.


Q.3.1 On the form, create three text fields to capture the product details and a non‐


editable text area to display the product details. Create a submit button that


when clicked will save the product details to a Products.txt file. Also include a


search button that will allow a user to search for a product based on the product


id.


Q.3.2 Create a sequential file (products.txt) that contains data for the following fields:


 The product id


 The product name


 The product price

application and use a Two dimensional array that will store five information technology

8 OfonQ, with the average amount of

stered for each course

Your program must:

Contain a two dimensional array to contain three student registration figures for five

different information technolory courses and a single array to contain the course

Males

COURSE

REGISTRATION I REGISTRATION >

I REGISTRATION 3

Programming 101

50

10

50

Web Dev 101

10

50

20

Databases 101

10

70

Logic 101

Management 101

30

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.

0.2.4 Print out each course name with the average registration and if the course will run


Contain a single arrav to contain the tollowine tive Enelish words and a

TWO

dimensional array to store the following Dutch, French and Italian translated words

ENGLISH WORD

DUTCH WORD

VI FRENCH WORD

ITALIAN WORD

hemel

ciel

cielo

run

rennen

courir

carrare

study

studie

mUSC

muzipk

musE

musica

dog

hond

chipn

cane

18. 10. 20

Q.2.2 Print out each English word with the translated Dutch, French and Italian word.


What will be the output of the following code snippets.

<script>
    var num1 = 50;
    num1++;
    console.log(--num1);
</script>





A company dealing with marketing wants to manage the data of its employees. Each employee has a full name, unique employee number (2019000 to 2019999) and the number of hours he worked and her hourly wage (price).


Write a method “calculateSalary” that calculates the weekly salary of an employee

Write a method “calculateAverage” that calculates the average of weekly salaries

Write a method “calculateAmount” that calculates the total amount of salaries

Write a java program that uses the above method to meets the needs of this company. it performs the following tasks:

Read from the standard input the number n of employees

Read from the standard input the employee characteristics. Use arrays to store the full names, worked hours and hour prices of the n employees read from the console.

Uses the above methods to calculate salaries of employees, calculate the average and the sum of the salaries.

Print each employee with its salary on a separate line.

Print the average and the sum of salaries


Write a Java GUI application that will keep track of a company’s products. The application must


contain the product id, product name and the product price.



Q.3.1 On the form, create three text fields to capture the product details and a non‐


editable text area to display the product details. Create a submit button that


when clicked will save the product details to a Products.txt file. Also include a


search button that will allow a user to search for a product based on the product


id.



Q.3.2 Create a sequential file (products.txt) that contains data for the following fields:


 The product id


 The product name


 The product price



Q.3.3 Load the product details from the Products.txt file. Populate the text area on


form load and whenever a new product is saved


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





Q.2.2 Print out each English word with the translated Dutch, French and Italian word.

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:


2019 Epson K750 15 22 12

2020 HP Deskjesk 650 10 35 20 Epson K750 15 22 12


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


CS 1102 - Unit 3 Programming Assignment 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. These instructions assume that you are using the Eclipse IDE on your own computer or you may use a different Java environment as long as you can provide Java code and screen shots for your assignment submission. First open your previous Programming Assignment in Ecli


Write a complete Java program that do the following:

a.   Read your student’s ID number, store it in an array named myStudentNO and print it.

b.   find the number of even and odd integers in myStudentNO array


LATEST TUTORIALS
APPROVED BY CLIENTS