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
Please see attachment for a Java Question. Thank you
Â
Assignment #21 Design and implement an application that reads an integer value andprints out the sum of all EVEN integers between 2 and its input value,inclusive. Print an error message if the input value is less than 2.Prompt accordingly.2)Computers are playing an increasing role in education.Write aprogram that will help elementary school children learn multiplication.Use the Random class in the java.util package to produce two positiveone-digit integers.The format to generatingthis number is as follows:import java.util.* ;/***in your progam ***/RandommyRandomNumber = new Random();int myOneDigitNumber = Math.abs( myRandomNumber.nextInt() % 10 );The Math class in the java.lang package is also used to convert thenumber to an absolute value.The modulus is used to get a single digitnumber.Use this one digit number produced to type the question as follows:How much is 6 times 7?The student then types the answer.Your program checks the student'sanswer.If it is correct, print "Very Good!" and then ask anothermultiplication question.If the answeris wrong, print "No.Please try again." and then let the student trythe same question again repeatedly until the student finally gets itright.Enter a -1 to exit program.
Attachments:
-----------