3. In a class the physical education teacher recorded the height of the students. For a contest he has to create a list of the students according to the height in ascending order and then find a person of height 58 INCH to fit into a particular sport. Note: Use bubble sort to sort the students and linear search to search the student.

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

can you tell me the answers of these 2 questions.

computer science and engineering. 

Python

Search the Web
Document - WordPad
File
Home
View
A Find
Cut
- 14
- A A
主 三,,
Calibri
Соpy
ab Replace
ас
-2.E E 5 Picture
Paste
Paint Date and Insert
BIU abe X, X²
O Select all
drawing
time
object
Clipboard
Font
Paragraph
Insert
Editing
3. 1. 2. 1 1:1
3.1. 4. 5.1 6 7:
I 10. 1 11: 12. 1 13
| 14: . 15 16. 1 17.
3. In a class the physical education teacher recorded the height of the
students. For a contest he has to create a list of the students according
to the height in ascending order and then find a person of height 58
INCH to fit into a particular sport.
Note: Use bubble sort to sort the students and linear search to search
the student.
INPUT
Enter the number of students N
For each N student
Enter the regno.
Enter the height.
OUTPUT
List of students (sorted in order of height)
Register no. of the student having height as 58 inch / NOT FOUND.
100%
ENG
08:59
O Type here to search
A%3D
18°C
US
16-01-2022
4
...
>
Transcribed Image Text:Search the Web Document - WordPad File Home View A Find Cut - 14 - A A 主 三,, Calibri Соpy ab Replace ас -2.E E 5 Picture Paste Paint Date and Insert BIU abe X, X² O Select all drawing time object Clipboard Font Paragraph Insert Editing 3. 1. 2. 1 1:1 3.1. 4. 5.1 6 7: I 10. 1 11: 12. 1 13 | 14: . 15 16. 1 17. 3. In a class the physical education teacher recorded the height of the students. For a contest he has to create a list of the students according to the height in ascending order and then find a person of height 58 INCH to fit into a particular sport. Note: Use bubble sort to sort the students and linear search to search the student. INPUT Enter the number of students N For each N student Enter the regno. Enter the height. OUTPUT List of students (sorted in order of height) Register no. of the student having height as 58 inch / NOT FOUND. 100% ENG 08:59 O Type here to search A%3D 18°C US 16-01-2022 4 ... >
Search the Web
Document - WordPad
File
Home
View
A Find
Cut
- 14
- A A
主 三,,
Calibri
Соpy
ab Replace
ас
-2.E E 5 Picture
Paste
Paint Date and Insert
BIU abe X, X²
O Select all
drawing
time
object
Clipboard
Font
Paragraph
Insert
Editing
3. 1. 2. 1 1:1
Y. 1 I
3. 4.I
5. 6 7.1
8
9.1 10. 1 11: 12. 13
| 14: . 15. 16. 1 17.
2. A wine seller had three types of wine. Find the least possible
number of casks of equal size in which different types of wine can be
filled without mixing. For example if 403 litres of 1st kind, 434 litres of
2nd kind and 465 litres of 3rd kind of wines are available , then 42
equal size casks
required to fill the wine without mixing. Also check
that the minimum quantity of each kind of wine must be above 400
litres otherwise gives an error message that "Number of litres must be
above 400"
INPUT:
Number of litres of 1st kind
Number of litres of 2nd kind
Number of litres of 3rd kind
OUTPUT:
Total Number of equal size Casks required to fill the three wines.
100%
ENG
08:59
O Type here to search
A%3D
18°C
US
16-01-2022
4
...
>
Transcribed Image Text:Search the Web Document - WordPad File Home View A Find Cut - 14 - A A 主 三,, Calibri Соpy ab Replace ас -2.E E 5 Picture Paste Paint Date and Insert BIU abe X, X² O Select all drawing time object Clipboard Font Paragraph Insert Editing 3. 1. 2. 1 1:1 Y. 1 I 3. 4.I 5. 6 7.1 8 9.1 10. 1 11: 12. 13 | 14: . 15. 16. 1 17. 2. A wine seller had three types of wine. Find the least possible number of casks of equal size in which different types of wine can be filled without mixing. For example if 403 litres of 1st kind, 434 litres of 2nd kind and 465 litres of 3rd kind of wines are available , then 42 equal size casks required to fill the wine without mixing. Also check that the minimum quantity of each kind of wine must be above 400 litres otherwise gives an error message that "Number of litres must be above 400" INPUT: Number of litres of 1st kind Number of litres of 2nd kind Number of litres of 3rd kind OUTPUT: Total Number of equal size Casks required to fill the three wines. 100% ENG 08:59 O Type here to search A%3D 18°C US 16-01-2022 4 ... >
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Lists
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.
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