Write a program which manipulates fractions

Assignment Help Programming Languages
Reference no: EM13765203

Write a program which manipulates fractions.

It should get two fractions from the user by inputing two numerators and two denumerators (integers) from 0 to 999 and then have the user select an operation from addition, subtraction, multiplication, and division, check for input errors (<0 or >999) and for division by 0 and gives appropriate error messages, terminating in case of error.

It then displays the two fractions in fraction form, the operation between them and the result of the operation in fraction form and the result of the division.

Take care of the fraction line!

Example:

2 3 17

- + - = -- = 1.42

3 4 12

The program should then give the option to the user to repeat the process and enter a new pair of fractions or terminate the program

Reference no: EM13765203

Questions Cloud

Survivability and cyberwarfare as it effects the world : Define Global Computer Connectivity, Survivability and Cyberwarfare as it effects the world, provide little history, how does it effect cyberterrorism, advantages and disadvantages of those connected and those not connected, is it going away soon
Business ethics and moral relativism issues : What does the court suggest that Metro-North should have done in this case that would have satisfied the duty?
Importance of human recourse management : Analyses the importance of Human Recourse Management ( HRM) in improving employees performance
Assume that the current yield to maturity on the bond : Compute the price of a $5,000 par value bond with a coupon rate of 7.5% (semi-annual payments) and 19 years remaining to maturity. Assume that the current yield to maturity on the bond is 8.60%.Round all dollar answers to 2 decimal places
Write a program which manipulates fractions : Write a program which manipulates fractions. It should get two fractions from the user by inputing two numerators and two denumerators (integers) from 0 to 999 and then have the user select an operation from addition, subtraction, multiplication, ..
An umbrella liability policy : An umbrella liability policy:
Discuss the chain of command and how problems can arise : Write a 500-600 word, 2 page paper, identify and discuss the chain of command and how problems can arise within the organizational structure
Concern about the financial viability of the current insurer : Duration of the need, Concern about the financial viability of the current insurer, Capacity of the policyholder to fund premiums, Cost of the premium compared to alternatives
Calculate the weighted-average contribution margin : Calculate the weighted-average contribution margin. Determine Delectable's monthly breakeven point in dozens of plain donuts and custard-filled donuts. Prove your answer by preparing a summary contribution.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd