You will continue working on the application created in Part 1. Implement the feedback provided by your lecturer on Part 1 before continuing with Part 2. Marks will be awarded for this (10%).
The application must still perform all the functions from Part 1, with the following features added: 1.
The user shall be able to choose whether to buy a vehicle.
2.
If the user selects to buy a vehicle, the user shall be required to enter the following values
for vehicle financing:
a. Model and make. b. Purchase price.
c. Total deposit.
d. Interest rate (percentage).
e. Estimated insurance premium.
3.
The software shall calculate the total monthly cost of buying the car (insurance plus loan
repayment). Assume that all cars will be repaid over a period of five years.
4. The software shall notify the user when the total expenses exceed 75% of their income,
including loan repayments.
Display the expenses to the user in descending order by value.
INTERVAL ESTIMATE
4. Suppose that the amount of time spend by working student weekly is normally distributed with the standard deviation of 25 minutes. A random sample of 125 observations is drawn and the sample mean is computed as 150 minutes. Determine the 95% confidence interval estimate of the population mean.
Write a program to overload the expression (ob1*ob2) %ob3. Where ob1, ob2 and ob3 are the objects of a class. Assume 2 number of integer data members in the class.
Directions: identify the test tool use in a certain problem
1. Hospital Infections A medical investigation claims that the average number of infections per week at a hospital in south-western Pennsylvania is 16.3. A random sample of 10 weeks had a mean number of 17.7 infections. The sample standard deviation is 1.8. Is there enough evidence to reject the investigator's claim at alpha = 0.05 ?
Type of test:
Reason/s:
In a set vein, a certain examination, 72 candidates offered Maths, 64 offered English, 62 offered French, 18 offered both Maths and English, 24 offered Maths and French, and 20 offered English and French. While 8 candidates offered all the three subjects. How many candidates were there for the examination?
For y ∈ Z, prove that 9y² + 3y − 2 is even.
If x is an odd integer, then x
2 + 3x + 5 is odd. (Use Direct Proof)
The mayflower is the Massachusetts State flower and Nova Scotia's provincial flower. It has five petals. Imagine that the petals are numbered 1, 2, 3, 4 and 5 in a clockwise order. A ladybug has landed on petal number 1. She begins to jump in a counterclockwise direction from one petal to another, around the flower. When she jumps from an odd-numbered petal, she skips a petal. When she jumps from an even-numbered petal, she jumps to the next petal. Since it is the year 2018, she has decided to make 2018 jumps. What number petal will she be when she stops jumping?
Machine 8
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
Program Requirements:
1. Define a function that will check first if the input fraction is a VALID fraction.
2. Define a function that will split a VALID fraction and return a list that consists the numerator and denominator.
3. Define a function that will accept two parameters (numerator and denominator to determine the greatest common divisor.
4. Define a function that will accept two parameters (numerator, denominator) and will return the reduced fraction.
Sample Output:
Input a fraction: 4/6
Reduced fraction is 2/3
Kaye Keith C. Ruden
Machine Problem 3
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
Program Requirements:
1. Define a function that will check first if the input fraction is a VALID fraction.
2. Define a function that will split a VALID fraction and return a list that consists the numerator and denominator.
3. Define a function that will accept two parameters (numerator and denominator to determine the greatest common divisor.
4. Define a function that will accept two parameters (numerator, denominator) and will return the reduced fraction.
Sample Output:
Input a fraction? 5/0
Invalid fraction