Write a program that will help an elementary school student

Assignment Help Programming Languages
Reference no: EM131322338

Write a program that will help an elementary school student learn multiplication. Use rand to produce two positive one-digit integers. It should then type a question such as: How much is 6 times 7? The student then types the answer. Your program checks the student's answer. If it is correct, print "Very good!", and then ask another multiplication question. If the answer is wrong, print "No. Please try again." and then let the student try the same question again repeatedly until the student finally gets it right. Add the various comments are printed for each correct answer and each incorrect answer as follows: Responses to a correct answer Very good! Excellent! Nice work! Keep up the good work! Responses to an incorrect answer No. Please try again. Wrong. Try once more. Don't give up! No. Keep trying. Use the random number generator to choose a number from 1 to 4 to select an appropriate response to each answer. Use a switch structure to issue the responses.

Reference no: EM131322338

Questions Cloud

Demonstrate the role played by behavioral health in industry : What conclusions can you draw from your research that would demonstrate the role played by behavioral health in the healthcare industry
Write a program that reads input as a stream of characters : Write a program that reads input as a stream of characters until encountering EOF. Have the program report the number of uppercase characters, the number of lowercase characters, and the number of other characters read.
Make an investment : You want to make an investment that will yield a lump sum of $43,665 in 4 years. You will invest at a nominal rate of 8%. How much do you need to invest today to reach the above future value?
Create a script to accompany the presentation : Crisis management and crisis communications are specialized business disciplines. In times of crisis, companies can act in a number of ways; from ignoring the situation and hoping it passes in the next news cycle to aggressively defending itself a..
Write a program that will help an elementary school student : Write a program that will help an elementary school student learn multiplication. Use rand to produce two positive one-digit integers. It should then type a question such as: How much is 6 times 7?
What will be the value in your account at the end of year : Assume you are to receive a 10-year annuity with annual payments of $ 380 . The first payment will be received today (that is, at t = 0) and the last payment will be received at the end of Year 9 (that is, at t = 9). You will invest each payment in a..
What is the holding period return : An investor purchased a bond for $980, received $75 in interest, and then sold the bond for $950 after holding it for seven months. What is the holding period return?
Describe the asam patient placement criteria for treatment : Describe the ASAM patient placement criteria for the treatment of substance-related disorders. Describe the three selected types of substance abuse assessments that you might use. Be sure that your choices represent three different age populations ..
What is the dividend yield for each of these four stocks : Consider four different stocks, all of which have a required return of 18.75 percent and a most recent dividend of $3.20 per share. Stocks W, X, and Y are expected to maintain constant growth rates in dividends for the foreseeable future of 10 percen..

Reviews

Write a Review

Programming Languages Questions & Answers

  Determines which patients have a high systolic pressure

Application determines which patients have a high systolic pressure and provides a process to contact them for follow up consultation.

  What is well-formedness and validity in the context of xml?

What is well-formedness and validity in the context of XML?

  Why is lisp dominating the artificial intelligence

What is the difference between functional and imperative programming language?

  Write menu driven program that make coffee shop operational

Jason has opened a coffee shop at the beach and sells coffee in three sizes: small (9oz) medium (12oz) and large (15oz). Small cost is $1.75 medium costs $1.90 and large costs $2.00. Write a menu driven program that will make the coffee shop opera..

  Compute average of values contained in integer

Compute the average (as a double) of values contained in integer variables num1, num2, num3 and allot that average to double variable avg.

  Taxpayer to contribute to a roth ira

Program- The IRS allows a taxpayer to contribute to a ROTH IRA, if his/her income is not over a specified limit and his/her filing status allows contributions

  How to produce javascript code

Using the prompt and alert functions, invite the user to input 5 marks (integers) in the range 0-100.

  Pseudocode that will generate reports from data files

Develop a mock-up of each of these reports, and get customer approval of these mock-ups. Write pseudo code that will generate these reports from the data files, using a CASE tool;

  Interactive program that plays the game hangman

Write an interactive program that plays the game Hangman. Use the random integer function to randomly select the word to guess out of the file provided. The player must guess the letters belonging to the word.

  Explain the costs involved in the creation of the system

Explain the costs involved in the creation of the system. Describe the ongoing maintenance that will be required. Provide a workflow diagram in Visio or equivalent software to illustrate how the system will work.

  Explain the principle of programming to an interface

In your own words, explain the principle of programming to an interface. This explanation is meant to help develop your peers' understanding and should be written in as simple terms as possible

  Write an application named useinsurance

Write an application named UseInsurance that prompts the user for the type of insurance to be displayed, and then create the appropriate object.

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