Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solve it using c and solve this as soon as possible... here also sample output given rad instruction carefully 4. Given marks of five

image text in transcribed

image text in transcribed

please solve it using c and solve this as soon as possible... here also sample output given rad instruction carefully

4. Given marks of five students: (20) CSE115 SAKIB 14 MUSHFIQ 58 MUSTAFIZ 74 TAMIM 44 MASHRAFEE 52 CSE215 54 58 77 77 45 CSE173 CSE373 CSE473 36 12 32 55 45 11 52 78 20 55 44 21 88 44 11 Declare a 2D array using Students marks and two String array using names,subjects in the main function. Now create a function named specific Subject which will calculate Total average marks of Three specific subjects according to teacher input(1 to 5). For example,lf teacher Enter 1 it will calculate average marks of CSE115 course. Store marks in an Array and print average marks with subject name. void specific Subject(int marks[5][5],char subjectName[5][50]) Create another function named specificStudent which will calculate Three Specific students marks according to teacher input. For Example,lf teacher Enter SAKIB it will calculate the total marks of SAKIB.Store marks in an Array and print three students mark with their names. void specificStudent (char studentName[5][50], int marks[5][5]) Hint: Use string compare method to compare teacher inputs. $ java Student Enter the number of subjects with in range 1-5: 3 Enter Subject1 name: CSE173 Average of subject :CSE173=57.2 Enter Subject2 name: CSE373 Average of subject :CSE373=44.6 Enter Subject3 name: CSE473 Average of subject :CSE473=19.0 Enter the student names with in range 1-5: 3 Enter Student1 name: SAKIB Student :SAKIB total marks=148.0 Enter Student2 name: TAMIM Student :TAMIM total marks=241.0 Enter Student3 name: MUSHFIQ Student :MUSHFIQ total marks=227.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Question What are the requirements for a SIMPLE 401(k) plan?

Answered: 1 week ago