Write a temperature conversion GUI that converts from farenheit to celsuis
Create a super class called car.
a. The car class has the following fields and methods.
- Intspeed:
-doubleregularPrice:
- stringcolor: doublegelSale Price()
b. Creote a sub class of car class and name It as pickup. The following fields and methods.
- intweight:
- doublegetSidePrice()
If weight is greater than 2000. 15% discount otherwise 25%
c. Create a sub class and name it as Nissan. The follwing fields and methods.
- Intyear;
-intmanufacturerDiscount:
-doublegetsdePrice()
From the sale price computed from car class. subtract the manufacturer discount
d. Create a sub class and name it is methods
-. Intlength:
-doublegetSalePrice()
If length is less than 20 feet. 10% discount. Otherwise, 15% discount.
e. Create a MyShop class which contains the main method. Perform the following within the main() method.
-Create an instance of Toyota class and initialize all the fields with appropriate values. Use super (...)method in the constructor for initializing the fields of the super class.
-Create two instances of the Nissan class and initialize all the fields with appropriate values. Use super(...) method in the constructor for initializing the fields of the super class.
-Create an instance of car class and initialize all the fields with appropriate values. Display the sale prices of all instance.
Write a JAVA Program that would: Allow user to enter the size and element of a string array. Display the longest string found in the array.
Write a JAVA Program that would: Allow user to enter the size and element of a string array. Then ask the user to give a string and display whether that string is present in array or not. (Letter case doesn’t matter)
create a program in java:
You have 8 circles of equal size and you want to pack them inside a square. You want to minimize the size of the square. The following figure illustrates the minimum way of packing 8 circles inside a square:
Given the radius, r, find the area of the minimum square into which 8 circles of that radius can be packed.
The Input:
A positive real number (between 0.001 and 1000, inclusive) in a single line denoting the radius, r.
The Output:
For each test case, output the area of the minimum square where 8 circles of radius r can be packed. Print 5 digits after the decimal.
Your output is considered correct if it is within ±0.00001 of the correct output.
Write a Java program to find a certain character in a string and replace it with a new character.
Allow user to enter a string, find character and the replace character.
Display the new string.
To do list
This project will record an event which will be described by Title, Description, Date, Time. The events will be stored and retrieved from a text file called events.txt. The program should read a file at a start and should store and delete new and already present events from text file. This program should find events with respect to date as well as name. All search event description should be displayed.
To do list
This project will record an event which will be described by Title, Description, Date, Time. The events will be stored and retrieved from a text file called events.txt. The program should read a file at a start and should store and delete new and already present events from text file. This program should find events with respect to date as well as name. All search event description should be displayed.
When should you consider using recursive algorithms when writing a program?
Discuss in terms of advantages and disadvantages
Array Write a Java program to find frequency of each character in a given string. Also display the length and the most frequent among the characters