I really need help with this python programming assignment asap
please double check indentations, thank you
Here is the full code
========================================================================================
food_count = {} def selection(prompt, count): l = [] for _ in range(count): choice = input(prompt) l.append(choice) return l def menu(option_list): for i in range(len(option_list)): print('{0}) {1}'.format(i + 1, option_list[i]),end=' ') choice=input(': ') return option_list[int(choice)-1] def choose(option_list): choice = menu(option_list) food_count[choice] += 1 def report(entrees_list,dessert_list,drinks_list): print('***DINNER PARTY ORDERS***') print('The entree orders are as follows:') for item in entrees_list: print('\t{0}: {1}'.format(item,food_count.get(item))) print('The dessert orders are as follows:') for item in dessert_list: print('\t{0}: {1}'.format(item, food_count.get(item))) print('The drinks orders are as follows:') for item in drinks_list: print('\t{0}: {1}'.format(item, food_count.get(item))) def main(): guests = int(input('Enter the number of guest attending: ')) entree = int(input('Enter the number of entree choices: ')) dessert = int(input('Enter the number of dessert choices: ')) drinks = int(input('Enter the number of drink choices: ')) print('Entrees') entrees_list = selection('Enter an entree option: ', entree) print('Desserts') dessert_list = selection('Enter a dessert option: ', dessert) print('Drinks') drinks_list = selection('Enter a drink option: ', drinks) for i in entrees_list: food_count[i]=0 for i in dessert_list: food_count[i]=0 for i in drinks_list: food_count[i]=0 for i in range(1, guests + 1): print('Guest #{0}:'.format(i)) choose(entrees_list) choose(dessert_list) choose(drinks_list) report(entrees_list,dessert_list,drinks_list) main()
========================================================================================
I really need help with this python programming assignment asap please double check indentations, thank you...
I really need help with this python programming assignment Program Requirements For part 2, i need the following functions • get floats(): It take a single integer argument and returns a list of floats. where it was something like this def get_floats(n): lst = [] for i in range(1,n+1): val = float(input('Enter float '+str(i)+': ')) lst.append(val) return lst • summer(): This non-void function takes a single list argument, and returns the sum of the list. However, it does not use...
PYTHON PROGRAMMING NEED HELP ASAP You will write an application to manage music collections -- a music collection is a list of albums. The named tuples used for Albums and Songs are defined below, and an example of a music collection is given. (DO NOT HARDCODE THE VALUES FOR MUSIC!) Album = namedtuple('Album', 'id artist title year songs') Song = namedtuple('Song', 'track title length play_count') MUSIC = [ Album("1", "Peter Gabriel", "Up", 2002, [Song(1, "Darkness", 411, 5), Song(2, "Growing Up",...
I REALLY NEED HELP WITH THIS ASAP!! THANK YOU. In the context of the Web, the main applications include building meta-search engines, combining ranking functions, selecting documents based on multiple criteria. When we use Google search engine to search information, Google always show us a long list links one by one. Suppose Google considers combining ranking results from different sources. At beginning they treat each source equally. In other words, they just sum all ranks from various sources for each...
Help Please on JAVA Project: Validating the input is where I need help. Thank you Requirements description: Assume you work part-time at a sandwich store. As the only employee who knows java programming, you help to write a sandwich ordering application for the store. The following is a brief requirement description with some sample output. 1. Selecting bread When the program starts, it first shows a list/menu of sandwich breads and their prices, then asks a user to select a...
I need help with this assignment in C++,
please!
*** The instructions and programming style details
are crucial for this assignment!
Goal: Your assignment is to write a C+ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I'O manipulators, and the string class. File format: Here is an example of a file...
Can someone please help me with this Python code? Thank you in advance, Zybooks keeps giving me errors. Thanks in advance!! This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program). (1) Extend the ItemToPurchase class to contain a new attribute. (2 pts) item_description (string) - Set to "none" in default constructor Implement the following method for the ItemToPurchase class. print_item_description() - Prints item_description attribute for an ItemToPurchase object. Has an ItemToPurchase parameter. Ex. of...
//Need help ASAP in c++ please. Appreciate it! Thank you!! //This is the current code I have. #include <iostream> #include <sstream> #include <iomanip> using namespace std; class googlePlayApp { private: string name; double rating; int numInstalls; int numReviews; double price; public: googlePlayApp(string, double, int, int, double); ~ googlePlayApp(); googlePlayApp(); string getName(); double getRating(); int getNumInstalls(); int getNumReviews(); string getPrice(); void setName(string); void setRating(double); void setNumInstalls(int); void setNumReviews(int); void setPrice(double); }; googlePlayApp::googlePlayApp(string n, double r, int ni, int nr, double pr)...
Hello Guys. I need help with this its in java In this project you will implement a Java program that will print several shapes and patterns according to uses input. This program will allow the use to select the type (say, rectangle, triangle, or diamond), the size and the fill character for a shape. All operations will be performed based on the user input which will respond to a dynamic menu that will be presented. Specifically, the menu will guide...