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 lawn-mowing service. The lawn-mowing season lasts 20 weeks. The weekly fee for mowing a lot under 4,000 square feet is R25. The fee for a lot that is 4,000 square feet or more, but under 6,000 square feet, is R35 per week. The fee for a lot that is 6,000 square feet or over is R50 per week. Prompt the user for the length and width of a lawn USING JOPTIONPANE, and then display the weekly mowing fee USING JOPTIONPANE , as well as the 20-week seasonal fee. Save the file as Lawn.java

1. The use of class and object

2. The use of JOption for input

3. The use of JOption for output

4. correct out


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 enters 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

Select an option 

1. for pine 

2. for oak

3. for mahogany

2. use of a loop

3. Use of an if statement/ switch

4. correct output

Add two polynomials
Given two polynomials A and B, write a program that adds the given two polynomials A and B.
Input

The first line contains a single integer M. 
Next M lines contain two integers Pi, Ci separated with space, where Pi denotes power and Ci denotes co-efficient of Pi for polynomial A.
After that next line contains a single integer N.
Next N lines contain two integers Pj, Cj separated with space, where Pj denotes power and Cj denotes co-efficient of Pj for polynomial B.
Output

Explanation

If M = 4 and for polynomial A
For power 0, co-efficient is 5
For power 1, co-efficient is 0
For power 2, co-efficient is 10
For power 3, co-efficient is 6.

If N = 3 and for polynomial B
For power 0, co-efficient is 1
For power 1, co-efficient is 2
For power 2, co-efficient is 4.
Then polynomial A represents "6x^3 + 10x^2 + 5", the polynomial B represents "4x^2 + 2x + 1" and the addition of A and B is "6x^3 + 14x^2 + 2x + 6"

print 0 if degree of polynomial is 0


2.1 Using multi-dimensional arrays, create an array that will store 10 items of stock (can be any item 

e.g. cars,) with brand name, Number of stock in Store and Quantity Sold


In a new index.html file display three images (that you would be legally allowed to use for a commercial project) and do the following:

  • Select a theme that ties all three images together (for example nature, city life, gaming, etc.).
  • Give each image an appropriate alt attribute.
  • Give each image appropriate width and height attributes (retaining its original aspect ratio).
  • Give each image an appropriate title attribute.
  • Use CSS filters to change the appearance of all three of your images.
  • Underneath each image, provide information on its copyright license.

Create a program that will enter at least five numbers, compute the average, and print the said numbers in reverse order.


Sample output:


Enter the number of elements: 5


enter the value of item number 1: 80

enter the value of item number 2: 82

enter the value of item number 3: 84

enter the value of item number 4: 82

enter the value of item number 5: 85


The average of 5 element is 82.60


Reverse order of 5 elements: 85, 82, 84, 82, 80



A ball is thrown vertically upwards with an initial velocity of 30 m/s.





Using a time step of 0.02 s up to 6.20 s, write a matlab code to give a plot of the vertical distance versus





time for this ball.





Hint ; Motion under gravity is described by the equation : 𝑣𝑦 = 𝑣𝑜𝑦𝑡 +1/2𝑔𝑡^2





and gravitational acceleration 𝑔 is here taken as negative.





Then use your code to answer the following questions:





(i) To what maximum height does the ball rise?





(ii) What is the index of time at maximum height?





(iii) How long does it take the ball to ascend to maximum height?





(iv) How long does it take the ball to hit the ground?





(v) What happens to the ball if the sign for gravitational acceleration is taken as positive?

Create a program that will input the amount and quantity of three types of categories, such as Beverages, Fruits, and Canned Goods. Each category has three types of items. You’ll need to input the amount and quantity of the three items in each of the categories then compute the total price and amount due, respectively.

Write a complete C++ program that will prompt name, gender (M or F), age (in years) and marital status (single or married) for each student in FISE and calculate the numbers of married men, single men, married women and single women. Printthese numbers on a student summary report. If any single men are over 30 years of age, print their names and ages on a separate eligible bachelor’s report.


As a form of quality control, the Pancake Kitchen has recorded, on a Pancake file, two measurements for each of its pancakes made in a certain month: the thickness in mm (millimetres) and the diameter in cm (centimetres). Each record on the file contains two measurements for a pancake, thickness followed by diameter. 

Write a complete C++ program 

a) that will prompt the number of the pancake produce per day, the thickness in mm (millimetres) and the diameter in cm (centimetres) of each pancake,

b) to identify and display minimum and maximum for both dimensions,

c) to calculate and display the average for both the dimensions



LATEST TUTORIALS
APPROVED BY CLIENTS