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

Create a Time class and initialize it with hours and minutes.

1- Make a method displayTime which should print the time in hh:mm:ss format.

2- Make a method DisplayMinute which should display the total minutes in the Time. E.g.- (1 hr 2 min) should display 62 minutes


It is time for you to demonstrate your skills in a project of your own choice. You must DESIGN,
ANALYSE AND CODE any method for the GENERIC MyLinkedList class that will manipulate the linked
list. You can decide yourself what it should be following the specification below:
1. Purpose: The method must make logical sense à ƒ ¢ € “ it should be of some purpose to somebody.
You should describe in the text who will use the method for which purpose.
2. Clearly explain the problem. Then clearly explain how your method will solve it.
3. Test program: Test the method using a wrapped class like Integer however.

The

company wants to use a computerised system for selling their tyres. There are 2 types of

tyres in stock, namely those for luxury vehicles and those for construction vehicles.

4

Construction vehicle tyres cost twice the price of luxury vehicle tyres, and the prices

depend on the wheel size according to the following price list for luxury vehicles:

Wheel Size Price/Unit measurement ($)

Less than 10 Inches 3.50

10- 15 Inches 4.00

Greater than 15 inches 6.00

You are required to create a python program that implements the program according to

the following guidelines:

a) Create a class called Home, which contains a function called Details for receiving the

values of the type of vehicle, the size of the tyres and the number of tyres for the

vehicle.

b) Create a class called Construction which contains:

i) A constructor

ii) A function called Calc for doing relevant calculations for calculating the total price

of the tyres purchased for construction vehicles.


Creat a class named Rectangle with integer instance variables named width, height, area and perimeter. Override the default constructor and use it to set these variables to zero. Also include another constructor that accepts perimeters for the width and height instance variables and initializes the instance variables area and perimeter to zero.
Include the following accessor and mutator methods;
I) setWidth which accepts a parameter that can be used to assign the width instance variable.
2) setHeight which accepts a parameter that can be used to assign the height instance variable.
3) getArea that returns the value of area instance variable.
4) getPerimeter that returns the value of perimeter instance variable.

Also include following custom methods:
1) computeArea which computes a rectangle's area but doesn't return a value
2) computePerimeter Which computes a rectangle's perimeter and also doesn't return a value.

PRACTICAL: Question 6 (Marks: 10)

Create a PL/SQL query to display the customer name and total amount spent by each customer. In your solution determine the customer rating. If the total amount spent is greater than or equal to R 1000, the customer receives a star rating, otherwise no star rating applies.

Sample Output

FIRST NAME: Patrick

SURNAME: Smith

AMOUNT: R 700

----------------------------------------------------

FIRST NAME: Steven

SURNAME: Hewson

AMOUNT: R 570

----------------------------------------------------

FIRST NAME: Barry

SURNAME: Goodwin

AMOUNT: R 2500 (***)

----------------------------------------------------


Assume a file named 

Random.txt

exists, and contains a list of random numbers. Write a program that opens the file, reads all the numbers from the file, and calculates the following:

  • The number of numbers in the file
  • The sum of all the numbers in the file (a running total)
  • The average of all the numbers in the file


The program should display the number of numbers found in the file, the sum of the numbers, and the average of the numbers.

Output Labels:

Print each of the above quantities on a line by itself, preceded by the following (respective) strings: "

Number of numbers: 

", "

Sum of the numbers: 

", and "

Average of the numbers: 

".

Sample Run

Number of numbers: 20

Sum of the numbers: 210

Average of the numbers: 10.5 


Write the pseudocode and flowchart for a vending machine


Create a windows desktop application which can be used by a local gardening service to determine the amount due by customers.


Your program should request the user to input the approximate length and breadth of the lawn, and whether cleaning the flower beds are included. Your program should then calculate and display the amount due, which is R8 per square meter of lawn, and a fixed cost of R60 if the flower beds needs to be cleaned.



1. Write a program that generates a random number between 0 to 10. Use the following statements below for generating random number and the class Random from the package java.util:Random rand = new Random();int num = rand.nextInt(10);2. Display the generated random number with text: "The generated random number between 0 to 10 is: ".3. Name the class as RandomNumber and save the file.4. Compile and execute the program using the command prompt (cmd). If you do not have cmd, run it in JDoodle.

PRACTICAL: Question 5 (Marks: 10)

Create a view called vwPetSalesDetails that will display the customer id, pet id, pet price and sales date. In your solution only display the sales that occurred between 15 March 2020 and 18 March 2020.

how to code for the sales between that date only. please provide sample code. thank you

LATEST TUTORIALS
APPROVED BY CLIENTS