Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions