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

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:


Input a fraction?: 5/0


Invalid fraction

Make a program that allows the user to select the operation he or she wishes to perform. Furthermore, your program will keep asking the user to pick until he or she selects exit to stop the execution.

A customer in a store is purchasing five items. Design a pseudo code argorithm that asks for the price of each item, and then displays the subtotal of the sale, the amount of sales tax, and the total. Assume sales tax is 6%

The sales manager at ITI Hub asked you to design and implement a windows application that will display the total sales made in the three regions in South Africa


You are required to implement basic social media portal where user can create his profile. You can provide user the options to create new profile, update profile and delete profile as well. Create class Profile having necessary information of user ( ID, Name, gender, age, email, interest, Date of birth) provide appropriate methods. Next create class Portal which uses Node of Profile Class to handle profiles. Next provide methods to:

1) InsertProfile (ID, Name, gender, age, email, interest, Date of birth)// adds new profile to the list.

2) UpdateProfile (int id) which helps user update his profile information)

3) DeleteProfile(string name) delete a particular profile form list

4) searchProfile(string name)

5) Display ()// display all values.

In main create a menu to show following options to user

1) Add new Profile

2) Update Profile ( which helps user update his profile information)

3) Delete a Profile

4) Search Profile

5) Display All

6) Exit.

The program runs until user wants to exit.


Write a class named Mobile that holds data about a mobile in a retail store. The class should have the following member variables:

• Name/brand. A string that holds name of the brand of phone.

• unitsOnHand. An int that holds the number of units currently in inventory.

• price. A double that holds the retail price.

Write a constructor that accepts arguments for each member variable, appropriate functions that store values in these member variables, and accessor functions that return the values in these member variables.

 Once you have written the class,

Write another class Store (link list) having Mobile as a node then provide function to insert new mobile in list and to Delete a mobile and to display all mobiles.

Write a main program that shows all the functionality.

Note: you have to implement all scenarios (insert and delete at start, end, in between).



searchBook( )

for a searching book by name or author. It asks the user to enter the

type of search he/she wants i.e. by Book name or by author name.



Design a C++ program that takes character input from user and checks whether that letter is vowel alphabet or not using if...else statement


The program displays Five members of the band. The codes for five-star band members are John Lennon, Angus Young, Freddie Mercury, Debbie Harry, and Kurt Cobain are JL, AY, FM, DH, KC respectively.  


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS