Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been hired by a major robotic pilot training and robot design contract firm to process the data from their most recent field tests

You have been hired by a major robotic pilot training and robot design contract firm to process the data from their most recent field tests in multiple training sites. To make this process easier on yourself, you have decided to write a Python script to automate the process. The company wants the following data on their robots for the training sites: 1) The information of the best pilot, as quantified by their field test average

2) The average performance of each field test

3) A histogram of robot colors from a giving training site

5) The average first and last name lengths, rounded down

Many of these stats seem arbitrary, almost as if they were made for pointless reasons of testing Python skills.

Briefly look over the two .csv files provided. Both were generated using Mockaroo, a random data generation tool.

Perform the following steps:

Prompt for a file name. Read in that file name.

Set up a dictionary to act as a histogram for the robot colors

Calculate the stats specified above. Use whatever data structures you feel you may need - lists, dictionaries, etc

Print the final report to both the console using print and to a file called fn_report.txt. So, if the filename is Pilots1.csv, save the data to Pilots1_report.txt

Below is sample output for Pilots1.csv

Enter a pilot data file name: Pilots1.csv

Test Site Report:

Average first name length: 6

Average last name length: 7

Average field test 1 score: 75

Average field test 2 score: 68

Average field test 3 score: 68

Best pilot data:

Marietta Senn, serial RS:738_1344, Orange, with an average field test score of 99

Colors Histogram---

{'Aquamarine': 54,

'Blue': 66,

'Crimson': 54,

'Fuscia': 50,

'Goldenrod': 44,

'Green': 56,

'Indigo': 44,

'Khaki': 61,

'Maroon': 61,

'Mauv': 35,

'Orange': 57,

'Pink': 47,

'Puce': 54,

'Purple': 51,

'Red': 59,

'Teal': 53,

'Turquoise': 55,

'Violet': 47,

'Yellow': 52}

image text in transcribedimage text in transcribed

File Home Insert Page Layout Formulas Data Review View Help TEA Tell me wha fid first_nam last_name gender robot_ser robot_col field_test field_test field_test_3 1 Joletta Dimeloe Female RS:639_71 Indigo 2 Ketti 3 Felizio Hobden Male 4 Ferdinand RontreeFemale RS:141 65 Maroon 5 Dorelle Kleinsmur Female RS:671_36 Turquoise 6 Gwenni Helstrip Female RS:016_12 Blue 7 Laina HuwsFemale RS:858 43 Violet 8 Whitman Harriagn Male 9 Fonz 57 39 81 Fahy Female RS:438 58 Mauv 78 92 4 RS:786 03 Fuscia 78 54 83 79 97 RS:298 62 Turquoise RS:188_93 Orange RS:062 04 Violet 95 73 69 Yakubov Male 74 81 87 97 87 53 74 10 Edlin 11 Noellyn Searjeant Female RS:010_74 Red 12 Jessa McPhader Female RS:557 18 Crimson 13 Kermie Daid 14 Shelby Gueste Female RS:876 75 Green 15 Onfre Astall 16 Moria Bowley Female RS:827_50 Pink 17 Julieta Coveley Female RS:454_74 Violet 18 Axel 19 Tristam Aspel Pursglove Male 53 81 63 61 73 39 83 53 89 97 52 79 51 Male RS:974_27 Orange 16 Male RS:768 36 Blue 18 19 53 76 49 61 Togwe Male Male RS:399 44 Orange RS:502 38 Turquoise

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

1. How did you go about making your selection?

Answered: 1 week ago