Write functions that do the following:
Sum the elements of a ma (two-dimensional array) of any match.
Sum the elements on the even/odd rows of a matrix
Find the maximum/minimum value of a matrix.
Find the maximum value on the cth column of the matrix
Write a main program that uses these functions in two cases:
The input matrix is static with the given elements
The input matrix is dynamic with the number of rows, columns and element values entered from the keyboard.Make a program that will input type of accommodation room. A-for first class, B-for second class. Charge as follows : first class=800.00 and second class = 650.00. Your program will be terminated if you input C in the accommodation room type.
A weather station validates the rain into its critical level by its raindrops fell. Make program
that will input number of raindrops fell, Check if raindrops fell is equal to 10,000 then display
“CRITICAL RAIN”. Your program will be terminated if you input zero in the raindrops fell.
A small store only sells Coke 1.5 liters and San Miguel 1 liter, Make a program that will input
type of item and number of item, C-for Coke with a price of 65.00 and S- for San Miguel with
a price of 120.00. Compute and display the total amount, and your program will be
terminated if you input T in the type of item.
Make a program that will input type of network provider. A – for Smart and Display “SMART
USER”. B- for Globe Display “GLOBE USER” and C-for Sun Display “SUN USER”. Your program
will be terminated when you input Z.
Make a program that will input age,
Check… age<=20 Display “Young”
Age>=21 Display “Adult”
Your program will be terminated if you input zero in age.
The factorial of an integer n, written n!, is simply the product of all the integers from 1 to n. For
example 5! = 1*2*3*4*5 = 120. Write a program to calculate the factorial of integers from 1 to n
where n is taken from the user. What is the maximum value of factorial that you can
calculate for int data type? Is there any difference between the maximum value of factorial for
unsigned and signed int?
Given a string, an integer position, and an integer length, all on separate lines, replace choiceLen number of characters with "(removed)" starting at that position in the string. Then, output the result.
Ex: If the input is:
Fuzzy bear
3
4
the output is:
Fuz(removed)ear
Create a program that will ask a user to enter a number. Depending on the value that the user has entered the program will do the following:
*If the user has entered the number 0, the program will display the first 50 multiples of 4.
*If the user has entered a negative number, the program will display all odd numbers between 20 and 80.
*If the user has entered a number between 1 and 10 (inclusive of the 2), the program will dsiplay all even numbers from 1 to 500.
*If the user has entered any other number, the program will display the world "Hello" n number of times where n's value will depend on the number the user has entered.
Make a program that will input type of accommodation room. A-for first class, B-for second
class. Charge as follows : first class=800.00 and second class = 650.00. Your program will be
terminated if you input C in the accommodation room type.