Java Web Development
Epam Systems
Minsk, Belarus (Minsk, Belarus)
March 2021
EN: All Copyrights to the Laboratory Conditions ProvideDed Belong to the Company Epam
Ru: All copyrights for the laboratory work conditions below belong to EPAM
Java Fundamentals
- EN: Laboratory Work No. 1
Ru: laboratory work # 1 TASKS (Tasks)
General requirements for the task code:- When writing applications, be sure to use Java Code Convention.
- Do not place the code of the entire application in one method (even if the task seems small to you and “there is nothing to write there”).
- Be sure to use packages.
- Call variables, methods, class, etc. so that you can understand the purpose of the element. Do not use abbreviations only if these are not generally accepted abbreviations.
TASK 1:
Write a program that allows the last number of its square to determine the last number of the number. TASK 2:
To draw up a program that, in the given year and number of the month, determines the number of days this month and correctly determined all the leap years. TASK 3:
The circle is inscribed in a square of a given area. Find the area of the square inscribed in this circle. How many times is the area of the inscribed square less than the area of the given? TASK 4:
To compile a program printing the value of True, if the specified statement is true, and FALSE is otherwise: among the specified integers A, B, C, D are at least two even. TASK 5:
To compile a program printing the value of True, if the specified statement is true, and false - otherwise: is the whole number perfect (the sum of the dividers is equal to the number of number). TASK 6:
There is a N-y second of the day, determine how many full hours full of minutes and seconds have passed by this moment TASK 7:
Two points A (x1, U1) and B (x2, y2) are given. Make an algorithm that determines which of the points is closer to the beginning of the coordinate x, y. TASK 8:
Calculate the value of the function.
F (x) = {-x^2+3x+6, if x> = 3; 1/(x^3-6) if x <3} TASK 9:
Calculate the length of the circle and the area of the circle of the same given radius R. TASK 10:
Draw up a program for calculating the values of the function f (x) on the segment [a, b] with step h. The result is presented in the form of a table, the first column of which is the values of the argument, the second is the corresponding values of the function.
F (x) = tg (x) - EN: Laboratory Work No. 2
Ru: Laboratory work No. 2 TASK (task)
Create a class of a ball. Create a basket class. Fill the basket with balls. Determine the weight of the balls in the basket and the number of blue balls. - EN: Laboratory Work No. 3
Ru: Laboratory work No. 3 TASKS (Tasks)
TASK 1:
Creation of the type of Array, which is a class of shell over an array of a whole type. In this type, designers should be implemented (allowing several ways to create type objects), GET, SET-s and redundant methods of class Object (Tostring (), Equals (), Hascode ()).
The program should have the following opportunities:
1 - sort the array of the trim in ways.
2 - search for an element of an array (use a binary search algorithm).
3 - finding the maximum and minimum element of the array.
4 - Get all simple numbers in the array.
5 - Get all the numbers of Fibonnacci in the array.
6 - get all three -digit numbers, in the decimal record of which there are no identical numbers.
7 - filling out the elements of the array from the console, and from the file and by generating random numbers. TASK 2:
A indirect integer array (Jagged Array) is given. To realize the algorithm of "bubble" sorting, so that it is possible to streamline the lines of the matrix:
• in the order of increasing (descending) of the sums of elements of the lines of the matrix;
• in the order of increasing (descending) of the maximum elements of the lines of the matrix;
• In the order of increasing (descending) of the minimum elements of the lines of the matrix.
For sorting, the ARRAYS class methods do not use! The main requirement to avoid the repetition of the code !!!!! - EN: Laboratory Work No. 4
Ru: Laboratory work No. 4 TASKS (Tasks)
The text processing program, which can be obtained from both the console and from the file. TASK 1:
In each word, replaced with a given letter with a given symbol. If k is more than the length of the word, do not perform adjustment. TASK 2:
In the text after the letter P, if it is not the last in the word, the letter A is erroneously printed instead of O. to make corrections to the text. TASK 3:
In the text of the words of a given length, replace the specified tuning, the length of which may not coincide with the length of the word. TASK 4:
From a small text, remove all characters, except for spaces that are not letters. Between the sequences in a row of going letters, leave at least one gap. TASK 5:
From the text, delete all the words of a given length, starting in the consonant letter. - EN: Laboratory Work No. 5
Ru: Laboratory work No. 5 TASKS (Tasks)
Tasks must be completed using the command line and write a report. TASK 1:
Create a Hello class that will welcome any user when entering his name through the command line. TASK 2:
Create an application that displays in the console window the arguments of the command line of the Main () method in the reverse order. TASK 3:
Create an application that displays a given amount of random numbers with the transition and without the transition to a new line. TASK 4:
Create an application for entering a password from the command line and comparing it with a line-image. TASK 5:
Create a program for entering integers as a command line arguments, counting their amounts (work) and withdrawal of the result to the console. TASK 6:
An appending name of the developer and for how many days the task is ready to complete. It is necessary to calculate the date and time of delivery of the assignment. To get a date and time use the Calendar class from the Java.util package. TASK 7:
To create an application receiving the date of birth (day, month and year) and defining on what day of the week you were born, how many full years you are and congratulates on your birthday if it is today (use the Calendar class from the Java.util package). - EN: Laboratory Work No. 6
Ru: Laboratory work No. 6 TASK (task)
Airline. Determine the hierarchy of aircraft. Create airline. Count the total capacity and carrying capacity. Conduct sorting the aircraft of the company based on one and several parameters. Find the plane in the company corresponding to the given range of fuel consumption parameters.
MySQL
- EN: Laboratory Work No.7
Ru: Laboratory work No. 7 TASK (task)
Online store. Design a database on the topic. Create tables, fill out the tables with data. Perform requests to verify the work.
Java Web
- EN: Laboratory Work No. 8
Ru: Laboratory work No. 8 TASK (task)
Create a XML file that stores information about objects of a certain subject area. To validate the resulting XML file, it is necessary to develop the corresponding XSD scheme. Perform Parsing XML document using DOM, SAX and STAX Parsers.
Download the file to the web application through the page in the browser, on the page to select a parser. Parsing results should be brought to the browser in the form of a table.
Requirements:
- Use for attributes REQURED & OPTIONAL
- Lists
- templates and limit values
- Use the type ID
- Assignment of the values of attributes by default
- Expansion of types (imitation of inheritance)
- Use a date-time
- create at least 16 entities in the XML document
- organize parsers using the Bilder template
- To record logs use log4j2
- The code should be covered with tests
Computers
Computer components have the following characteristics:
NAME is the name of the component.
Origin is a country of production.
Price - price (0 -n rubles).
Type (should be several) - peripheral or not, energy consumption (watts), the presence of cooler (is or not), a group of components (input -output devices, multimedia), ports (COM, USB, LPT).
Critical is a critical availability of a component for a computer.
The root element is called devices.