Question: Question 10 15 Points Write a C++ program that uses nested for-loops to display a shape of characters (s... examples). The program should ask the

 Question 10 15 Points Write a C++ program that uses nested

for-loops to display a shape of characters (s... examples). The program should

ask the user to enter an integer n representing the number of

rows/columns in a square. The number n should be positive and not

less than 5. If the user input for n is invalid, then

display an appropriate message and exit the program. The program should display

a square of size n filled with different characters. The second row

and row before last should be filled with the character (#). All

Question 10 15 Points Write a C++ program that uses nested for-loops to display a shape of characters (s... examples). The program should ask the user to enter an integer n representing the number of rows/columns in a square. The number n should be positive and not less than 5. If the user input for n is invalid, then display an appropriate message and exit the program. The program should display a square of size n filled with different characters. The second row and row before last should be filled with the character (#). All other rows will be filled with the character (*) Examples if n=4 Error, small number if n=5 if n=6 if n=7 # # # # # * * * * # # # # # # * * * * * # # # # # # # # * # # # # # * * * * 7 * # # # # # # * # * * * * # * # # # # Ett 20 Points Question 9 A file named Description. txt contains unknown number of metal sheets dimensions and description (maximum no. of records is 30). Each line in the file consists of Metal sheet name (string), width (float), length (float) and height (float). Write a program that reads the dimensions and add the volume only to an array. The volume is equal to width x length x height. Your program should calculate and display the following (see screen output): The number of Metal sheets in the file. The average volume for all metal sheets. The smallest volume. Number of metal sheets with above average volumes. Description.txt (Input file) ALUM1 1.25 2.25 .50 ALUM2 2.54 3.66 .93 ALUM3 1.4 .3 .2 ALUM4 3.1 5.1 -74 Screen Output There are 4 metal sheets. The average volume = 5.45 The smallest volume 0.08 There are 2 sheets with above-average volume. Question 7 10 Points Write the main program to prompt the user to enter the School score (double), the Written Test Score (double) and the Interview Score (double). The program will then display the admitted college by calling the function defined in Question 6. Follow the sample below. SAMPLE INPUT/OUTPUT Enter School, Written test and Interview Scores: 65 12 Admitted College is Engineering 10 Points Question 6 Write a function called Admission that accepts three parameters: School Score Ss (double), Written Test Score TS (double) and Interview Score IS (double). The function will calculate total score as follows: total score=School Score+Written Test Score+Interview Score Then, the function will return admitted college (string)as follows: total Score 2 90 admitted college Engineering IT 80 to 89 >"; P1++; cout Question 3 Write the output of the following code: int mi, m2: int Array[6]={5.8.10.13.2.2 }; for (int y=1: y=5; y+=2) { cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!