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
Write a C++ program that declares three one-dimensional arrays named Test1, Test2 and Total to hold the marks scored by
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am