Write a javascript program do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user whether he or she wishes to perform the operation again. If so, the loop should repeat; otherwise it should terminate
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.
Write a program that prompts following menu and
Menu
============================================
1. Add Customer record
2. Delete Customer record
3. Update Customer record
4. View all Customers
5. View Best Customer.
6. Find Customer by ID.
1. Exit.
Ask the user to enter his/her choice then perform the desired function as long as he/she wants.
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.
lat = [40.59, 40.52, 40.621, 40.519, 40.56, 41.265, 40.61, 40.806, 41.259, 41.265, 41.264, 41.264, 41.259, 41.262, 41.263]
lon = [69.532, 69.419, 69.354, 69.263, 69.478, 70.805, 69.706, 70.331, 70.815, 70.823, 70.815, 70.81, 70.824, 70.811, 70.811]The lat list indicates how far north and south Gracie the seal has traveled, and the long list represents how far east and west she has traveled. The larger the latitude value, the further north the seal was located, and for this area of the world, the larger the longitude value, the further west the seal is located.
Write a program to calculate the farthest in each direction that Gracie was located throughout her travels. Add four print statements to the lines of code above that output the following, where the number signs are replaced with the correct values from the correct list:
Farthest north = #
Farthest west = #
Farthest south = #
Farthest east = #Consider the myString class, which is having only one privately declared data item: string str; OR char str[MAX]; and publically declared constructors and required member functions. Write down a member function that subtracts one object’s string from another object’s string. Sample calling statements are given as under. myString S1, S2, S3; S1.readd(); S2.readd(); S3 = S1 – S2;
The possible denominations of currency notes are 100,50,20 and 10. The amount A to be withdrawn is given as input.
Write a program to break the amount into minimum number of bank notes.
Program to calculate the average of all score entered between 0 to 100. Use sentinel- controlled loop variable
Write a program to determine the class type of a War Ship. Given the following
scale:
Class_ID
Class_type
B or b
Battleship
Cor c
Cruiser
D or d
Destroyer
For f
Trigate
Other values of Class_ID will displayed output "Not a War Ship".
Input the Class_ID and display its Class_Type
Rahul wants to find the cube of integers. Help him to develop a program in C to display the
cube of the number up to given an integer using for loop
What is visual basic