Answered step by step
Verified Expert Solution
Question
1 Approved Answer
%% #2 % % WRITE CODE BELOW: % Step 1: Create a vector x of the numbers 1 through 100 % Step 2: Find the
%% #2 % % WRITE CODE BELOW: % Step 1: Create a vector x of the numbers 1 through 100 % Step 2: Find the sum of all numbers from 1 to 100 % Step 3: Compute 100* (100+1)/2 % Note: This method works regardless of what you replace 100 with % % % %% #3 % % WRITE CODE BELOW: % Step 1: Set x=(3,9,5,10,1,0,7,9) and c=0 % Step 2: Use a for loop that loops through x, and if an entry of x is % strictly larger than 5, add 1 to the counter c. %
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started