Write a Python program, in a file called dragon_training.py, to solve the following problem: The Viking village of Berk, located on a remote island, is attacked frequently by dragons, which take livestock, damage property, and endanger lives of the villagers. Hiccup, son of the village chieftain, Stoick the Vast, befriends the rarest of the dragons, Night Fury. All his friends looked forward to having their own dragons to ride. With the help of Night Fury and Hiccup, most kids captured a dragon for themselves when the dragons thronged and attacked the village. To qualify to fully have your dragon under your command, the young Vikings are trained by the great dragon trainer Hoark the Haggard. After the young Vikings have completed their schooling, the young Vikings are put to the test where each one needs to pass 5 different trainings that test both their physical and mental limitations. Each one is evaluated based on their 5 different tests by Hoark. Given the number of participants, the name and the total score of all five tests (full points would be a total of 50 points for all 5 tests) for each participant, select and output the names and points of the participants who received points between 30 to 50 (those who passed the training). For example, given, as input, the values 5, “Astrid”, 35.80, “Hiccup”, 50.0, “Wartihog”, 25.25, ”Speedifist”, 30.75, “Fishlegs”, 15.15     The input prompts, input and output should be as follows (input shown in bold blue): Please enter the number of participants: 5 Please enter the name of the participant: Astrid Please enter the total points: 35.80 Astrid passed the training with 35.80 points. Please enter the name of the participant: Hiccup Please enter the total points: 50.0 Hiccup passed the training with 50.00 points. Please enter the name of the participant: Wartihog Please enter the total points: 25.25 Please enter the name of the participant: Speedifist Please enter the total points: 30.75 Speedifist passed the training with 30.75 points. Please enter the name of the participant: Fishlegs Please enter the total points: 15.15

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 a Python program, in a file called dragon_training.py, to solve the following problem:
The Viking village of Berk, located on a remote island, is attacked frequently by dragons, which take livestock,
damage property, and endanger lives of the villagers. Hiccup, son of the village chieftain, Stoick the Vast,
befriends the rarest of the dragons, Night Fury. All his friends looked forward to having their own dragons to
ride. With the help of Night Fury and Hiccup, most kids captured a dragon for themselves when the dragons
thronged and attacked the village.
To qualify to fully have your dragon under your command, the young Vikings are trained by the great dragon
trainer Hoark the Haggard. After the young Vikings have completed their schooling, the young Vikings are put
to the test where each one needs to pass 5 different trainings that test both their physical and mental
limitations. Each one is evaluated based on their 5 different tests by Hoark.
Given the number of participants, the name and the total score of all five tests (full points would be a total of
50 points for all 5 tests) for each participant, select and output the names and points of the participants who
received points between 30 to 50 (those who passed the training).
For example, given, as input, the values 5, “Astrid”, 35.80, “Hiccup”, 50.0, “Wartihog”, 25.25, ”Speedifist”,
30.75, “Fishlegs”, 15.15
 
 
The input prompts, input and output should be as follows (input shown in bold blue):
Please enter the number of participants: 5
Please enter the name of the participant: Astrid
Please enter the total points: 35.80
Astrid passed the training with 35.80 points.
Please enter the name of the participant: Hiccup
Please enter the total points: 50.0
Hiccup passed the training with 50.00 points.
Please enter the name of the participant: Wartihog
Please enter the total points: 25.25
Please enter the name of the participant: Speedifist
Please enter the total points: 30.75
Speedifist passed the training with 30.75 points.
Please enter the name of the participant: Fishlegs
Please enter the total points: 15.15
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
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