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
What is the magnitude of the force that a 25μC-charge exerts on a 10μC charge {\rm 8.5\, cm}8.5cm away? (Take k=9×109 N.m2/C2)
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
Based on the first stanza of poem , how do you think the speaker feels about the person he is addressing?is this feeling different from how he felt in the past? Explain.
A tesla car needs to charge its 350-volt model and must send about 715 amps through its cabling to the battery. What is the rate of electron flow through the cable for the current involved?
An aluminum wire with a diameter of 1.02 mm and volume of 1.57x10-5 m3, has a battery attached to it with an emf of 30 volts. Find (a) the resistance of the wire and (b) the corresponding current.
A tesla car needs to charge its 350-volt model and must send about 715 amps through its cabling to the battery. What is the rate of electron flow through the cable for the current involved?
A cone made of paper is used to drink water from. It is made from circular paper with a radius of 12 cm, with a sector of 120° cut out. Calculate the area of paper needed to make the cone cup.
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
The average pre-school cost for tuition fees last year was ₱17,250. The following tear, 20 institutions had a mean of ₱16,150 and a standard deviation of ₱2,250. Is there sufficient evidence at a = 0.10 level of significance to conclude that the mean cost has increased?