Make a program that will input minutes and convert it into seconds. Your program will be terminated when you input zero in the minutes.
Make a program that will input Dollar currency, convert it into peso.
Peso= dollar currency*50.00 pesos.
Display the peso equivalent.
Your program will be terminated if the inputted Dollar currency = 0.
A weather station validates the rain into its critical level by its raindrops fell. Make program that will input number of raindrops fell, Check if raindrops fell is equal to 10,000 then display “CRITICAL RAIN”. Your program will be terminated if you input zero in the raindrops fell.
Write a Java program to create a new string taking first and last characters from two given strings. If the length of either string is 0 use "#" for missing character.
You are required to design a Car class which has following attributes
String brand;
Double price;
Double quantity;
String Model;
Boolean available;
1. Provide default & Parameterized constructors.
2. Provide getters & setters for data members.
3. Provide a toString() method to print values.
Now create an ArrayList of Cars in a class ShowRoom having name and address as attributes as well, Provide appropriate methods, store values in array List (take values form user).
Provide a buy method which will ask user to buy a Car by providing its name, check that it is present or not then ask for quantity and create bill for user.
After that you have to print the following
1. Add Car
2. Delete Car
3. Buy a Car.
4. Display All cars also display
· Car of brand “Audi”;
· Car with name starting with ‘L’.
· Car name end with ‘n’.
· Display only last three and first three letters of Showroom name.
Define a function that will be given a pointer pointing to the first element of the linked list and two strings named first_string and second_string respectively. The function must search for the first_string in the list. If the list does not contain such a string, the function leaves the list unchanged. Otherwise, the function must add a new element in the linked list with the value of second_string after the first occurrence of the element containing the first_string. The function prototype should look like void add_after(node* , string , string)
You are required to design a Car class which has following attributes
String brand;
Double price;
Double quantity;
String Model;
Boolean available;
1. Provide default & Parameterized constructors.
2. Provide getters & setters for data members.
3. Provide a toString() method to print values.
Now create an ArrayList of Cars in a class ShowRoom having name and address as attributes as well, Provide appropriate methods, store values in array List (take values form user).
Provide a buy method which will ask user to buy a Car by providing its name, check that it is present or not then ask for quantity and create bill for user.
After that you have to print the following
1. Add Car
2. Delete Car
3. Buy a Car.
4. Display All cars also display
· Car of brand “Audi”;
· Car with name starting with ‘L’.
· Car name end with ‘n’.
· Display only last three and first three letters of Showroom name.
Social media using tools/platforms like Twitter, Skype, Telegram, WhatsApp, LinkedIn, Imo, etc is like a two-edged sword: it creates good and evil. Discuss this statement.
create an ArrayList of Cars in a class ShowRoom having name and address as attributes as well, Provide appropriate methods, store values in array List (take values form user).
Provide a buy method which will ask user to buy a Car by providing its name, check that it is present or not then ask for quantity and create bill for user.
After that you have to print the following
1. Add Car
2. Delete Car
3. Buy a Car.
4. Display All cars also display
· Car of brand “Audi”;
· Car with name starting with ‘L’.
· Car name end with ‘n’.
· Display only last three and first three letters of Showroom name.
In the Store class, make an ArrayList of customers, store name, and address implement methods
public void addSale(Customer c) that will add customers to the arraylist.
public void RemoveCustomer(int id);
public void UpdateCustomerRecord(int Id);
public displayAll();
public String nameOfBestCustomer() to record the sale and return the name of the customer with the largest sale.
public ArrayList nameOfBestCustomers(int topN)
so that it displays the top customers, that is, the topN customers with the largest sales, where topN is a value that the user of the program supplies.