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

  Expression whose value is distance between two point

a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two point represented by p1 and p2.

  Write program to accept a list of student-s name

Write a program that will accepts a list of student's name, individual scores for quiz1, quiz2 and quiz3. Your program should then compute for the average of 3 quizzes.

  Write a main program that first reads all available meals

Write a main program that first reads all available meals from a file called menu.txt. Write a function called create_event. This function is be called if a customer of the company wants to book an event.

  Provide proper indentation and programming style

Provide proper documentation as required in the PAs, Provide proper indentation & programming style similar to the examples from the textbook, videos & PAs

  Application where you ask the user to input the price

Write an application where you ask the user to input the price per letter (PPL), and then ask the user to input the sentence they want printed. The application should then calculate the number of letters and give the user the total cost in the follow..

  Write program to compute and outputs the average gpa

Write a program that computes and outputs the average GPA for both female and male students. Format your results to two decimal places. Your program should use the functions.

  Can an until loop sometimes never execute

Does the following script print to standard output, a list of numbers equal to the number passed on the command line?

  Javascript function to verify fields if cookie is added

JavaScript function has verified that all the required fields have been filled, cookie is added to user's computer. If same user tries to fill out form second time.

  Deploy several visual basic.net applications

Your supervisor has asked you to develop a plan to deploy several Visual Basic.NET applications to users in your company.

  Perform some analysis of the age and weight relationships

In this project you will combine the use of arrays and objects to perform some analysis of the age and weight relationships among a group of people. You have been contracted to write a program into which data about people, including their ages and..

  Write a program that generates all the factors of a number

Write a program that generates all the factors of a number entered by the user. For instance, the number 12 has the factors 2 * 2 * 3.

  Create new program which prompts user for numbers

Create a new program whihc prompts a user for numbers and determines total revenue using following formula: Total Revenue = Price * Quantity.

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