Answered step by step
Verified Expert Solution
Question
1 Approved Answer
7:38 PM Lab assignment 5.docx 1. Perform a multiplication test as in the lecture notes. The program should give the students 10 questions with random
7:38 PM Lab assignment 5.docx 1. Perform a multiplication test as in the lecture notes. The program should give the students 10 questions with random numbers, and estimate the scores for the test. 2. Write a function that takes three arguments: a character and two integers. The character is to be printed The first integer specifies the number of times that the character is to be printed on a line, and the second integer specifies the number of lines that are to be printed. Write a program that makes use of this function. 3. Write a program that reads a string from the keyboard. Write a function to take the string as argument, go through the string, and return how many alphabet is there in the string. For example, if the string is "Hello, world!", the alphabet number is 10 4. Write a function that returns the difference between the largest and smallest elements of an array-of- double. Test the function in a simple program. 5. Write a program that declares an array of 10 elements and initializes it to some values of your choice. Have the program print the values, double all the values, and then display the new values. Write a function to do the displaying and a second function to do the doubling. Have the functions take the array name and the number of elements as arguments
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started