The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
1411319 Programming Languages and Paradigms
Program 1
first part usingCodeBlocks for c++ and second part for Python
College of SciencesDepartment of Computer Science1411319“ :Programming Languages and Paradigms”Program 1You are required to write a simple C++ or Java program that adheres to the following:Program SpeciFcaTonsYour program plays a game as follows (called the numbers’ game):1. Prompt the user for a 3 digit number, where the Frst and the last digit must di±er by at least 2.2. Print out the user number and its reverse.3. Print out the di±erence between the entered number and the reversed number. This should always be aposi²ve number.4. Print the reverse of the di±erence.5. Print the sum of the di±erence and the reversed di±erence. It should be 1089 for any 3 digit number.The program should validate the data and if incorrect then asks the user to try again. If three consecu±veerrors occurs, the program terminates with an appropriate message.DeliverablesYour source code solu²on (comments about the project).P.S. The next stage phase in this project is to implement the same problem in Python.GOOD LUCK1
Attachments:
-----------