Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Bartleby Related Questions Icon
Related questions
Question
solve the question(b)
Transcribed Image Text:A student is tracing the following algorithm. The function INT gives the
integer part of any number, eg INT(2.3) = 2 and INT (6.7) = 6.
Line 10 Input A, B
Line 20 Let C = INT(A ÷ B)
Line 30
Let D = B ×ばつ C
Line 40
Let E = A – D
Line 50 If E = 0 then go to line 90
Line 60
Let A = B
Line 70
Let B = E
Line 80 Go to line 20
Line 90 Print B
Line 100 Stop
Trace the algorithm in the case where the input values are:
(a) (i) A = 36 and B = 16;
(ii) A = 11 and B = 7.
(b) State the purpose of the algorithm.
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
This is a popular solution
bartleby
Trending nowThis is a popular solution!
bartleby
Step by stepSolved in 2 steps
Knowledge Booster
Background pattern image
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- just f please thank youarrow_forward%9 ۱/۱ العنوان قص نسخ لصق حذف قص Conduct stability analysis under extreme load condition for the design of a 50 m high concrete gravity dam. All Assume that the bi dam behaves as a monolithic structure. Normal operating level: 45 m Shear strength at foundation level: 5 MPa Compressive strength of concrete: 30 MPa Compressive strength of base material: 25 MPa Friction coefficient at foundation level: 0.75 Specific weight of concrete: 24 kN/m Specific gravity of water: 10 kN/m Level of sediment accumulated in the reservoir: 5 m Underwater specific gravity of the sediment accumulated in the reservoir: 11 kN/m (Q-32", K-(1-sinQy(1+sinQ)] Earthquake coefficients: k 0.1, k. 0.05 Ice force: 100 kN/m Tail water is not present. It is envisaged that the lifting pressure will be reduced by 40% with the drainage structures to be constructed. で 0.00 T el | Marrow_forwardhow do you use the SCC to solve the 2-SATarrow_forward
- Please answer Parts D and E of this problemarrow_forwardIn the following matrix, identify the coefficient, variable, and constant. 3x 5y 9 2x 3y 5arrow_forwardHow can we plot the first two components in a figure with horizontal axis (x) corresponding to the dimensions and vertical axis (y) corresponding to the magnitude of the component in this dimension. There will be 2 traces with d points in this figure. (python3)arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Text book imageDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationText book imageStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONText book imageDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- Text book imageC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONText book imageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningText book imageProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education