Ajman University College of Engineering and IT Biomedical Engineering Department BME103 / Computer Programming Spring 19-20
Ajman University College of Engineering and IT Biomedical Engineering Department BME103 / Computer Programming Spring 19-20
Spring 19-20
Bonus Assignment
Instructions:
This bonus assignment is worth 5 marks and is intended to help you raise your mark out of
70.
The assignment is supposed to be submitted on MOODLE before 10pm (09/05/2020).
The result of every question has to be explained (in words) along with the output screenshot.
Please make sure that your output screenshots are clearly legible.
The assignment is completely OPTIONAL.
KINDLY MAKE SURE THAT YOU SUBMIT YOUR OWN WORK. Any copy-paste
situation found will result in a straight 0.
QUESTIONS
2. Define a single dimension array for storing marks scored by 50 students and
write one C++ code that displays:
maximum marks
max count (number of students who scored the maximum mark)
minimum marks
min count (number of students who scored the minimum mark)
3. Define a single dimension array for storing marks scored by 100 students and
write a C++ code to display the average marks and SD (Standard Deviation).
5. Write a C++ program that accepts a square matrix of any size entered by the
user and check whether it is symmetric or not (symmetric means the matrix and
its transpose exactly same).
1- Write a C++ program that is used to do the following matrix operation
2A + 4 B, where A and B should be 3X4 matrices asking the user to enter
random numbers. Write the code and show the output.
Q1..
2- Define a single dimension array for storing marks scored by 100 students
and write a C++ code to display the average marks and SD (Standard
Deviation).
Q3..
3- Write a function to compute a quadratic equation, where the user is
required to enter a, b, c coefficients in the main program and calculate
and display the roots in the function program. Warning must be passed if
a is ZERO.