Question: BCS230 Lab4 Handout and Assignment Lab objectives are for students to practice with: Arrays. Object-Oriented Analysis and Design. include citron using ace std; 1 Function


BCS230 Lab4 Handout and Assignment Lab objectives are for students to practice with: Arrays. Object-Oriented Analysis and Design. include citron using ace std; 1 Function srototypes int getScorerlin) Lab practice 1: intrin 1 const int SIZE = 20; The following skeleton code int arraySIZE), Scores accepts 20 inputs as test scores for cout > prints nothing if Inun 1001 1/1 or is valid array Istote it and po W to the next array position 5 Stepl: Create a project and then De if (nur > 1001 // It is invalid, display arorssage cout Welse the end sentinelas entered so do nothing Step2: Modify the code so that, in wile (un pos 2017 Loop again as long as the ind til addition to what it does, it will: return of the current value of nos quals the number of soorn. Print all the elements of the array. Print the average score. Change the fixed number of inputs (currently 20 test scores) to be any positive number between 1 and 50. Create and use a function that counts how many scores are perfect. Count and report how many scores are less than 59. . . Lab practice 2: The magic square is a grid with three rows and three columns that has the following properties: The grid contains the numbers from 1 through 9 exactly. The sum of each row, each column, each diagonal all add up to the same number. This is shown in the following: 15 15 4 9 2 5 81 15 15 2 7 6 15 15 15 Write a program that simulates a magic square using a two-dimensional 3x3 array. It should have a Boolean function isMagicSquare that accepts the array as an argument and returns true if it determines it is a Magic Square and false if it is not. Test the program with one burray that is a magic square and one that is not. Assignment Lab4 What to hand in 1-20. Write a program that displays the Roman numerals equivalent of any decimal number between 1 and 20 that the user enters. First store the Roman numerals in an array. Create a function that allows you to enter the integer numbers from Print the Roman numeral value of the entered integer. Roman Integer 1 1 Loop to allow the user to continue entering numbers V 5 until an end sentinel of O is entered. 10 L 50 100 500 M I D 1000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
