*these questions are related to Matlab
1.
% Matlab script to count the total numbers in the range of
1-20000 that are
% exactly divisible by 8 numbers
count =0; % counter to count the total numbers exactly divisible by
8 numbers
% loop to count the total numbers exactly divisible by 8
numbers
for i=1:20000
num_div=1; % increment for 1 , since 1 is divisor for all
numbers
% count the number of divisors
for j=2:fix(i/2)
if mod(i,j) == 0
num_div = num_div+1;
end
end
num_div = num_div + 1; % increment for the number itself
% if number of divisors are 8 then increment the count
if num_div == 8
count = count + 1;
end
end
% display the output
fprintf('Numbers in range 1 to 20000 that are exactly divisible by
eight numbers = %d\n',count);
%end of script
Output:
*these questions are related to Matlab The number 24 is exactly divisible by eight numbers (i.e. 1, 2, 3, 4, 6, 8, 12 and 24). The number 273 is also exactly divisible by eight numbers (i....
10. (6 pts) Slips of paper marked with numbers 1, 2, 3, 4, and 5 are placed in a box. After being mixed, two slips are drawn simultaneously. a) Find the probability that both slips are marked with even numbers. b) Find the probability that one slip is marked with an odd number and the other is marked with an even number. c) Find the probability that the sum is 10.
Given the following sets: S = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, Even numbers A = {2, 4, 6, 8, 10}; Odd number B = {3, 5, 7, 9}; Natural numbers N = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and Prime numbers C = {2, 3, 5, 7} Find the following: a) A ∪ C b) A ∩ N c) A ’ d) B ∩ N e) B ∪ N f) C...
ANSWER USING JAVA CODE (1)The sum of the squares of the first ten natural numbers is, 12 + 22 + ... + 102 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)2 = 552 = 3025 Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 2640. Find the difference between the...
This is the sequence 1,3,6,10,15 the pattern is addin 1 more than last time but what is the name for this patternThese are called the triangular numbers The sequence is 1 3=1+2 6=1+2+3 10=1+2+3+4 15=1+2+3+4+5 You can also observe this pattern x _________ x xx __________ x xx xxx __________ x xx xxx xxxx to see why they're called triangular numbers. I think the Pythagoreans (around 700 B.C.E.) were the ones who gave them this name. I do know the...
For the following data: (sorted) 3 4 5 8 8 10 12 12 20 22 a) Calculate 1) Average or average 6) The Range 2) The median 7) The Intercuartilico range 3) Fashion 8) Variance 4) The middle range 9) Standard deviation 5) The middle axis 10) the coefficient of variation B. Prepare a Graphic Box Plot (Box and Wisker) C. Determine border values or near atypical numbers (outliers) D) answer whether or not there are atypical numbers. What are...
Lab Section 1 2 3 4 5 6 7 8 9 Report: Quantum Numbers Assigning Quantum Numbers 1. For each element, complete the following tables Write the ground state condensed electron configuration, draw the energy level orbital diagram (see partial example with Na), and write the quantum numbers for the last electron in the atom. Element Me Condensede continuration Energy level Cuantum numbers Element Condensede configuration Energy level orbital diagram Quantum numbers (laste) Flement Condensede Energy level orbital diagram Quantum...
Part 3: More Numeric Analysis Now add three more functions to the num_stats module you created in part 2. These will determine if a given positive integer is EVEN, PERFECT and ABUNDANT. Each of these functions should accept a single integer as an argument and return whether the integer meets the criteria for that classification. Here's some IPO notation to get you started: # function: is_even # input: a positive integer # processing: determines if the supplied number is even...
Numbers 6,10,17 and 29 please. numbers 6,10,17 and 29 please. CONCEPTS 10. A 24 10 1. For triangle ABC with sides a, b, and c the Law of Cosines 20 12 2. In which of the following cases must the Law of Cosines be used to solve a triangle? ASA SSS SAS SSA 11-20Solve triangle ABC SKILLS 3-10Use the Law of Cosines to determine the indicated side x or angle 0 12. 12 120° 4. С *. 13, a С...
Comprehensive Problem 6-52 (LO 6-1, LO 6-2, LO 6-3) [The following information applies to the questions displayed below.] Read the following letter and help Shady Slim with his tax situation. Please assume that his gross income is $172,900 (which consists only of salary) for purposes of this problem. December 31, 2019 To the friendly student tax preparer: Hi, it’s Shady Slim again. I just got back from my 55th birthday party, and I’m told that you need some more information...