Write a C++ program that declares three one-dimensional arrays named Test1, Test2 and Total to hold the marks scored by

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C++ program that declares three one-dimensional arrays named Test1, Test2 and Total to hold the marks scored by

Post by answerhappygod »

Write a C++ program that declares three one-dimensional
arrays named Test1, Test2 and Total to hold the marks scored by
five students in two tests in the array Test1, Test2 and the total
of the two test marks in the array Total. Each array should be
declared in main() and be capable of holding 5 single-precision
numbers. The numbers to store in Test1 are 13.5, 13.75, 14.25,16.25
and 19.75. The numbers to store in Test2 are 11.5, 7.5, 11.0, 11.75
and 17.5. Your program should pass these three arrays to a function
named calc_Testmarks(), which should then calculate the total of
the two test marks scored by each students, the lowest mark, the
highest marks and the average marks of all the five students
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply