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 an application for a furniture company; the program determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table. Pine tables cost R 100, oak tables cost R 225, and mahogany tables cost R 310. If the user entered an invalid wood code, set the price to 0 and allow the user to select an option up to 3 times . Save the file as Furniture.java. Marks allocation 1. Presentation of a menu - 10 Select an option 1. for pine 2. for oak 3. for mahogany 2. use of a loop - 10 3. Use of an if statement/ switch - 10 4. correct output -10




You've been given the job of producing a wireframe for the website example below. Do the following:

  • Create a wireframe PDF/JPG document including the semantic elements needed to code this website;
  • Ensure your work is neat, tidy, and professional (so that it could be used by any developer to complete the work);
  • Submit your wireframe as an image/PDF embedded in a HTML document.

Create a simple fitness app using GUI and events handlers. With an integration of other concepts of Java, like methods, repetition and selection statements, classes, and arrays etc


4. Write a program (without using an array) that accepts three numbers from the user and prints "increasing" if the numbers are in increasing order, "decreasing" if the numbers are in decreasing order, and "Neither increasing or decreasing order" otherwise.



Example: Input first number: 1524


Input second number: 2345


Input third number: 3321



Expected Output :



Increasing order



Create a project to model student with firstname, lastname, age, gender and student number. Create two construtors, one to be used as default and another to include all attributes. Add a class attribute to keep count of all registered students. Use the class attribute to generate student numbers with the following format 22201XYZ, where XYZ is the current count provided by the class attribute. Implement the respective getters and setters for each attribute.  2. In plane geometry, the x- and y axis of a 2D Cartesian system divide it into four infinite regions called quadrants. Your task is to model each point with an x-value and y-value. Apart from the constructors, getters and setters, implement a getQuadrant method to determine the region in which a given point falls. 


Construct a simple purchasing program based on the Requirement Below.

Main.java should only contain the main method and a Reference of Purchase Object. Purchase.java should contain this fields & Methods:


Fields/Instance Variables

-itemName : String

-itemPrice : double

-itemQuantity : int

-amountDue :double


Methods

setItemName(String itemName) : void

setTotalCost(int quantity, double price) : void

getItemName(): String

getTotalCost(): double

readInput():void

writeOutput(): void

Note: The readinput() method will be used to accept user input through the Scanner class.


Create a class named Exponent. Its main() method accepts an integer value from a user at the keyboard, and in turn passes the value to a method that squares the number (multiplies it by itself) and to a method that cubes the number (multiplies it by itself twice). The main() method displays the results. Create the two methods that respectively square and cube an integer that is passed to them, returning the calculated value. Save the application as Exponent.java


. Write an application that displays all even numbers from 2 to 100 inclusive, and that starts a new line after every multiple of 20 (20, 40, 60, and 80). Save the file as EvenNums.java.


output the assigned character using java and make it to rotate 360 degrees clockwise


1.1 A Retail has name, a List containing Items available in the stock and another List containing sold items. [2] 1.2 A Retail have functionality to view available stock, that prints Class name of item, name of Item, size of item and total number of items that have same name, and size. [5] EXAMPLE

ClassName Item name Size Drink coke 1 Drink coke 2

Total

10; // this show that in the list there are 10 coke that are size of 1

5; // this show that in the list there are 5 coke that are size 2 Sizes in drinks means litres.

Hint: Items are the same if their class name, item name and size are the same.

1.3. A retail Shop has a functionality to add item into the stock list. The add item takes a parameter the Item to be added on stock. [2] 1.4 A retail shop also has a functionality to calculate total sales that returns double sum of money made from all sold items. [2]



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS