[Solved]1 Approximate Following Integra Exp Z Using Composite Midpoint Rule Composite Trapezoid Ru Q37196916
Please Help, MatLab!

1. Approximate the following integra exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n 2k + l integrand evaluations, k 1 : 20, On the same plot, graph the absolute error as a function ofn 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1+ (cos adr, using integral for the “exact” solution Show transcribed image text 1. Approximate the following integra exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n 2k + l integrand evaluations, k 1 : 20, On the same plot, graph the absolute error as a function ofn 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1+ (cos adr, using integral for the “exact” solution
Expert Answer
Answer to 1. Approximate the following integra exp(z), using the composite midpoint rule, composite trapezoid rule, and composite … . . .
[Solved]1 Approximate Following Integral Exp Z Using Composite Midpoint Rule Composite Trapezoid R Q37245768
matlab
1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n-21 integrand evaluations, k as a function of n. 1:20. On the same plot, graph the absolute error 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1 +(cosdr using integral for the “exact” ส。lution. Optional ungraded: Improve integrate’s approximation using its AbsTol and RelTol options. Also, exploit the periodicity of the integrand to improve your approximations without increasing the number of integrand evaluations. Show transcribed image text 1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n-21 integrand evaluations, k as a function of n. 1:20. On the same plot, graph the absolute error 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1 +(cosdr using integral for the “exact” ส。lution. Optional ungraded: Improve integrate’s approximation using its AbsTol and RelTol options. Also, exploit the periodicity of the integrand to improve your approximations without increasing the number of integrand evaluations.
Expert Answer
Answer to 1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composit… . . .
[Solved]1 Approximate Median Tream M Elements Simplicity Assume Et S X1 T2 Xm Denote S Elements Q37289141

1 Approximate Median tream of m elements. For simplicity, assume et S – (x1, T2,. . . , Xm) denote a s that the elements in the stream are unique. Define the position of an element to be pos(r) – | {0€ S|y 〈 x}| . The e-approximate median is then defined to be an element x such that: 2 Provide an algorithm which returns a e-approximate median with high probability Provide a 3-part solution providing the algorithm, proof of correctness and the space complexity of the alg in space independent of the size of the stream. (Hint: Try to provide a sampling based algorithm and argue that less than 1/2 of the samples will be from the 1/2 -e and 1/2 + є percentile-use a Hoeffding bound for this argument). The following is a one-sided version of the Hoeffding bound which might be useful for this and other problems: solve the problem rithm. Note that the optimal algorithm can Show transcribed image text 1 Approximate Median tream of m elements. For simplicity, assume et S – (x1, T2,. . . , Xm) denote a s that the elements in the stream are unique. Define the position of an element to be pos(r) – | {0€ S|y 〈 x}| . The e-approximate median is then defined to be an element x such that: 2 Provide an algorithm which returns a e-approximate median with high probability Provide a 3-part solution providing the algorithm, proof of correctness and the space complexity of the alg in space independent of the size of the stream. (Hint: Try to provide a sampling based algorithm and argue that less than 1/2 of the samples will be from the 1/2 -e and 1/2 + є percentile-use a Hoeffding bound for this argument). The following is a one-sided version of the Hoeffding bound which might be useful for this and other problems: solve the problem rithm. Note that the optimal algorithm can
Expert Answer
Answer to 1 Approximate Median tream of m elements. For simplicity, assume et S – (x1, T2,. . . , Xm) denote a s that the elements… . . .
[Solved]1 Arrays Write Following Array Functions Use Integer Arrays Suppose Arr 1 4 6 5 2 7 10 Se Q37191477
Please use c++, thank you!

1. Arrays Write the following array functions. Use integer arrays. Suppose, arr[ – (1, 4, 6, 5, 2, 7, 10) a. Search for a given value in the array and return the index of the location. Return -1 if not found in the array. void search (int arr, int n, int val) Using the above array arr, search (arr, 7, 6) should return 2, and search (arr, 7, 8) should return1 Reverse the contents of the array. void reverse (int arr, int n); Using the above array arr, reverse (arr, 7) should return result in arr b. contents rearranged as follows: arr(10, 7, 2, 5, 6, 4, 11 Rearrange the array such that all the odd elements in the array are in the beginning of c. the array void oddFirst (int arr[, int n) Using the above array arr, oddFirst (arr, 7) should return result in arr contents rearranged as follows: arr(1, 5, 7, 4, 6, 2, 10) Show transcribed image text 1. Arrays Write the following array functions. Use integer arrays. Suppose, arr[ – (1, 4, 6, 5, 2, 7, 10) a. Search for a given value in the array and return the index of the location. Return -1 if not found in the array. void search (int arr, int n, int val) Using the above array arr, search (arr, 7, 6) should return 2, and search (arr, 7, 8) should return1 Reverse the contents of the array. void reverse (int arr, int n); Using the above array arr, reverse (arr, 7) should return result in arr b. contents rearranged as follows: arr(10, 7, 2, 5, 6, 4, 11 Rearrange the array such that all the odd elements in the array are in the beginning of c. the array void oddFirst (int arr[, int n) Using the above array arr, oddFirst (arr, 7) should return result in arr contents rearranged as follows: arr(1, 5, 7, 4, 6, 2, 10)
Expert Answer
Answer to 1. Arrays Write the following array functions. Use integer arrays. Suppose, arr[ – (1, 4, 6, 5, 2, 7, 10) a. Search for … . . .
[Solved]1 Asked Solve Problem Described System Difference Constraints Constraint Form Xi X J Bi J Q37160235
1. You have been asked to solve a problem that is described as asystem of difference constraints, where each constraint is of theform xi −x j ≤ bi j, where xi , x j are variables and bi j is aconstant. The following is an example of such a system ofdifference constraints: x1 −x2 ≤ 1, x1 −x4 ≤ −4, x2 −x3 ≤ 2, x2 −x5≤ 7, x2 −x6 ≤ 5, x3 −x6 ≤ 10, x4 −x2 ≤ 2, x5 −x1 ≤ −1, x5 −x4 ≤ 3,x6 −x3 ≤ −8. Specify suitable data structure(s) and algorithm thatwould allow you to solve such a problem. By solving such a problem,it means that you determine suitable values for the variables suchthat all constraint are satisfied or you determine that the problemdoes not have a solution. If a tree data structure is suitable, forexample, you can specify what a tree node is, what a tree edge is,and what a root node is. You may actually use more than one datastructure in your solution (you may use a queue for a breadth-firsttraversal of the tree, for example). If an algorithm from the classlectures is suitable, you can simple state the name of thealgorithm (breadth-first tree traversal, for example). Be concise.What is the time complexity of your algorithm, assuming that thereare n variables and m constraints? Express the time complexity interms of n and m. For the given system of difference constraints,use the proposed data structures to represent it (if you havechosen a tree data structure, for example, you can draw a suitabletree). Use your proposed algorithm to determine suitable values forthe variables or determine that the problem does not have asolution.

You have been asked to solve a problem that is described as a system of difference constraints, where each constraint is of the form x¡-xj S bij, where x,xj are variables and bij is a constant. The following is an example of such a system of difference constraints: r2x6 S 5, t3-x6 10. r2x 2. r6x3 8. Specify suitable data structure(s) and algorithm that would allow you to solve such a problem By solving such a problem, it means that you determine suitable values for the variables such that all constraint are satisfied or vou determine that the problem does not have a solution If a tree data structure is suitable, for example, you can specify what a tree node is, what a tree edge is, and what a root node is. You may actually use more than one data structure in your solution (you may use a queue for a breadth-first traversal of the tree, for example). If an algorithm from the class lectures is suitable, you can simple state the name of the algorithm (breadth-first tree traversal, for example). Be concise. What is the time complexity of your algorithm, assuming that there are n variables and m constraints? Express the time complexity in terms of n and m For the given system of difference constraints, use the proposed data structures to represent it (if you have chosen a tree data structure, for example, you can draw a suitable tree). Use your proposed algorithm to determine suitable values for the variables or determine that the problem does not have a solution Show transcribed image text You have been asked to solve a problem that is described as a system of difference constraints, where each constraint is of the form x¡-xj S bij, where x,xj are variables and bij is a constant. The following is an example of such a system of difference constraints: r2x6 S 5, t3-x6 10. r2x 2. r6x3 8. Specify suitable data structure(s) and algorithm that would allow you to solve such a problem By solving such a problem, it means that you determine suitable values for the variables such that all constraint are satisfied or vou determine that the problem does not have a solution If a tree data structure is suitable, for example, you can specify what a tree node is, what a tree edge is, and what a root node is. You may actually use more than one data structure in your solution (you may use a queue for a breadth-first traversal of the tree, for example). If an algorithm from the class lectures is suitable, you can simple state the name of the algorithm (breadth-first tree traversal, for example). Be concise. What is the time complexity of your algorithm, assuming that there are n variables and m constraints? Express the time complexity in terms of n and m For the given system of difference constraints, use the proposed data structures to represent it (if you have chosen a tree data structure, for example, you can draw a suitable tree). Use your proposed algorithm to determine suitable values for the variables or determine that the problem does not have a solution
Expert Answer
Answer to 1. You have been asked to solve a problem that is described as a system of difference constraints, where each constraint… . . .
[Solved]1 Assume Given Values Eax Ebx Ecx Write Assembly Code Following Eax Ecx Edx Eax Ebx 2 Writ Q37267143

1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )-(eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax- 0x15DBCB19. At the end of your code ecx 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5, write one line of code in assembly to Zero eax. Don’t use Sub instruction and you must use hex numbers only as immediate numbers. 4. Implement the following arithmetic expression in assembly language: EBX var1-var2-9var3 /size of variables, 4 bytes each 5. Write a piece of code in assembly that implements the following C++ statement num1- num2 4; //x and y are of size word (2 bytes) 6. Write a piece of code that implements the following C++ statements d ‘w /a,d,b are of size byte. a=d+1; b-a 2; Show transcribed image text 1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )-(eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax- 0x15DBCB19. At the end of your code ecx 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5, write one line of code in assembly to Zero eax. Don’t use Sub instruction and you must use hex numbers only as immediate numbers. 4. Implement the following arithmetic expression in assembly language: EBX var1-var2-9var3 /size of variables, 4 bytes each 5. Write a piece of code in assembly that implements the following C++ statement num1- num2 4; //x and y are of size word (2 bytes) 6. Write a piece of code that implements the following C++ statements d ‘w /a,d,b are of size byte. a=d+1; b-a 2;
Expert Answer
Answer to 1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )… . . .
[Solved]1 Based Communication Challenges Recommend Effective Communication Solutions Comparing Win Q37269415
1) Based on the communication challenges, recommend effectivecommunication solutions by comparing Windows and Linux OS basedemail servers that would be helpful to implement and enforce thatbest suits for any organization as the business need. The reportshould consider the following keys;
A comparative study report on Windows and Linux OS based emailservers, ( Microsoft Exchange server 2013 VS. Linux email serverbased Qmail)
The report should include comparing a few aspects of eachtopic instead of trying to cover both topics comprehensively. Fundamentals Understanding Server Roles RecipientAdministration Server Administration Managing Mailboxes andetc.
Expert Answer
Answer to 1) Based on the communication challenges, recommend effective communication solutions by comparing Windows and Linux OS … . . .
[Solved]1 Assume System Three Processes P1 P2 P3 Two Files F1 F2 Process P1 Block Process P2 P3 Pr Q37241705
1. Assume that a system has three processes, p1, p2, p3, and twofiles, f1 and f2. Process p1 can block process p2 and p3. Processp2 can wakeup p3. Process p1 has read/write access rights to f2.Process p2 has the execute access to file f1 and the read accessright to f2. Process p3 owns file f1 and can write to file f2. Givethe access control list of file f2 and the capability list ofprocess p1.
2. Assume that the average time to swap a page into the memoryor swap a page out the memory is 20,000 microseconds and that amemory access takes 1 microsecond. Two level paging with all pagetables in memory is used for address translation. Assume furtherthat no cache or associative registers are used for addresstranslation and 50% of the pages being replaced are dirty. What isthe maximum page fault rate if the effective access time per memoryreference is to be 10 microseconds or less? Justify youranswer.
Expert Answer
Answer to 1. Assume that a system has three processes, p1, p2, p3, and two files, f1 and f2. Process p1 can block process p2 and p… . . .
[Solved]1 Based Following Problem Similar Homework 2 Question 1 Create Java Code Criteria Executed Q37180891
1.
- Based on the following problem, which is similar toHomework 2 question 1, create the Java code with the below criteriato be executed without errors: (20 points)
- You must use a while loop to get the teacher’s inputfor the number of iPads needed.
- You must use an if/else statement to ensure the numberof iPads can’t exceed 20.
- Provide the modified code or a screenshot of the codein Jdoodle.
You are in charge of the school’s IT department andseveral classes are asking to by iPads for use in their classes.Based on the number of iPads each class requested, determine thetotal costs for each classroom. The only information given is thatthe iPad costs $799, sales tax is 8.2% and there is a total of 10classrooms.
HINT: You will need to get the teacher’s input for theamount that their class will need.
2. Create an array list of students’ first andlast names for each of the 10 classrooms. The number of students inthe class has to be greater than 10 but less than 20. Provide themodified code or a screenshot of the code in Jdoodle —
***NOTE** code for JAVA itwill be an addition to a program I already formulated asking foruser entry for number of ipads for 10 classrooms.
Names provided:
-
Raquel Choi
-
Wilson Christian
-
Devon Rivers
-
Deanna Cortez
-
Laurel Bradford
-
Kinley Neal
-
Kate Bartlett
-
Belen Cabrera
-
Yazmin Hernandez
-
Morgan Gonzalez
-
Barrett Mullins
-
Myles Nash
-
Lauren Chavez
-
Augustus Mathis
-
Bobby Collier
-
Maci Winters
-
Davian Sawyer
-
Rylan Sparks
-
Alan Robinson
-
Alexzander Wolf
-
Kaydence Roth
-
Emelia Cordova
-
Aron Webster
-
Jadyn Tyler
-
Magdalena Spears
-
Jovanni Pacheco
-
Sanaa Trujillo
-
Dereon Howe
-
Matthew Kane
-
Valentino Everett
-
Zachary Dunlap
-
Emely Moyer
-
Bria Melendez
-
Turner Knight
-
Arjun Nelson
-
Devon Osborne
-
Andreas Valencia
-
Carlo Lloyd
-
Charlee Armstrong
-
Ashleigh Maxwell
-
Lily Frazier
-
Keegan Oneal
-
Cohen Larson
-
Beckham Herrera
-
Yaretzi Hendrix
-
Alonso Maxwell
-
Sierra Andrade
-
Janiya Mckay
-
Jasper Meadows
-
Jazlene Kirk
-
Maritza Stafford
-
Michaela Haney
-
Camryn Giles
-
Rylie Chung
-
Josephine Snyder
-
Mariela Molina
-
Elle Arellano
-
Jean Farmer
-
Kaylyn Jordan
-
Lyric Ross
-
Amir Solomon
-
Richard Yoder
-
Lucian Marquez
-
Alicia Nixon
-
Amari Gallagher
-
Yusuf Huffman
-
Augustus Gibbs
-
Ryan Barrera
-
Elaine Macias
-
Hadley Mccoy
-
Trevor Simmons
-
Bobby Norris
-
Shelby Schmitt
-
Ramon Moss
-
Ryann Bailey
-
Felix Powell
-
Kaliyah Griffith
-
Morgan Reynolds
-
Zayne Pineda
-
Raymond Lucero
-
Cory Anderson
-
Lilah Schultz
-
Lamont Barrera
-
Wayne Graves
-
Kevin Jackson
-
Dalton Whitney
-
Douglas Mccarty
-
Harry Mays
-
Irvin Porter
-
Kasen Cisneros
-
Bo Abbott
-
Tessa Gonzalez
-
Octavio Mcdowell
-
Paris Glover
-
Zackary Miranda
-
Savanna Mathews
-
Kamryn Silva
-
Robert Kane
-
Jaden Conway
-
Cornelius Knapp
-
Carlos Cowan
-
Neveah Christensen
-
Trevon Armstrong
-
Megan Nash
-
Tristian Bright
-
Sanaa Valentine
-
Katelyn Chandler
-
Jesus Wall
-
Paola Blanchard
-
Collin Mccarthy
-
Owen Campbell
-
Karson Kidd
-
Elisa Rios
-
Harmony Dyer
-
Cael Hess
-
Billy Scott
-
Everett Perkins
-
Brooks Hatfield
-
Gwendolyn Pineda
-
Cynthia Lawrence
-
Yuliana Montes
-
Sheldon Johnson
-
Kale Cantu
-
Ariana Pittman
-
Reilly Wagner
-
Krystal Warner
-
Yaretzi Norris
-
Brock Brewer
-
Micah Collins
-
Mitchell Holloway
-
Abram Merritt
-
Hudson Foley
-
Vanessa Norris
-
Jazmyn Richmond
-
Kasen Kirk
-
Eric Carney
-
Ana Olson
-
Adeline Douglas
-
Chaim Briggs
-
Serena Pittman
-
Jamie Hines
-
Marely Kelley
-
Haven Santos
-
Victoria Solomon
-
Jaidyn Zimmerman
-
Hailee Barrett
-
Helena Fleming
-
Nyasia Webb
-
London Mcpherson
-
Avah Glenn
-
Marley Russo
-
Damion Kelley
-
Paityn Franklin
-
Jean Cline
-
Tamia Franklin
-
Alden Neal
-
Immanuel Barnes
-
Melvin Raymond
-
Porter Esparza
-
Marlee Chandler
-
Celeste Keith
-
Emma Cunningham
-
Tyshawn Vaughn
-
Jeffery Sexton
-
Victoria Stephens
-
Kiera Hopkins
-
Jaydon Gutierrez
-
Zaire Rollins
-
Keira Christensen
-
Armani Brady
-
Kinsley Holden
-
Stephanie Durham
-
Paul Mckay
-
Walter Barron
-
Brennan Yoder
-
Magdalena Poole
-
Mylee Small
-
Pedro Schmitt
-
Kamari Copeland
-
Nicole Jennings
-
Ashanti Howell
-
Quinton Zhang
-
Mathias Martinez
-
Alissa Harper
-
Jacoby Sawyer
-
Heidi Knight
-
Antwan Macias
-
Bronson Strickland
-
Xiomara Pham
-
Tanner Blankenship
Expert Answer
Answer to 1. Based on the following problem, which is similar to Homework 2 question 1, create the Java code with the below criter… . . .
[Solved]1 Based Program Loanqualifier2py Design Program Showing Information Kids Going Roller Coas Q37293702
Using python:


1. Based on the program ‘loan_qualifier2.py, to design a program showing information of kids going to the roller coaster. Kids need to be more than 9 years old, and taller than 120 cm to go on the roller coaster. The program should let the user to enter the age and height of the kid, and decide whether the kid can go on the roller coaster. Enter how tall you are in cm 154 Enter how old you are in years 33 You qualify for going on the roller coaster min-salary- 30000.0 # The minimum annual salary min years2 # The minimum years on the job # Get the customer’s annual salary salaryfloat(input(‘Enter your annual salary) # Get the number of years on the current job years on_job -int(input(‘Enter the number of+ years employed: )) # Determine whether the customer qualifies. if salary >- min_salary and years_on_job >- min years: print(‘You qualify for the loan. “) else: print(‘You do not qualify for this loan.’) Show transcribed image text 1. Based on the program ‘loan_qualifier2.py, to design a program showing information of kids going to the roller coaster. Kids need to be more than 9 years old, and taller than 120 cm to go on the roller coaster. The program should let the user to enter the age and height of the kid, and decide whether the kid can go on the roller coaster. Enter how tall you are in cm 154 Enter how old you are in years 33 You qualify for going on the roller coaster
min-salary- 30000.0 # The minimum annual salary min years2 # The minimum years on the job # Get the customer’s annual salary salaryfloat(input(‘Enter your annual salary) # Get the number of years on the current job years on_job -int(input(‘Enter the number of+ years employed: )) # Determine whether the customer qualifies. if salary >- min_salary and years_on_job >- min years: print(‘You qualify for the loan. “) else: print(‘You do not qualify for this loan.’)
Expert Answer
Answer to 1. Based on the program ‘loan_qualifier2.py, to design a program showing information of kids going to the roller coaster… . . .

