{"id":6814,"date":"2021-10-10T22:07:32","date_gmt":"2021-10-10T22:07:32","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/python-for-data-analysis-computer-science-homework-help\/"},"modified":"2021-10-10T22:07:32","modified_gmt":"2021-10-10T22:07:32","slug":"python-for-data-analysis-computer-science-homework-help","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/python-for-data-analysis-computer-science-homework-help\/","title":{"rendered":"Python for data analysis | Computer Science homework help"},"content":{"rendered":"<div>\n<p>\u00a0<\/p>\n<p>Input file:The input file is named input.txt and contains a list of students\u2019 info and their test scores. Each line starts with a student name, followed by id, gender, and test scores which are separated by a comma.Requirement(s): After reading the input file and processing the information, output the students\u2019 \u00a0records andthe class statistics into the output file as described in the following section. Output file:The output file must be named \u201coutput.txt\u201d to contain the following information sorted in descending alphabetical order. Add an extra blank line between two records of students:1)Students\u2019 records containing: \u2022Id \u2022Full name\u2022Average Score2)Class statistics (print the following information at the bottom of the output file): \u2022Total number of students\u2022Total number of male students\u2022Total number of female students<\/p>\n<p>\u2022The class average score \u2022The females\u2019 \u00a0average score\u2022The males\u2019 \u00a0average score\u2022The highest average score\u2022The lowest average scoreHere is an example of the output file (output.txt): &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;ID: 110 Full name: Adam GabrielAverage score: 76.00&#8230; Total number of students: 7Total number of male students: 5Total number of female students: 2The class average score: &#8230; The females\u2019 \u00a0average score: &#8230; The males\u2019 \u00a0average score: &#8230; The highest average score: &#8230; The lowest average score: &#8230; &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;Use the input file to test your program only. Do not add the content of the input file into your Python script. I am going to use a different input file with a different number of students to test your program<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Input file:The input file is named input.txt and contains a list of students\u2019 info and their test scores. Each line starts with a student name, followed by id, gender, and test scores which are separated by a comma.Requirement(s): After reading the input file and processing the information, output the students\u2019 \u00a0records andthe class statistics [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-6814","post","type-post","status-publish","format-standard","hentry","category-homework-help"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/6814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=6814"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/6814\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=6814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=6814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=6814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}