object oriented programming 9

Would you like us to handle your paper? Use our company for better grades and meet your deadlines.

Order a Similar Paper Order a Different Paper

A skill-testing question, typically an exercise in arithmetic, is attached to many sweepstakes and contests in Canada. (Though not important for this assignment, this is used to work around a Canadian law making it illegal to distribute money or prizes for games of luck. The skill-testing question adds an element of skill to the game, which makes it legal.) A skill-testing question typically looks like the following: What is the answer to 4 + 2 × (8 − 2)/3?

Write a program that solves any skill-testing question in the form 𝑎 + 𝑏 × (𝑐 − 𝑑)/𝑒 for any positive integers 𝑎, 𝑏, 𝑐, 𝑑, and 𝑒. The user should be presented a message on the console to enter the values of 𝑎, 𝑏, 𝑐, 𝑑, and 𝑒, one at a time, and then output the answer of the skill-testing question to the console.

Submit your source code in a file named SkillTest.java!

Sample input and output (inputs preceded by >):

Skill-testing question: a + b * (c – d) / e Please enter a:


Please enter b:


Please enter c:


Please enter d:


Please enter e:


The answer to the skill-testing question is 8.0

Additional practice problems from the textbook: 1.8, 1.11, 2.4, 2.5, 2.6, 2.12, 2.17

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15

Order a Similar Paper Order a Different Paper