Exercise 2 1. Declare an array of string title with 4 elements. 2. Initialize the array with the follows: “Midl", “Mid2", “Final", “total". 3. Declare an array of integers scores with 4 elements. 4. Use the loop to read from the scores array the three scores and calculate total and put the result in the fourth array element. 5. Declare an array of float percentage with 4 elements. 6. Calculate the percentage of the score in each of element, assuming that the full mark is 60 7. Print the three arrays. The output should be as follows

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 5RQ
icon
Related questions
Question
using C++
Exercise 2
1. Declare an array of string title with 4 elements.
2. Initialize the array with the follows: “Midl", “Mid2", “Final", “total".
3. Declare an array of integers scores with 4 elements.
4. Use the loop to read from the scores array the three scores and calculate total and put the
result in the fourth array element.
5. Declare an array of float percentage with 4 elements.
6. Calculate the percentage of the score in each of element, assuming that the full mark is 60
7. Print the three arrays. The output should be as follows
Transcribed Image Text:Exercise 2 1. Declare an array of string title with 4 elements. 2. Initialize the array with the follows: “Midl", “Mid2", “Final", “total". 3. Declare an array of integers scores with 4 elements. 4. Use the loop to read from the scores array the three scores and calculate total and put the result in the fourth array element. 5. Declare an array of float percentage with 4 elements. 6. Calculate the percentage of the score in each of element, assuming that the full mark is 60 7. Print the three arrays. The output should be as follows
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT