0% found this document useful (0 votes)
35 views8 pages

Ajman University College of Engineering and IT Biomedical Engineering Department BME103 / Computer Programming Spring 19-20

The document is a bonus assignment for a computer programming course given to student Sahar Khalid Mattar with student ID 201910159. The assignment instructs the student to complete 3 questions from 5 options involving C++ programming. The questions cover topics like matrix operations, analyzing student mark arrays, defining a quadratic equation function, and checking matrix symmetry. The student must show the code and output for the selected questions and submit the assignment before the deadline.

Uploaded by

Sahar Mattar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views8 pages

Ajman University College of Engineering and IT Biomedical Engineering Department BME103 / Computer Programming Spring 19-20

The document is a bonus assignment for a computer programming course given to student Sahar Khalid Mattar with student ID 201910159. The assignment instructs the student to complete 3 questions from 5 options involving C++ programming. The questions cover topics like matrix operations, analyzing student mark arrays, defining a quadratic equation function, and checking matrix symmetry. The student must show the code and output for the selected questions and submit the assignment before the deadline.

Uploaded by

Sahar Mattar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Ajman University

College of Engineering and IT

Biomedical Engineering Department

BME103 / Computer programming

Spring 19-20

Bonus Assignment

Student name : Sahar khalid mattar

Student ID: 201910159

Instructor: Kanhira k.Mujeeb Rahman


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

Select any 3 questions out the following:

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.

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).

4. 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.

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.

You might also like