Write a Python Program to Solve Quadratic Equation
This program computes roots of a quadratic equation when coefficients a, b and c are known.
Use if statement and Write a program that computes and assesses the tuition fee of the
students in one trimester, based on the given mode of payment below:
Plan (key) Discount (-) or Interest (+)
Cash (1). 10% discount
Two-Installment (2) 5% discount
Three-Installment(3) 10% interest
The target-user must use the key in selecting or choosing the mode of payment. The first input
data is the tuition fee, and the second input data is the mode of payment.
A bag of cookies holds 40 cookies. The calorie information on the bag claims that the bag contains 300 calories. Write a program that asks the user to input that how many cookies he or she actually ate and then report how many calories were consumed
Define a class called vehicle that will store two items of information about a vehicle: The fuel capacity and the fuel consumption in kilometers per litre and prototype of four functions a default constructor and a parameterized constructor that initializes the Taxi fuel capacity to 20 litres and Taxi consumption to 10 kpl , a destructor and a friend function that uses the values from the constructors to calculates the taxi range (the maximum distance it would travel if its fuel tank is full without refueling) NB. Show only the prototype of the function in the class
write a class with name “STRING”.Assume only studio.h library is included and it is not possible to include any other library. In PRIVATE section of class there will be a character array (lets say S) and also it is possible to locate functions to this section that you want to use but not asked. In public section there will be five functions.
out of 500 bags of feeds. a supervisor decide to pick 70 bags random as a sample in order to ascertain the quality apply statistical tool assurance. the weight of each bag must be 10kg each. Apply appropriate statistical tool for the quality assurance of the feed
Retail store has preferred Customer plan. The amount of customer discount is determined by amount of customercumulative purchases in store. When preferred customer spends $500, he gets 5% discount on future purchases. When preferred customer spends $1,000, he gets 6% discount on future purchases. When preferred customer spends $1,500, he gets 7% discount on future purchases. When preferred customer spends $2,000, he gets 10% discount on all future purchases. Design class named PreferredCustomer which is derived from CustomerData class. PreferredCustomer class have:purchasesAmount (a double) ,discountLevel (a double).The purchasesAmount variable holds total of customer’s purchases to date. The discountLevel variable should be set to correct discount percentage, according to store’s preferred customer plan. Also calculate discount Amount based on discount. Now in Main class create ArrayList and add customers into it and display the customers details, purchase of each customer along with discount he gets.
Solution in java ONLY plz... FULL question can be found on the following link http://ntci.on.ca/compsci/java/ch5/5_9.html ---> question 14
Thanks, appreciate it
I cannot put full question here as its too long... so full question is on the link
----------------------------------------------------------------------------------
Write a program that prints portions of Pascal's triangle. The program should repeatedly ask the user to supply the number of rows in the triangle, terminating when the user supplies the value zero. In printing a triangle, the first value in the last row should appear in the first column and each preceding row should start printing three spaces further right........
Write a program to initialize 4 integer numbers. Calculate Sum and Print it.
Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines.
Now add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line (provided below) to print a total of twenty-five lines. The last line of your program should call first nine_lines and then the clear_screen function.
The function three_lines and new_line are defined below so that you can see nested function calls. Also, to make counting “blank” lines visually easier, the print command inside new_line will print a dot at the beginning of the line: