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.
5. Display the expenses to the user in descending order by value.
Non-functional requirements:
1. You are required to use internationally acceptable coding standards. Include comprehensive comments explaining variable names, methods, and the logic ofprogramming code.
2. You are required to use classes and inheritance.
3. You must use a generic collection to store the expenses and no longer an array.
4. You must use a delegate to notify the user when expenses exceed 75% of their income.
Create a Python function that takes a list of n integers and returns the largest number among the n integers.
I need the code to have an output stated above.
Elle Joy Vasquez
Preliminary Test 04
Create a Python function that takes a list of n integers and returns the largest number among the n integers.
Which of the following is NOT a Java Primitive type?
1 point
byte
boolean
complex
int
Elle Joy Vasquez
Preliminary Test 03
Create a Python function that takes a list and returns a new list with unique elements of the first list.
Sample List: [1,2,3,3,3,3,4,5]
Unique List: [1, 2, 3, 4, 5]
Write a program to print the following,
Input
The first line contains a string representing a scrambled word.
The second line contains some space-separated strings representing words guessed by the player.
Output
The output should be a single integer of the final score.
Explanation
scramble word = "tacren"
guessed words = ["trance", "recant"]
Since "trance" and "recant" both have length 6 then you score 54 pts each.
So the output is 108.
Sample Input1
tacren
trance recant
Sample Output1
108
Elle Joy Vasquez
Preliminary Test 02
Create Python function that checks whether a passed string is PALINDROME or NOT.
Note: A palindrome is a word, phrase, or sequence that reads the same backward as forward, e.g., madam or nurses run.
Elle Joy Vasquez
Preliminary Test 01
Create a Python function that takes a number as a parameter and check the number is PRIME or NOT.
Note: A prime number (or a prime) is a natural number greater than 1 and that has no positive divisors other than 1 and itself.
Clas calld Author is desiged tomodel book author.Contan:3private intance varable:name(String),email(String),and gender(char of either 'm' or 'f');An__init__() toinitalize the nme,email,gendr with given value Getters/Setters: getName(),getEmail(),setEmail(),and getGender()(There areno seter for nameandgender, asthese atribute canotbe changd.)A__str__() metodthat return prntable string oftht objct with folowing formt:
"Author[name=?,email=?,gender=?]"
e.g., "Author[name=Tan Ah Teck,email=ahTeck@somewhere.com,gender=m]". Write the Author clas.Writetest driver code totest all public functon e.g.,
ahTeck=Author("Tan Ah Teck", "ahteck@nowhere.com", 'm')#Test the constructor
print(ahTeck) # Test __str__()
ahTeck.setEmail("paulTan@nowhere.com") #Test setter
print("Name is: ", ahTeck.getName())#Test getter
print("Email is: ", ahTeck.getEmail())#Test getter
print("Gender is: ",ahTeck.getGender())#Test getter.
The Rectangular Rule A. The rectangular rule (also called the midpoint rule) is perhaps the simplest of the three methods for estimating an integral. i. Integrate over an interval a ≤ x ≤ b. ii. Divide this interval up into n equal subintervals of length h = (b − a)/n. iii.Approximate f in each subinterval by f(x*j ), where x*j is the midpoint of the subinterval. iv. Area of each rectangle: f(x*j)h, f(x*j)h,. . . , f(x*n)h. The approximation on the RHS becomes more accurate as more rectangles are used. In fact, You are required to: v. write pseudocode algorithm to determine the integral of a function between two specified points using the rectangular rule. vi. write C++ computer programs to determine the integral of a function between two specified points using the rectangular rule.