- Jan Apr Test 2 Bee1053 Ee209 Computing For Engineers Q2 Write A Program That Declares Three One Dimensional Arrays Nam 1 (71.36 KiB) Viewed 47 times
Jan-Apr Test 2 BEE1053/ EE209 Computing for Engineers Q2. Write a program that declares three one-dimensional arrays nam
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Jan-Apr Test 2 BEE1053/ EE209 Computing for Engineers Q2. Write a program that declares three one-dimensional arrays nam
Jan-Apr Test 2 BEE1053/ EE209 Computing for Engineers Q2. Write a 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 Testi 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. Sample output: E\Users\manic OneDrive UCSI 2017 Jan 2022 Semester\EE209 Computing for Engineers Jan20221 Test Jan20221 Test2Jan2022\Test2 02.exe Testi Test2 Total ----- ----- 13.50 13.75 14.25 16.25 19.75 11.50 11.00 11.75 17.50 13.50 25.00 24.75 26.00 33.75 33.25 The highest marks is 33.75 scored by student no 4 The lowest marks is 24.75 scored by student no 2 The average marks of all the five students is 28.55 Process returned o (Oxo) execution time: 0.115 s Press any key to continue. :