Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question
Design an algorithm to prompt the user for an integer, evaluates the formula 2 * x³ – 1, and prints
the original value and the evaluated result. Write a program of the algorithm developed for the
question. /
expand button
Transcribed Image Text:Design an algorithm to prompt the user for an integer, evaluates the formula 2 * x³ – 1, and prints the original value and the evaluated result. Write a program of the algorithm developed for the question. /
Expert Solution
Check Mark
Algorithm
  1. START
  2. Declare 2 integer variables x and result
  3. Take the one integer number to be added, as inputs in variables x
  4. calculate 2*x*x*x -1 and put it in  variable result
  5. Print the value of variable x
  6. print the value of result.
  7. END
Knowledge Booster
Background pattern image
Recommended textbooks for you
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