Explain the rand() in detail with example

Assignment Help C/C++ Programming
Reference no: EM13938860

We have to use rand() to get 2 numbers in random each time and ask student to find the correct solution.. First we start with numbers 1 to 6.If we get 4 and 5 then the program will ask "how much is 4 times 5 4x5 = " Then the student will be able to give the answer, If it is correct then it will be typped on screen "Correct" othewise "wrong" The student would be able to repeat it for 10 times until he finds the correct answer, If he fails then it will appeared on screen "You have to remember that 4 times 5 is 20!"

i)We have to use rand() also for 4 choices when the student give a correct answer "Very good, Congratulation, Bravo, Correct"
Also we use rand() for wrong answer "wrong, try again, give another answer, surly you know it try again"

ii) if the percentage of the correct answers is 75% of the 10 questions, then it will take us to the next level from 7 to 9. it continues to next level from 10 to 60 and thne next level from 70 to 90.

iii) The student should be able to test himself in addition, substraction, multiplication, divission giving integer (we use possitive numbers)

Reference no: EM13938860

Questions Cloud

Negotiate to undertake a competency assessment : Write a discussion paper identifying strategies used to assess knowledge and competence in the workplace and the principles and challenges associated with giving feedback to staff after assessments.
Determinant of a person satisfaction at work : What do you think is the role of money as a determinant of a person's satisfaction at work and with life in general? Should organizations worry about this issue? Explain
Determine the amount of sales revenue mccarty : Determine the amount of sales revenue McCarty will report on the first 2012 quarterly pro forma income statement.
Determine whether each item is included as part of the cost : Determine whether each item is included as part of the cost of property, plant, and equipment. For any item excluded from the cost of property, plant, and equipment, explain why the item was excluded.
Explain the rand() in detail with example : The student should be able to test himself in addition, substraction, multiplication, divission giving integer (we use possitive numbers)
What is the current share price : Bayou Okra Farms just paid a dividend of $2.65 on its stock. The growth rate in dividends is expected to be a constant 4.5 percent per year indefinitely. Investors require a return of 15 percent for the first three years, a return of 13 percent for t..
Compute the cost of the new dry cleaning machine : Compute the cost of the new dry cleaning machine. Explain why you excluded any expenditures from the cost of the dry cleaning machine.
Calculating irr : Calculating IRR: Compute the Internal rate of return for the cash flow of the following two projects:
For each of your issues, provide an example : For each of your issues, provide an example of a company or industry where these issues could be present.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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