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: | 327 Weeks Ago, 6 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
How do I create a system that generates 7 questions using 3 different types of arithmetic expressions of operations plus, minus and times randomly?
Â
CSCI114 - Lab 6File Name: YourName_Lab_6.cppYou are invited by the Ministry of Education to design a system to test the skill of students on doing somesimple arithmetic. The system generates at least 5 and not more than 10 questions; and displays threedifferent types of arithmetic expressions of operations plus, minus and times randomly. The system marksand displays the scores at the end of the test and also some relevant messages.Upon running the program, you will see the following interaction:You can see in the above screen, the system generates 7 questions, and student who enters to the systemprovides the answers to each of the questions. The system marks the questions and displays the score atthe end of the session.The system print out the following messages according to marksLess than 50% –You failed the test. Please work hard50% and above and less than 80% –You passes the test. Please improve it80% and above and less than 100% –Well done, keep it up.100% -Excellent.In your design, you should have the following functions;// This function generates and return two non-zero single digits integervoid generate2Digits (int&, int&);// This function generates and returns one of the three operations +, - or *void generateOperation (char&);
Attachments:
-----------