Write a
Your program must contain at least the following functions: a function that calculates and returns the mean and a function that calculates the standard deviation.
Trending nowThis is a popular solution!
Chapter 6 Solutions
EP MINDTAPV2.0 FOR MALIK'S C++ PROGRAMM
- i need the answer quicklyarrow_forwardWritten in Python The run time of a particular piece of Python code is normally distributed with mean 8 second and standard deviation 1.5 seconds. Write a piece of code to compute the probability that the code take between 7 and 11 seconds to run. Your code should print out the probability, rounded to 4 decimal places.arrow_forwardWrite a Python (or R) program that asks the user to enter an integer (X), then: Determines if X is prime or not • If X is not prime, compute and print the factors of that integer X • Evaluate and print the equation Y=8X²+ 1, for X values from -5 to 5 using the range function and for looparrow_forward
- Write a program that prompts the user to input any digit then swap the position of the first and the last digit. Next, the user will be prompt to select what arithmetic operation he/she want to employ on the first and last digit based on the following choices: 1. Sum of their square 2. Product of their square root 3. Square of their product The output will display the result of the arithmetic operation followed by the digit with a swapped position of “first” and “last” digit. Then finally display the equivalent uppercase alphabet for the first digit and lowercase alphabet for the last digit respectively after swapping. Note: 1. If the last digit of the inputted digit from the user is zero, it must display that there is no equivalent alphabet for that digit. 2. If the user chooses arithmetic operation No.2, format the output to three decimal places TEST CASES: If a user inputs a digit and choose arithmetic operation No.1: Input any number: 97834 Select an arithmetic operation…arrow_forwardCode in Matlab. Urgent Do itarrow_forwardPlease write a program which asks the user for a number of days. The program then prints out the number of seconds in the amount of days given. The program should function as follows: How many days? 1 Seconds in that many days: 86400 Another example: How many days? 7 Seconds in that many days: 604800 1 2 Sample output Sample outputarrow_forward
- You are working on a ticketing system. A ticket costs $10. The office is running a discount campaign: each group of 5 people is getting a discount, which is determined by the age of the youngest person in the group. You need to create a program that takes the ages of all 5 people as input and outputs the total price of the tickets. Sample Input: 55 28 15 38 63 Sample Output: 42.5 The youngest age is 15, so the group gets a 15% discount from the total price, which is $50 - 15% = $42.5 The given code is declaring an array of 5 elements and taking them from input using a loop.arrow_forwardi need the answer quicklyarrow_forwardQ1: A, B, C are three positive numbers (A<=B<=C). Given a list of seven numbers which are made of A, B, C, A+B, B+C, A+C, and A+B+C. Please find A, B and C use given seven numbers. Sample input: 2 2 11 4 9 7 9 Sample output: 2 2 7 You could use additional test case to test your program: Input: 41 19 22 38 22 19 3 Output: 3 19 19 Input: 148385247 819365820 793320372 26045448 122339799 670980573 697026021 Output: 26045448 122339799 670980573 Input: 326552445 762589144 699462434 63126710 436036699 372909989 389679155 Output: 63126710 326552445 372909989arrow_forward
- . Write a program that generates and prints 50 random integers, each between 3 and 6. .Write a program that generates a random number, x, between 1 and 50, a random number y between 2 and 5, and computes x". .Write a program that generates a random number between 1 and 10 and prints your name that many times. .Write a program that generates a random decimal number between 1 and 10 with two decimal places of accuracy. Examples are 1.23, 3.45, 9.80, and 5.00.arrow_forwardWrite a program to calculate time one will take to climb top of statue using stair given, there are total 100 stairs and it take one second to climb one stair if one get jump of ‘N’ stair on reaching ‘N’ th stair if ‘N’ is prime number.arrow_forwardMatlabarrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT