
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
Concept explainers
Question
thumb_up100%
I need a

Transcribed Image Text:1. Design an application that accepts 10 numbers and displays them in descending
order.
![// Pseudocode PLD Chapter 8 #1 pg. 361
// Start
//
//
//
Declarations
num SIZE = 10
%3D
num NUMBERS[SIZE]
//
num i
//
num j
//
num temp
for i = 0 to SIZE - 1
output "Please enter a number:
input NUMBERS[i]
//
//
//
//
//
//
//
//
endfor
for i = 0 to SIZE - 2
for j = 0 to SIZE - 2
if (NUMBERS[j] < NUMBERS[j+1])
NUMBERS[j]
temp
NUMBERS[j] = NUMBERS[j+1]
NUMBERS [j+1]
//
//
temp
//
//
//
//
//
//
//
//
// Stop
endif
endfor
endfor
output "Sorted List"
output "==========
for i = 0 to SIZE - 1
output "Number ", i + 1, ": ", NUMBERS[i]
endfor](https://content.bartleby.com/qna-images/question/98ae3667-83ae-4ce7-ac69-d14987bf1ccb/2ab2abc8-eac6-4450-a4d4-3ae403831657/sgpv3in_thumbnail.jpeg)
Transcribed Image Text:// Pseudocode PLD Chapter 8 #1 pg. 361
// Start
//
//
//
Declarations
num SIZE = 10
%3D
num NUMBERS[SIZE]
//
num i
//
num j
//
num temp
for i = 0 to SIZE - 1
output "Please enter a number:
input NUMBERS[i]
//
//
//
//
//
//
//
//
endfor
for i = 0 to SIZE - 2
for j = 0 to SIZE - 2
if (NUMBERS[j] < NUMBERS[j+1])
NUMBERS[j]
temp
NUMBERS[j] = NUMBERS[j+1]
NUMBERS [j+1]
//
//
temp
//
//
//
//
//
//
//
//
// Stop
endif
endfor
endfor
output "Sorted List"
output "==========
for i = 0 to SIZE - 1
output "Number ", i + 1, ": ", NUMBERS[i]
endfor
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 3 images

Knowledge Booster
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
- Please us c++ to make the code thank you very much!arrow_forwardI need help with this assignment, I need to make a struct to implement a limited Python style list in C++. When you bootstrap the exercise, you will be given a main.cpp file, with a simple program written in it. The program declares a Python style list and appends several elements to it, before printing it out to the terminal. The file is where I would setup my code #ifndef PY_LIST_H #define PY_LIST_H #include <iostream> struct PyList { // Declare your vars here PyList(){ // Implement this } void append(int x){ // Implement this } void append(char x){ // Implement this } void append(float x){ // Implement this } ~PyList(){ // Implement this } }; std::ostream& operator<<(std::ostream& os, const PyList& pyList){ os << '['; // Complete this implementation os << ']'; return os; } #endif Here is the main.cpp file that it must be able to run and the float must not have floating zeros #include <iostream> #include "PyList.h"…arrow_forwardI need help making some C++ code. It needs to ask the user to enter their monthly cost for their rent or mortgage payment, phones, internet, cable, and utility bills. Then I need it to display the monthly cost of these expenses and the annual cost.arrow_forward
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education