Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write this in Pseudocode and explain

#10 – Write the pseudocode statements that will take the given array, multiply each value by 2, and save the results into a new array. Then, display every value in the new array using a loop.

 

Constant Integer SIZE = 5

Declare Real myRealArray [SIZE] = 12.5, 13, 13.5, 14, 14.5

 

Write the pseudocode below:



#11 – Do these statements evaluate to be true or false?  

 

NOT true evaluates to:     

true AND true evaluates to:      

false OR NOT false evaluates to:    

true OR false evaluates to:    

false AND false evaluates to:    

false OR true evaluates to:    

NOT false AND true evaluates to: 

(NOT (true OR false)) AND true evaluates to:     

(NOT true) OR (NOT false) evaluates to:   

NOT (false OR (NOT  true)) evaluates to:

(NOT ((false AND false) AND (true OR false)) OR (true OR NOT false)) evaluates to:  

 

 

#12a - Define what source code refers to:

 

What is the file extension used for Python source code?

 

 

#12b - Define what executable code refers to:

 

What is a file extension used for executable code?



 

#12c -Fill in the definitions below and provide examples for each: 

 

Logic error:

 

An example of a pseudocode logic error would be (explain why): 

 

Syntax error:

 

An example of a pseudocode syntax error would be (explain why): 

 

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Binary numbers
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education