Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB code please 2 (60%) In the same parade there was a marching band consisted of males and females. The band was arranged in n

image text in transcribed

MATLAB code please

2" (60%) In the same parade there was a marching band consisted of males and females. The band was arranged in n rows and m columns. The gender distribution of the band members was random. The members used five musical instruments: drums, trumpets, piccolos, clarinets and trombones which were also distributed randomly. Write a program that will perform the following: a. (10%) Accept the values n and m and define appropriate size arrays to describe the b. (10%) Fill the first arrays with a code corresponding to the gender and the second c. (1000) Determin d. (15%) Determine how many instruments of each kind in the band and print out the e. ( gender and the instrument of each member in the band array with a code corresponding to the instruments the member plays. Print the arrays the results. results. e how many males and how many females in the band and print out 10%) Determine how many males in the row and print out the results. (10%) Determine how females in first column and print out the results. f. (10%) Use the same array of problem 2 and determine how many males are playing drums and print out the results. 3

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions