Question: Code for c++ Code a function to roll a die 100 times and count the number of times it landed on 1, 2, 3, 4,
Code a function to roll a die 100 times and count the number of times it landed on 1, 2, 3, 4, 5, and 6. Print out the answers in the function. The declaration of the function is: void rollDie 0: Write a function that calculates the discriminant of a polynomial b2- 4ac. This function should return the answer to main. The declaration of the function is: double discriminant (double a, double b, double c); Write a function to verify that age is between 21 and 65, inclusive. The declaration of the function is: bool validAge( int age)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
