Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

You are requested to write a very simple calculator. Your calculator should be able to handle the five basic mathematic operations – add, subtract, multiply, divide and modulus – on two input values. Your program should have the following structure: • Ask the user to enter two float variables named var1 and var2 • Ask the user to enter a character variable named operation to represent the operation to be performed on the two variables. • Perform the appropriate operation by using if-statements • The output must be given in fixed-point notation with two digits after the decimal point.


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.

Get all the esport videos that crossed one lakh views and were released between 2018 and 2020.


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.


In this program, you will develop a calendar application. Implement the following functionality:

1. Calculate difference between two dates - Take user input for both dates & calculate difference between them in months & days as well as weeks & days. For example, if the user enters x & y, display difference as: 39 months, 3 days, OR 78 weeks, 3 days

2. Calculate a future date - Take user input for start date & for number of weeks, months or days to add to it. The user can type “3 months”, “43 weeks” etc. & the program should interpret the text input correctly & add appropriate number of days to the start date. Display output in the form:

<user input> from the start date <user input> is <day of the week>, <day> <month>

<year>.


Use overloading of subtraction operator to implement data difference. Implement above member functions in at least a Date & Calendar class. The program should keep displaying options until user chooses to exit.


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

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 1:


Input a fraction: 4/6


Reduced fraction is 2/3

Make a class named Fruit with a data member to calculate the number of fruits in a basket. Create twoother class named Apples and Mangoes to calculate the number of apples and mangoes in the basket.Print the number of fruits of each type and the total number of fruits in the basket. c#


Write a program in c++ to implement the stack push 5 values (10,20,30,40,50,)in the stack them pops value and display the remaining stack value.


LATEST TUTORIALS
APPROVED BY CLIENTS