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

Given a linked list of N nodes. The task is to reverse the list by changing links between nodes (i.e if the list is 1->2->3->4 then it becomes 1<-2<-3<-4) and return the head of the modified list.

Input

User Task:

Since this will be a functional problem, you don't have to take input. You just have to complete the function ReverseLinkedList that takes head node as parameter.


Constraints:

1 <=N <= 1000

1 <= Node.data<= 100

Output

Return the head of the modified linked list.


Given a singly linked list and an element K, your task is to insert the element at the tail of the linked list.

Input

User Task:

Since this will be a functional problem, you don't have to take input. You just have to complete the function addElement() that takes head node and the integer K as a parameter.


Constraints:

1 <=N<= 1000

1 <=K, value<= 1000

Output

Return the head of the modified linked list


You are given a Singly linked list and an integer K. Your task is to insert the integer K at the head of the given linked list

Input

User Task:

Since this will be a functional problem, you don't have to take input. You just have to complete the function addElement() that takes head node and the element K as a parameter.



Constraints:

1 <=N<= 1000

1 <=K, value<= 1000

Output

Return the head of the modified linked list


You probably are fond of games. This quiz though is not that complicated. You are simply going to work with a point on a screen, and a circle on a screen as well. And let's consider them as the characters in the game. We are going to call both of these characters as Movable objects. Objects are said to be Movable if they can be moved around the screen. The following simple movements are allowed:






public void moveLeft(); // moves the x to the left by 1 unit



public void moveRight(); // moves the x to the right by 1 unit



public void moveUp(); // moves the y 1 unit upward



public void moveDown(); // moves the y 1 unit downward



public void display(); // prints all the info about

Instructions


∙ Name your Java package as: “com.lastname.duka”.

∙ Name your database using your names as: “db_first_last_studentNumber”. ∙ Name all your tables in your database using this format: “tbl_tableName”. ∙ Add a copyright message (tiny text) on all your GUIs. 



Milestone:

For this unit, you are required to develop a GUI application using Java. The application should connect to a database and should be able to perform any CRUD operation.


Main goal: 

Develop a Java application with GUI for a primary school called Duka.


Functional Requirements:

The application should allow: 

i. A shop attendant to be able to login to upload stock of items (with prices). ii. A buyer be able to search for items, get their prices and make an order.


Non-functional Requirements:

The application should:

i. Have a user-friendly GUI for both shop attendant and buyer.

ii. Not crash in case a user makes a mistake, instead it should provide a clarification/warning.


Design a web page using HTML and CSS for a Music store. Add suitable background image.

1. Add links which can take to some description about song.

2. At the bottom mention the links for shopping, store, career and contact details


Hint:-

-create a Webpage which has a image as background and it has four menu option at the bottom which has shopping, store, career and contact details tile.

-create a link at the webpage which will give description about the song.


You have to generate electricity bill for a customer with the details as give below: Customer ID, Customer Name, Customer Address, Contact No, Units Consumed, Total payable amount. Following are the norms to calculate the unit amount:

a) for initial 100 units it will cost 6 rupees per unit

b) for next 100 units it will cost 8 rupees per unit

c) for next all units it will cost 10 rupees per unit


Hint:-

-get user input of customer name, id, address, contact no, units consumed

-give output as customer details and total payable amount but the payable amount wil be based on the unit consumed (if the total unit 300 it will be like 100*6= 600 as per first 100 units and 100*8= 800 as per second 100 units rest 100*10= 1000. so total will be 600+800+1000=2400).

Write a program in Java, define a STUDENT class with Roll No, Name and Marks of 3 subjects. Define one function to find the best two subject marks for student.


Hint:-

-get user input from user of student name, roll no and mark of 3 subjects

-give best two subject mark along with student information


Suppose you are planning to go to park so you are going to check tickets criteria online. The ticket rates details have been given

-If children below 10 are not allowed to swing

-If age is between 10 to 15 allowed to swing and getting 10 % discount

-If age is between 15 to 20 allowed to swing and getting 5 % discount

-If age is more than 20 not then not eligible for swing and discount

The age of person will run until you enter the age of last family member and then calculate the total charge amount after entering each person’s age. Assume price of ticket is 100 Rs. each person.


Hint:-

-get user input for how many family members

-give personal price along with discount based on age

-give total price along with discount

-give how many members are allowed



Write a program to take a string as input then display the words along with position of each character its below but don't take a white blank space as a separate character.

Example:

Enter a String

Hello World RUN

12345 67890 123


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS