Free Essay

Numerical Methods

In:

Submitted By amrizal
Words 1140
Pages 5
SUBJECT: NUMERICAL METHODS CODE: BUM2313 FACULTY OF INDUSTRIAL SCIENCES & TECHNOLOGY INSTRUCTION: Use MATHEMATICAL SOFTWARE such as EXCEL/ MATLAB/ MAPLE/ C to facilitate the computation. SUBMIT the solution in HARDCOPY & SOFTCOPY. Please save the solution in CD for softcopy. Do the assignment in group as allow by your lecturer. QUESTION 1 The nonlinear resistive circuit shown below is described by the nonlinear equation f ( x)  g ( x)  ( E  x) 0 R

TOPIC: CHAPTER 1, 2,3 & 4 DUE/DURATION:

MARKS:

ASSESSMENT: ASSIGNMENT

2nd May 2014 (before 5 P.M) WEEK 11

100

The function g ( x) gives the current through the nonlinear resistor as a function of the voltage x cross its terminals as shown in the following Figure 1.

Figure 1 Assuming that g ( x)  9sin( x  5)  10

and consider the three following cases:

Case 1: E  5, R  1, Case 2: E  15, R  3, Case 3: E  4, R  0.5. (a) (b) (c) By using an appropriate method that you have learned in this course, find all the solutions of the nonlinear resistive circuit equation for the all cases. Select suitable starting points for xl and xu by plotting f over the interval [0,4] for the all cases, and visually selecting a good starting point. Find the lowest root over the the interval [0,4] by using (i) Bisection method and (ii) False position method. Use the starting points xl and xu in (b) and terminate the computation if  a  104. (For (a) and (b) use two decimal places, for (c) use eight decimal places) (20 Marks)

QUESTION 2 In the design of all – terrain vehicles (ATV), it is necessary to consider the failure of the vehicle when attempting to negotiate two types of obstacles. One type of failure is called hang-up failure and occurs when the vehicle attempts to cross on obstacle that causes the bottom of the vehicle to touch the ground. The other type of failure is called nose-in failure and occurs when the vehicle descends into a ditch and its nose touches the ground. Given that the maximum angle  that can be negotiated by a vehicle when  is the maximum angle at which hang-up failure does not occur satisfies the equation

Asin cos   Bsin2  Ccos   Esin  0 where A  l sin  , B  l cos  , C  (h  0.5D)sin   0.5D cot  and E  (h  0.5D) cos   0.5D cot 

Find  for the situation when l  90, h  50, D  80 and  

. Use Newton Raphson 2 method with 0  0.5 to approximate the solutions until  a   s  0.5%. (Use seven decimal places) (15 Marks)



QUESTION 3 Three-phase loads are common in AC systems. When the system is balanced the analysis can be simplified to a single equivalent circuit model. However, when it is unbalanced the only practical solution involves the solution of simultaneous linear equations. In one model the following equations need to be solved.

120  0.0080( I bi  I ci )  0.4516 I ai  0.7460 I a r  0.0100( I br  I cr )  0 0.0100( I bi  I ci )  0.0080( I br  I cr )  0.4516 I a r  0.7460 I ai  0 60.00  0.7787 I br  0.5205I bi  0.0100( I a r  I c r )  0.0080( I ai  I ci )  0 0.5205I br  0.7787 I bi  0.0100( I ai  I ci )  0.0080( I a r  I c r )  103.9  0 0.6040 I ci  0.0080( I c r  I ai  I b r )  0.0100( I ar  I br )  60.00 0.0100( I ai  I bi )  0.0080( I a r  I b r  I ci )  0.6040  103.9

Find the values of I ar , I ai , I br , I bi , I cr , and I ci using Cramer’s rule method. Use SOFTWARE to solve the above problem. (Use four decimal places) (15 Marks)

QUESTION 4

Trusses are lightweight structures capable of carrying heavy loads. In bridge design, the individual members of the truss are connected with rotatable pin joints that permit forces to be transferred from one member of the truss to another. The accompanying figure shows a truss that is held stationary at the lower left endpoints 1, is permitted to move horizontally at the lower right endpoint 4, and has pin joints at 1,2,3,and 4. A load of 10,000 newtons(N) is placed at joint 3, and the resulting forces on the joints are given by f1 , f2 , f3 , f4 and f5 , as shown. When positive, these forces indicate tension on the truss elements, and when negative, compression. The stationary support member could have both a horizontal force component F1 and a vertical force component F2 , but the movable support member has only a vertical force component F3 . If the truss is in static equilibrium, the forces at each joint must add to the zero vector, so the sum of the horizontal and vertical components at each joint must be zero. This will produces the system of linear equations as shown in the accompanying table.
Joint 1 2 3 4 Horizontal Component Vertical Component

2 f1  f 2  0 2 2 3  f1  f4  0 2 2  f 2  f5  0  F1   3 f 4  f5  0 2

2 f1  F2  0 2 2 1  f1  f3  f 4  0 2 2 f3 10000  0

(a)

1 f 4  F3  0 2 Rewrite the above system of linear equations in matric form AX  b

(b)

Solve the system in (a) using Crout decomposition methods (use four decimal places) (15 Marks)

QUESTION 5 The normal distribution function with   0 and standard deviation  is given as follows

 1  x 2  1 f ( x)  exp       2    2  
(a) By using normal distribution function calculate eight equally spaced points in the intervals (i) [  2 ,   2 ] and (ii) [  3 ,   3 ] for   3 . (b) Find the Lagrange interpolation polynomial that curve fits the data for each interval. Output the coefficients of the polynomial. (c) Illustrate the individual points and Lagrange polynomial function in (a) and (b) on a single plot. (d) By using normal distribution function calculate fourteen equally spaced points in the intervals (i) [  2 ,   2 ] and (ii) [  3 ,   3 ] for   3 . (e) Find the Lagrange interpolation polynomial that curve fits the data for each interval. Output the coefficients of the polynomial. (f) Illustrate the individual points and Lagrange polynomial function in (d) and (e) on a single plot. (g) Fit the data obtained in (a) and (d) by using quadratic spline for the intervals (i)
[  2 ,   2 ] and (ii) [  3 ,   3 ] . Let   3 .

(h)

Illustrate the individual points and quadratic spline interpolation for the data in (a) and (c) on a single plot.

(Use eight decimal places) (35 Marks)

Similar Documents

Free Essay

Numerical Methods Chapter 2

...CHAPTER 2 2.1 Two possible versions can be developed: |IF x ( 10 THEN |IF x ( 10 THEN | |DO |DO | |x = x – 5 |x = x – 5 | |IF x < 50 EXIT |IF x < 50 EXIT | |END DO |END DO | |ELSE |ELSEIF x < 5 | |IF x < 5 THEN |x = 5 | |x = 5 |ELSE | |ELSE |x = 7.5 | |x = 7.5 |ENDIF | |END IF | | |ENDIF ...

Words: 2927 - Pages: 12

Free Essay

Numerical Methods Solved Examples

...NUMERICAL SOLUTIONS: Solved Examples By Mahmoud SAYED AHMED Ph.D. Candidate Department of Civil Engineering, Ryerson University Toronto, Ontario 2013 Table of Contents Part I: Numerical Solution for Single Variable............................................................................................... 2 1.1. Newton-Raphson Method ............................................................................................................ 2 1.2. Secant Methods ............................................................................................................................ 4 Part Two: Numerical Solutions for Multiple Variables ................................................................................. 6 2.1. Generalized Newton-Raphson Method for Two Variables ........................................................... 6 2.2. Multi-dimensional case for Newton-Raphson Method ................................................................ 9 Appendix: Matrix ........................................................................................................................................ 10 Sayed-Ahmed, M. Ryerson University Jan. 2013 Part I: Numerical Solution for Single Variable 1.1. Newton-Raphson Method The Newton-Raphson method (NRM) is powerful numerical method based on the simple idea of linear approximation. NRM is usually home in on a root with devastating efficiency. It starts with initial...

Words: 803 - Pages: 4

Premium Essay

Me 2173 Matlab Project 5 Numerical Methods Using Matlab

...ME 2173 MATLAB Project 5 Numerical Methods Using MATLAB Click Link Below To Buy: http://hwcampus.com/shop/matlab-project-5/ The properties of Superheated Steam at pressure 200 kPa are shown in the table below: Table 1 Temp °C p=200 kPa (120.2 C) volume v(m^3/kg) energy u(k)/kg) enthalpy h(k)/kg) entropy s(k)/kg.K) 150 0.960 2577.1 2706.2 7.127 200 1.081 2654.6 2769.1 7.281 250 1.199 2731.4 2870.7 7.508 300 1.316 2808.8 2971.2 7.710 350 1.433 2887.3 3072.1 7.894 400 1.549 2967.1 3173.9 8.064 450 1.666 3048.5 3277.0 8.224 500 1.781 3131.4 3381.6 8.373 600 2.013 3302.2 3487.7 8.515 700 2.244 3479.9 3704.8 8.779 800 2.476 3664.7 3928.8 9.022 900 2.707 3856.3 4159.8 9.248 1000 2.938 4054.8 4397.6 9.460 The Ideal-gas specific heat at constant pressure cp in kJ/kmol • K of water vapor as a function of temperature (in Kelvin, °K) is given by: cp(T) = a + bT + cT2 + dT3 where a = 32.24, b = 0.1923 x 10-2, c = 1.055 x 10-5, d = —3.595 x 10-9. cp = c,, + R, and the gas constant, R= 0.4615 kJ/kg • K. For the computations below, convert the temperature to Kelvin: K=273+°C a. Use spline interpolation to increase the data points in table 1 for T, v, u, h, s, by creating a temperature vector in K Tnew = [150: 50:1000] + 273 and using it in the function 'interpl' to form the new vectors vnew, anew, hnew, Snew; e.g. vnew= interpl(T+273, v, Tnew,'spline'). b. Create a 1x2 subplot: subplot (1, 2, 1) has anew , hnew vs Tnew and the data plots of...

Words: 458 - Pages: 2

Free Essay

Numerical Recipes in C

...Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America). Numerical Recipes in C The Art of Scientific Computing Cambridge New York Port Chester Melbourne Sydney EXXON Research and Engineering Company Harvard-Smithsonian Center for Astrophysics Department of Physics, Cornell University CAMBRIDGE UNIVERSITY PRESS William T. Vetterling Saul A. Teukolsky Brian P. Flannery Second Edition William H. Press Polaroid Corporation Published by the Press Syndicate of the University of Cambridge The Pitt Building, Trumpington Street, Cambridge CB2 1RP 40 West 20th Street, New York, NY 10011-4211, USA 477 Williamstown Road, Port Melbourne, VIC, 3207, Australia Copyright c Cambridge University Press 1988, 1992 except for §13.10 and Appendix B, which are placed into the public domain, and except for all other computer programs and procedures, which are Copyright c Numerical Recipes Software 1987, 1988, 1992...

Words: 24819 - Pages: 100

Free Essay

Me 2173 Matlab Project 1 Numerical Methods Using Matlab

...ME 2173 MATLAB Project 1 Numerical Methods Using MATLAB Click Link Below To Buy: http://hwcampus.com/shop/2173-matlab-project-1/ MATLAB Project 1 1.) Save Table 1 below in an excel file called 'Superheat' and complete the instructions that follow: Table 1: Properties of Superheated Steam at three different Pressures (1MPa =10116 N/m^2) T em p °C p1=0.20 MPa (120.2 C) p2=0.30 MPa (133.5 C) p3=0.40 MPa (143.6 C) volume v1(m^3/kg) energy u1(k)/kg) enthalpy h1(k)/kg) volume v2(m^3/kg) energy u2(k)/kg) enthalpy h2(k)/kg) volume v3(m^3/kg) energy u3(k)/kg) enthalpy h3(k)/kg) 150 0.960 2577.1 0.634 2571.0 0.471 2564.4 2752.8 200 1.081 2654.6 0.716 2651.0 0.534 2647.2 2860.8 250 1.199 2731.4 0.796 2728.9 0.595 2726.4 2964.4 300 1.316 2808.8 0.875 2807.0 0.655 2805.1 3067.1 350 1.433 2887.3 0.954 2885.9 0.714 2884.4 3170 400 1.549 2967.1 1.032 2966.0 0.773 2964.9 3274.1 450 1.666 3048.5 1.109 3047.5 0.831 3046.6 3379 500 1.781 3131.4 1.187 3130.6 0.889 3129.8 3485.4 600 2.013 3302.2 1.341 3301.6 1.006 3301.0 3703.4 700 2.244 3479.9 1.496 3479.5 1.122 3479.0 3927.8 800 2.476 3664.7 1.650 3664.3 1.237 3663.9 4158.7 900 2.707 3856.3 1.804 3856.0 1.353 3855.7 4396.9 1000 2.938 4054.8 1.958 4054.5 1.469 4054.3 4641.9 a. Use a MATLAB command to import the data from an excel file, as a (13x10) matrix 'SteamProps' b. Given that h=u+pv, use the column vectors of the 'SteamProps' matrix with operations to extract...

Words: 663 - Pages: 3

Free Essay

Image Reconstr

...Zhang† Abstract. We propose, analyze, and test an alternating minimization algorithm for recovering images from blurry and noisy observations with total variation (TV) regularization. This algorithm arises from a new half-quadratic model applicable to not only the anisotropic but also the isotropic forms of TV discretizations. The per-iteration computational complexity of the algorithm is three fast Fourier transforms. We establish strong convergence properties for the algorithm including finite convergence for some variables and relatively fast exponential (or q-linear in optimization terminology) convergence for the others. Furthermore, we propose a continuation scheme to accelerate the practical convergence of the algorithm. Extensive numerical results show that our algorithm performs favorably in comparison to several state-of-the-art algorithms. In particular, it runs orders of magnitude faster than the lagged diffusivity algorithm for TV-based deblurring. Some extensions of our algorithm are also discussed. Key words. half-quadratic, image deblurring, isotropic total variation, fast Fourier transform AMS subject classifications. 68U10, 65J22, 65K10, 65T50, 90C25 DOI. 10.1137/080724265 1. Introduction. In this paper, we propose a fast algorithm for reconstructing images from blurry and noisy observations. For simplicity, we assume that the underlying images have square domains, but all discussions can be equally applied to rectangle domains. Let 2 2 2 u0 ∈ Rn be an original...

Words: 12310 - Pages: 50

Free Essay

Gaussian Quadrature Rule for Triangle and Tetrahedron

...Him f ( x1( i1 ) , x2( i2 ) However, we can see that this quadrature is not based on some ‘orthogonal polynomial in 2D’, which is not an optimal solution, so we can expect that we can choose less point to reach the same accuracy. So we should let the quadrature scheme with the following form: I  1 1 1  1 f ( , )d d  Wi f (i ,i ) i 1 n 1.2 non-tensor-product formula As stated before, the non-tensor product form can be made using only 7 points to achieve the same accuracy while the tensor form need 9 points. However, since the orthogonal polynomials are unknown in two and three dimension, these non-tensor-product form are complicated to derive. The corresponding coefficients are usually determined by method of underdetermined coefficients. We shall show the example of triangle in the next section. 1.3 quadrature rule in triangle We now discuss the scenario where we will do...

Words: 2215 - Pages: 9

Free Essay

Is a Child Behavior Better or Worse Than It Was Years Ago? (Article)

...SUBJECT: NUMERICAL METHODS CODE: BUM2313 FACULTY OF INDUSTRIAL SCIENCES & TECHNOLOGY INSTRUCTION: Use MATHEMATICAL SOFTWARE such as EXCEL/ MATLAB/ MAPLE/ C to facilitate the computation. SUBMIT the solution in HARDCOPY & SOFTCOPY. Please save the solution in CD for softcopy. Do the assignment in group and each group consists of five members. QUESTION 1 The nonlinear resistive circuit shown below is described by the nonlinear equation TOPIC: CHAPTER 1, 2,3 & 4 DUE/DURATION: ASSESSMENT: ASSIGNMENT 2nd May 2014 (before 5 P.M) WEEK 11 MARKS: 100 f ( x)  g ( x)  ( E  x) 0 R The function g ( x) gives the current through the nonlinear resistor as a function of the voltage x cross its terminals as shown in the following Figure 1. Figure 1 Assuming that g ( x)  9sin( x  5)  10 and consider the three following cases: Case 1: E  5, R  1, Case 2: E  15, R  3, Case 3: E  4, R  0.5. (a) (b) (c) By using an appropriate method that you have learned in this course, find all the solutions of the nonlinear resistive circuit equation for the all cases. Select suitable starting points for xl and xu by plotting f over the interval [0,4] for the all cases, and visually selecting a good starting point. Find the lowest root over the the interval [0,4] by using (i) Bisection method and (ii) False position method. Use the starting points xl and xu in (b) and terminate the computation if  a  104. (For (a) and (b) use two decimal places, for (c) use eight decimal places)...

Words: 1147 - Pages: 5

Free Essay

Vedic Maths

...List of available projects - HTTrack Website Copier HTTrack Website Copier - Open Source offline browser Index of locally available projects: No categories · vedic maths Mirror and index made by HTTrack Website Copier [XR&CO'2002] © 2002 Xavier Roche & other contributors - Web Design: Leto Kauler. file:///C|/My%20Web%20Sites/vedic%20maths/index.html12/22/2005 8:49:27 AM Vedamu.org - Vedic Mathematics - Course INDEX I. Why Vedic Mathematics? II. Vedic Mathematical Formulae Sutras 1. Ekadhikena Purvena 2. Nikhilam navatascaramam Dasatah 3. Urdhva - tiryagbhyam 4. Paravartya Yojayet 5. Sunyam Samya Samuccaye 6. Anurupye - Sunyamanyat 7. Sankalana - Vyavakalanabhyam 8. Puranapuranabhyam 9. Calana - Kalanabhyam 10. Ekanyunena Purvena Upa - Sutras 1. Anurupyena 2. Adyamadyenantya - mantyena 3. Yavadunam Tavadunikrtya Varganca Yojayet 4. Antyayor Dasakepi 5. Antyayoreva 6. Lopana Sthapanabhyam 7. Vilokanam 8. Gunita Samuccayah : Samuccaya Gunitah III Vedic Mathematics - A briefing 1. Terms and Operations 2. Addition and Subtraction 3. Multiplication 4. Division 5. Miscellaneous Items IV Conclusion file:///C|/My%20Web%20Sites/vedic%20maths/vedic%20maths/www.vedamu.org/Mathematics/course.html12/22/2005 8:49:34 AM Vedamu.org - Vedic Mathematics - Why Vedic Mathematics Vedic Mathematics | Sutras EKĀDHIKENA PŪRVE•A The Sutra (formula) Ekādhikena Pūrvena means: “By one more than the previous one”. i) Squares of numbers ending in 5 : Now we relate the sutra to the ‘squaring of numbers...

Words: 35403 - Pages: 142

Free Essay

Computative Reasoning

...cam.cornell.edu/∼sc932 Education Cornell University Ph.D. Applied Math (current), M.S. Computer Science Ithaca, NY 2008 - 2012(projected) • – Department of Energy Computational Science Graduate Fellow (Full Scholarship, 4 years) – Emphasis on machine learning/data mining and algorithm design/software development related to bioinformatics and optimization • Oregon State University B.Sc. Mathematics, B.Sc. Computational Physics, B.Sc. Physics Corvallis, OR 2004 - 2008 – Graduated Magna Cum Laude with minors in Actuarial Sciences and Mathematical Sciences – Strong emphasis on scientific computing, numerical analysis and software development Skills • Development: C/C++, Python, CUDA, JavaScript, Ruby (Rails), Java, FORTRAN, MATLAB • Numerical Analysis: Optimization, Linear Algebra, ODEs, PDEs, Monte Carlo, Computational Physics, Complex Systems, Iterative Methods, Tomology • Computer Science: Machine Learning, Data Mining, Parallel Programming, Data Structures, Artificial Intelligence, Operating Systems • Discovering and implementing new ideas. Give me an API and a problem and I will figure it out. • Diverse background in Math, Computer Science, Physics and Biology allows me to communicate to a wide scientific and general audience and begin contributing to any group immediately. • I have worked in many places in a myriad of fields. I can readily learn and adapt to a new discipline, area or environment and start pushing real results quickly. Research and Work Experience ...

Words: 673 - Pages: 3

Free Essay

123r3feq

...ME3291 NATIONAL UNIVERSITY OF SINGAPORE ME3291 – NUMERICAL METHODS IN ENGINEERING (Semester 2 : AY2013/2014) Time Allowed : 2 Hours INSTRUCTIONS TO STUDENTS: 1. Please write your Student Number only. Do not write your name. 2. This assessment paper contains FOUR (4) questions and comprises FOUR (4) printed pages. 3. Students are required to answer ALL FOUR (4) questions. 4. Students should write the answers for each question on a new page. 5. This is a CLOSED-BOOK ASSESSMENT with authorized materials. Students are allowed to bring two A4 size sheets of notes/formulae written on both sides. 6. All questions carry equal marks. PAGE 2 ME3291 QUESTION 1 The heat conduction equation in 1D is given by T/ t = b 2 T/ x2. Here T is the temperature and b is the thermal conductivity. You are interested to use the DuFort & Frankel discretization scheme to obtain the finite difference equation of the governing equation because you have heard of its inherent stable properties. The DuFort & Frankel scheme is given as: (Tpq+1 - Tpq-1)/(2 t) = (b / ( x)2) [Tp+1q – (Tpq-1 + Tpq+1) + Tp-1q]. where Tpq = T (p x, q t) is the finite difference representation. You are interested to use the von Neumann (Fourier) stability analysis to determine if it is inherently stable or otherwise. If otherwise, then you show the criterion for the limit of stability. You may assume that Tpq = q ei ph where is the amplification factor,...

Words: 747 - Pages: 3

Free Essay

Jonjonjon

...Industrial Robots and Engineering systems Task 2 One Japanese manufacturer, by installing a flexible manufacturing system, has reduced the number of machines in one facility from 68 to 18, the number of employees from 215 to 12, space requirements from 103000 square feet to 30000 and processing time from 35 days to a 1.5 days. “Ford has poured $4,400,000 into overhauling its Torrence Avenue plant in Chicago, giving it flexible manufacturing capability. This will allow the factory to add new models in as little as two weeks instead of two months or longer. The flexible manufacturing systems used in five of Ford Motor Company's plants will yield a $2.5 billion savings. By the year 2010, Ford will have converted 80 percent of its plants to flexible manufacturing.” (www.ford-motorcompany.com) Looking at local FMS systems, we have Nissan in Sunderland and Greggs in Longbenton. Both these companies have fantastic FMS systems, with virtually no human input, loading- manufacture-unloading is all completed by FMS, this removes the need for human input, which greatly improves quality and output. There are more benefits to FMS, using humans for repetitive work can be dangerous for the body, fatigue is a large part in human operation and if done for long periods of time (i.e. a 10-20 years of work) the human body begins to shut down, creating problems such as arthritis and repetitive strain injury. Industrial Robots and Engineering systems Task 2 One Japanese manufacturer...

Words: 4191 - Pages: 17

Free Essay

Mechanical Engineering Notes

...Intuitive: relationships, innovation, dislike repetition Sensing: facts, established methods Reflective: think quietly Inductive: novices Deductive: experts Data formatting Short: 5 digits Long: 15 for double, 7 for single Short e: 3.1415e+000 Long e: Short g: 5 Long g: 15 Short eng: 5 and power of mult 3 Long eng: 15 and power of mult 3 Bank: 3.14 Euler’s method: new = old + slope step Use clear to clear the variables in storage Use clc to clear the command window If A = [1 2 3; 4 5 6; 7 8 9], then the value for A(2,3) is 6 b(4) will access the fourth element of the column vector b >> A(2,:) if A[1 2 3; 4 5 6; 7 8 9] ans = 4 5 6 Linspace function generates a row vector of equally spaced points linspace(x1, x2, n) >> linspace (0,1,6) ans = 0 0.2000 0.4000 0.6000 0.8000 1.000 Sqrtm is a matrix version of the square root. round (rounds to the nearest integer) E =[ -1.6 -1.5] round(E) = -2 -2 ceil rounds to the nearest integer towards infinity floor rounds to negative infinity M-files put commands in text files (script[commands that are saved on a file - when MATLAB runs a script file] and function files[can accept input arguments from the command window return outputs to the command window but variables created and manipulated within the function do not impact the command window]) outvar = the name of the output variable; arglist = function’s argument list formatted output, or for output generated by combining variable values with...

Words: 513 - Pages: 3

Free Essay

Project

...Name       Date       MTH156 Final Exam Chapters 1-7 50 problems – 5 points each 250 points possible Solve all problems and attach your solutions document in your Individual Forum (IF). Remember to show all steps and check your work carefully. |Correct |Appropriate Steps Shown? |Credit Earned per Problem | |Solution? | | | |Y |Y |Full Credit | |Y |N |Partial Credit | |N |Y |Partial Credit | | N |N |No Credit | | |Remember to simplify your answers. |Grading - | | | |Comments | | | | | | |Write the fraction as a...

Words: 2062 - Pages: 9

Premium Essay

Bollywood

...Day of the Week: January has 31 days. It means that every date in February will be 3 days later than the same date in January(28 is 4 weeks exactly). The below table is calculated in such a way. Remember this table which will help you to calculate. January 0 February 3 March 3 April 6 May 1 June 4 July 6 August 2 September 5 October 0 November 3 December 5 Step1: Ask for the Date. Ex: 23rd June 1986 Step2: Number of the month on the list, June is 4. Step3: Take the date of the month, that is 23 Step4: Take the last 2 digits of the year, that is 86. Step5: Find out the number of leap years. Divide the last 2 digits of the year by 4, 86 divide by 4 is 21. Step6: Now add all the 4 numbers: 4 + 23 + 86 + 21 = 134. Step7: Divide 134 by 7 = 19 remainder 1. The reminder tells you the day. Sunday 0 Monday 1 Tuesday 2 Wednesday 3 Thursday 4 Friday 5 Saturday 6 Answer: Monday Sequential Inputs of numbers with 8 1 x 8 + 1 = 9 12 x 8 + 2 = 98 123 x 8 + 3 = 987 1234 x 8 + 4 = 9876 12345 x 8 + 5 = 98765 123456 x 8 + 6 = 987654 1234567 x 8 + 7 = 9876543 12345678 x 8 + 8 = 98765432 123456789 x 8 + 9 = 987654321 Sequential 1's with 9 1 x 9 + 2 = 11 12 x 9 + 3 = 111 123 x 9 + 4 = 1111 1234 x 9 + 5 = 11111 12345 x 9 + 6 = 111111 123456 x 9 + 7 = 1111111 1234567 x 9 + 8 = 11111111 12345678 x 9 + 9 = 111111111 123456789 x 9 + 10 = 1111111111 Sequential 8's with 9 9 x 9 + 7 = 88 98 x 9 + 6 = 888 987 x 9 + 5 = 8888 9876 x 9 + 4 = 88888 ...

Words: 991 - Pages: 4