{"id":236988,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"http:\/\/essaysparlor.com\/computer-science-basic-python-language\/"},"modified":"2018-10-24T09:14:49","modified_gmt":"2018-10-24T09:14:49","slug":"computer-science-basic-python-language","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/computer-science-basic-python-language\/","title":{"rendered":"Computer Science &#8211; BASIC \/ PYTHON language"},"content":{"rendered":"<p>Computer Science &#8211; BASIC \/ PYTHON language<\/p>\n<p>Write program with functions  and Arrays to implement the following.<\/p>\n<p>Miles Driven Application using Arrays and Functions.<\/p>\n<p> Create two arrays<\/p>\n<p>    Monthname$(12)    This array contains month names such as \ufffd\ufffd\ufffdJanuary\ufffd\ufffd\ufffd, \ufffd\ufffd\ufffdFebruary\ufffd\ufffd\ufffd, etc<br \/>\n    MilesDriven(12)   \ufffd\ufffd\ufffd This array contains the miles driven for the month.<\/p>\n<p>Notice that the MonthNames$(12) array is a string array while MilesDriven(12) is numeric array.<\/p>\n<p>     Write a program to display the menu with the following options and ask for the user input.<\/p>\n<p>                     Type P to populate miles and month name.<\/p>\n<p>                    Type S to search for Month.<\/p>\n<p>                    Type M to search for Month name with smallest Miles<\/p>\n<p>                    Type L to search for MonthName with Largest Miles<\/p>\n<p>                   Type E to exit.<\/p>\n<p>    \ufffd\ufffd        If the user types P.<br \/>\n          Populate all the  arrays.<br \/>\n    \ufffd\ufffd        If the user types S then:<br \/>\n        Ask the user for the Month Name.<br \/>\n         Search the array for that Month Name and find its position in the Monthname array.<br \/>\n         Display the MonthName$, and MilesDriven at the position found during the above search.<br \/>\n    \ufffd\ufffd        If the user types M then:<br \/>\n         Search the array for  the smallest miles in MilesDriven array  and  find its position.<br \/>\n         Display the MonthName$, and MilesDriven at the position found during the above search.<br \/>\n    \ufffd\ufffd        If the user types L then:<br \/>\n         Search the array for the largest Miles in MilesDriven array and  find its position.<br \/>\n         Display the MonthName$, and MilesDriven at the position found during the above search.<br \/>\n         If the user types E. then:<br \/>\n         Terminate the program.<br \/>\n         If the user types any other option:<br \/>\n        Display the message \ufffd\ufffd\ufffdInvalid Choice. Try again\ufffd\ufffd\ufffd and go back and display the menu.<\/p>\n<p>PS: You program must keep displaying the menu until the user types the option E, to exit the program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Computer Science &#8211; BASIC \/ PYTHON language Write program with functions and Arrays to implement the following. Miles Driven Application using Arrays and Functions. Create two arrays Monthname$(12) This array contains month names such as \ufffd\ufffd\ufffdJanuary\ufffd\ufffd\ufffd, \ufffd\ufffd\ufffdFebruary\ufffd\ufffd\ufffd, etc MilesDriven(12) \ufffd\ufffd\ufffd <a href=\"https:\/\/www.benedictsol.com\/blogs\/computer-science-basic-python-language\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-236988","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/236988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=236988"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/236988\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=236988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=236988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=236988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}