Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

No find() ifs elses fors or any interation/Conditionals MATLAB No find() ifs elses fors or any interation/Conditionals MATLAB Function: pinkBalloons Input(s): - (MxN double) array

No find() ifs elses fors or any interation/Conditionals MATLAB

No find() ifs elses fors or any interation/Conditionals MATLAB

image text in transcribed

Function: pinkBalloons Input(s): - (MxN double) array of balloons numbers Output(s): - (double) total number of pink balloons Function Description: - Write a function that takes in an array of balloon bunch quantities. Each number in the array corresponds to a bunch of balloons with the indicated number of individual balloons inside. Balloon bunch quantities that are divisible by 5 or divisible by 7 are known to be pink bunches. Your function should return the total number of pink balloons (not bunches) in the array. balloonQts = 1097351342360887;3;12;; pinkBs = pinkBalloons(balloonQts) % >> pinkBs = 161

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

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

3 > O Actual direct-labour hours Standard direct-labour hours...

Answered: 1 week ago