You have to calculate the total price. Write a function which will take the name of the burger and place(Mohakhali/Outside of Mohakhali) as input. Use default argument technique for taking place input.
Q: Write a C program and the following functions to compute the average value for the following data ...
A: We need to write a C language program to compute the average value for the data stored in a 2-D arra...
Q: Write a Python program to show the use
A: # Check if "0.5" is an object of float or not if isinstance(0.5, float): # If 0.5 is an object...
Q: Consider the following graph: ![0 (graph_1.-png) 1. Write down the adjacency matrix and adjacency li...
A:
Q: write c++ program to input a year and to check whether it is a leap year or not
A: The above question that is leap year pogram in c++ is written below
Q: ?(?(?)) + big-Theata(g(n)) + ?(?(?)) = O(g(n)) Let O: upper bound, big_Theta: tight bound, o: st...
A: According to the information given:- We have to find out the mention statement is true or false.
Q: Write a program in JAVA Programming langaugue. Given an array of integers, in which each elements re...
A: Required : Java program that finds in an array, the only number which doesn't repeats itself. Constr...
Q: based subnets given the following information. Site address (CIDR Notation) = 192.168.10.0/24 Subn...
A: 192.168.10.0/24 here /24 means total number of network bits is 24. And therefore number of host bits...
Q: Write a Python program to show the use of the isinstance() function to check whether the value 0.5 i...
A: Coded using Python 3.
Q: Question:: Examine the advantages and disadvantages of various system models.
A: Ans: The advantages and disadvantages of various system models is: 1) Waterfall model: Advantages :...
Q: On the Sales Data worksheet, calculate the total earnings for each sales associate. In cell G2, cal...
A: Note: I have given the answer as asked in the question Select the cell G2 Enter the formula in G2 a...
Q: Alice and Bob use the ElGamal scheme with a common prime q= 131 and a primitive root a = 6. Let Bob’...
A: The answer is
Q: im question of search tree in Artificial Intellig
A: Artificial intelligence is the ability of the computer system to perform activities on its own witho...
Q: What happens to two truly-redundant features (i.e., one is literally a copy of the other) if we use ...
A: What happens to two truly-redundant features (i.e., one is literally a copy of the other) if we use ...
Q: RAnswer the following questions by circling either true (T) or false (F) 1. T F Every database has m...
A:
Q: If an AI system "does harm", did it violate the Code of Conduct?, did anybody? What are the ramifica...
A: If an AI system "does harm", did it violate the Code of Conduct?, did anybody? What are the ramifica...
Q: Topic “ the dark side of technology : toward a solutions for higher education students in oman” Requ...
A: answer is
Q: 3) complement numbers: multiplicand (A): 011101, multiplier (B): 110011. Note: use B as the multipie...
A:
Q: List three different ways we can reduce a complex ethical situation that we encounter during our fut...
A: The answer is given below:-
Q: The starter code creates a list of first names and a corresponding list of last names. The user is a...
A: - We need to solve the name matching problem. - We have to use python here.
Q: Write a program in c to implement a Stack using array. In order to implement the stack, program for...
A: Stack is a linear data structure that follows a particular order in which the operations are perform...
Q: Is aacccdcc in the language generated by the following grammar? If so, draw the parse tree. If not, ...
A: Yes the grammar generates aacccdcc.
Q: Case Exercises Amy walked into her office cubicle and sat down. The entire episode With the blond ma...
A:
Q: Networks and Security ( Cisco Packet Tracer ) 1. 802.3 AD is the IEEE specification for the Link Ag...
A: Since you have asked multiple questions, we will solve the first question for you. If you want any s...
Q: (Find the number of days in a month) Write a program that prompts the user to enter the month and ye...
A: Given :- Write a program that prompts the user to enter the month and year anddisplays the number of...
Q: Compare the Von Neumann Architecture and the Little Man computer. What are the weakness and strength...
A: answer is
Q: What is the most effective technique to keep track of RFIS?
A: Introduction: Request for information is a standard business practice that aims to gather written in...
Q: Write a program (WAP) in c to create an undirected graph using adjacency matrix representation. Numb...
A: The code is given below
Q: य जात्वता %3B
A: Hey champ thanks for your question Your solution is ready please check further steps
Q: 1.a. Which of the following is used to join two fiber optic cables with the same type of connector? ...
A: Defined the given statements
Q: Label the Recursion Requirements. Show the Activation Stack for n = 4. int fact (int n) int result:i...
A: The answer is
Q: In one of the labs performed you were to examine a .jpg and write the first 2 bytes of Hexadecimal i...
A: answer is FF D8 JPEG (Joint Photographic Experts Group) is a commonly used method of lossy compress...
Q: 3. Design an automaton with input alphabets {0, 1} that accepts the given set of string. a) Accepts ...
A: Given that, The set of input alphabets= {0,1} Given that, design an automata that accepts the set of...
Q: (double) and a link field. You are asked to create the class LinkedList with the followi instance va...
A:
Q: Suppose that you have a machine with the following specifications Has AC and Rl registers. The conte...
A: I'm providing the answer to above both parts. I hope this will meet your requirement
Q: Isn't it true that different systems save disc folders at different track places on the disc for a r...
A: Solution: Advantages: creating more than one partition has the following" The separation of the ...
Q: Problem 1. Compute (80). (100) and (1200).
A: ∅80 ∅100 ∅1200
Q: eit 1. T F Every database has more than one primary data file. 2. T F Transaction log helps to resto...
A: According to the Question below the solution: As per our company guidelines we are supposed to ans...
Q: how to copy the formula in cell M7 to the range M8:M15, and edit the copied formula to return to the...
A:
Q: The following table describes the projected costs and benefits for the next five years of a proposed...
A: Below table has columns for cumulative cost and benefit for all years Year Cost Benefit Cumulativ...
Q: Write a Python program to show the use of the isinstance() function to check
A: Lets see the solution in the next steps
Q: Question 7 Software Update O macoS Mojave Security Update 2021-005 is available and will be instal. ...
A: According to the information given:- We have to choose the correct option to satisfy the statement ...
Q: What is server?
A: the answer is given below:-
Q: Write a Python program to show the use of the isinstance() function to check whether the value 0.5 i...
A: introduction: Python program to show the use of the isinstance() function to check whether the value...
Q: evaluate 2*(3*5) if the operation is define as a*b=a+b-2ab
A: Given: evaluate 2*(3*5) if the operation is define as a*b=a+b-2ab
Q: 15. Use sets to find the two six-digit numbers with all different digits where the square of the num...
A: c=0for i in range(100000,1000000): s=set(list(map(int, str(i)))) if len(s)==6: m=i*i ...
Q: What is the value of the following expression? 7+18*(6-3)
A: Answer
Q: sk user to enter 10 grade and determine the average of grades. first you have to validate grade and ...
A: The valid grades lies between 0-100 and this validation is done using a while loop and the outer loo...
Q: 3. Write a program that prints the uppercase alphabet in reverse order, (ie, prints ZYXW...CBA) by a...
A: The answer is given below:-
Q: Suppose that instead of each node x keeping the attribute x.p, pointing to x’s parent, it keeps x.su...
A: Pseudocode is an artificial and informal language that helps programmers develop algorithms.
Q: What is the difference between using +/- versus = when setting file permissions? Is there any benefi...
A: Basically +/- is used to add or delete permissions for the file. = is used to specify the new set of...
You want to order Burger from Chillox through the FoodPanda App. You have to calculate the total price. Write a function which will take the name of the burger and place(Mohakhali/Outside of Mohakhali) as input. Use default argument technique for taking place input.
Step by step
Solved in 2 steps with 1 images
- In order for a player to navigate your game, you will need to develop a function or functions using Python script. Your function or functions should do the following: Show the player the different commands they can enter (such as “go North”, “go West”, and “get [item Name]”). Show the player’s status by identifying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room. You could make these separate functions or part of a single function, depending on how you prefer to organize your code.In order for a player to navigate your game, you will need to develop a function or functions using Python script. Your function or functions should do the following: Show the player the different commands they can enter (such as “go North”, “go West”, and “get [item Name]”). Show the player’s status by identifying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room. You could make these separate functions or part of a single function, depending on how you prefer to organize your code. #Sample function showing the goal of the game and move commands def show_instructions(): #print a main menu and the commands print("Dragon Text Adventure Game") print("Collect 6 items to win the game, or be eaten by the dragon.") print("Move commands: go South, go North, go East, go West") print("Add to Inventory: get 'item name'") #In this solution, the player’s status would be shown in a separate function. #You may organize your…A prime number is an integer value that is only divisible by 1 and itself. 2, 3, 5, 7, and 11 are examples of prime numbers. You have been provided with two function definitions: The is_prime () function takes an integer parameter number, and returns True if number is prime and False otherwise. The get_next_prime () function also takes a single integer parameter number, and returns the first prime number larger than it. You must not change the implementation of these 2 functions. Complete the get_primes_list() function that takes a single list of integers called numbers as parameter. You can assume that the integer items in this list will be non-negative. The function must update this list so that items that are not prime numbers are updated to the first prime number larger than them. To implement this function you must call both the is_prime () and get_next_prime () functions. Some examples of the function being called are shown below. Note: the get_primes_list() function does not…
- 3. Which among the following shows a valid use of the Direction enumeration as a parameter to the moveCharacter function? Select al that apply. enum Direction { case north, south, west, east}func moveCharacter(x: Int, y: Int, facing: Direction) {// code here} moveCharacter(x: 0, y: 0, facing: .southwest) moveCharacter(x: 0, y: 0, facing: Direction.north) moveCharacter(x: 0, y: 0, facing: .south) moveCharacter(x: 0, y: 0, facing: Direction.northeast)Create a function named fnTuition that calculates the tuition for a student. This function accepts one parameter, the student ID, and it calls the fnStudentUnits function that you created in task 2. The tuition value for the student calculated according to the following pseudocode: if (student does not exist) or (student units = 0) tuition = 0 else if (student units >= 9) tuition = (full time cost) + (student units) * (per unit cost) else tuition = (part time cost) + (student units) * (per unit cost) Retrieve values of FullTimeCost, PartTimeCost, and PerUnitCost from table Tuition. If there is no student with the ID passed to the function, the function should return -1. Code two tests: 1) a student who has < 9 student units, and 2) for a student who has >= 9 student units. For each test, display StudentID and the result returned by the function. Also, run supportive SELECT query or queries that prove the results to be correct.You have been hired as an app developer for the company. The company plans to make an app for a grocery store where the user can order groceries and see the total amount to be paid in the cart section. To build this feature, you have to write a function that takes 2 arguments. They are: order_items (must be a list) location (default value should be set to "Dhanmondi") Your first task is to take a list of items from the user. Pass the list into the function parameter along with the optional location (Use default argument technique). (Also, no need to take location as input, pass this any value you want.) Your second task is to implement the function. In the function, create a dictionary for the items shown in the table. Calculate the total price of the items passed as a list to the function. Additionally, add a delivery fee of 30 taka if the location is Dhanmondi. Otherwise, add a delivery fee of 70 taka. Finally, return the value and print it. Item Price(Tk) Rice 105 Potato…
- You have been hired as an app developer for the company. The company plans to make an app for a grocery store where the user can order groceries and see the total amount to be paid in the cart section. To build this feature, you have to write a function that takes 2 arguments. They are: order_items (must be a list) location (default value should be set to "Dhanmondi") Your first task is to take a list of items from the user. Pass the list into the function parameter along with the optional location (Use default argument technique). (Also, no need to take location as input, pass this any value you want.) Your second task is to implement the function. In the function, create a dictionary for the items shown in the table. Calculate the total price of the items passed as a list to the function. Additionally, add a delivery fee of 30 taka if the location is Dhanmondi. Otherwise, add a delivery fee of 70 taka. Finally, return the value and print it. Item Price(Tk) Rice 105 Potato…You are working with a team creating a grocery shopping app. The app keeps the information of the items to buy in the list grocery list, and the items that were purchased in purchased list. You need to create a function that returns the items that were purchased, but that were not in the grocery list. For example, if the grocery list is milk, eggs, bacon, and flour; and we purchased milk, chocolate, and muffins, the function should return a list with chocolate and muffins. Drag and drop the expressions needed to implement the required function. def get_extra_items(grocery_list, purchased_list): list3 [] for i in range( ) : if not in list3.append( return list3 len(grocery_list) grocery_list grocery_list[i] purchased_list[i] purchased_list len(purchased_list)Write a set of functions that calculate the cost of movie tickets for a family. These functions should use a pass-by-reference variable that accesses the double running_total variable in main(). Using a loop, keep displaying the ticket prices for each age group: Something like: Model Hall Movie Ticket Box Office Under Age 3 (free) Ages 3-11 ($10.25) Ages 12-54 ($15.50) Age 55 or older ($12) If 4 tickets are purchased (not counting under age 3) then 20% discount Within the loop: Keep asking the user to input the moviegoer age and to enter a zero for the age when they are finished inputting all the family members. Also, within the loop: Keep a running_total that is output to the screenafter each age has been entered. This running_total should be accessed through the functions using apass-by-reference variable. Finally, after the looping is done: Calculate the total cost, including a 7.5% sales tax, and output it to the screen.
- Write a split_check function that returns the amount that each diner must pay to cover the cost of the meal. The function has four parameters: . bill: The amount of the bill. people: The number of diners to split the bill between. tax_percentage: The extra tax percentage to add to the bill. tip_percentage: The extra tip percentage to add to the bill. ● ● The tax or tip percentages are optional and may not be given when calling split_check. Use default parameter values of 0.15 (15%) for tip_percentage, and 0.09 (9%) for tax_percentage. Assume that the tip is calculated from the amount of the bill before tax. Sample output with inputs: 25 2 Cost per diner: $15.50 Sample output with inputs: 100 2 0.075 0.21 Cost per diner: $64.25 Learn how our autograder works 461710.3116374.qx3zqy7 1 # FIXME: Write the split_check function. HINT: Calculate the amount of tip and tax, 2 # add to the bill total, then divide by the number of diners. 3 4 Your solution goes here''' 5 6 bill float(input()) 7…Create a function which returns the type of triangle, given the side lengths. Return the following values if they match the criteria. • No sides equal: "scalene" • Two sides equal: "isosceles" • All sides equal: "equilateral" • Less or more than 3 sides given: "not a triangle" Examples get_triangle_type([2, 6, 5]) "scalene" get_triangle_type([4, 4, 7]) "isosceles" get_triangle_type([8, 8, 8]) "equilateral" get_triangle_type([3, 5, 5, 2]) → "not a triangle"Write a function called music_genre that consumes an int representing a year and returns a string describing a music genre from that decade. Use the chart below: Range of Years Music Genre 1940-1949 Jazz 1950-1959 Rock 1960-1969 Motown 1970-1979 Disco 1980-1989 Pop 1990-1999 Alternative