1. Ask how many pasties are being purchased. Use a loop to ask for the flavor and price of each pasty. These will be put into a list or a dictionary. 2. Tax and tip are both based on the total pasty price. 3. 4. Format the output as shown.
Q: Ahmed intends to establish an international software development firm to design and create banking s...
A: Introduction : Some common challenges that new software engineers face include the following: As a n...
Q: What would the code trace be like if n=6?
A: The program is written in C Language. Check the program screenshot for the correct indentation. Plea...
Q: (b) Show the results of inserting the keys В, R, A, U, H, S, F, T, K, Р, М, L, N, W, Q in order into...
A: A B-tree is a tree data structure that keeps data sorted and allows searches, insertions and deletio...
Q: What is a digital certificate, and how does it work? What is a certificate authority, and how does i...
A: Introduction: Digital Certificate: A certificate is a piece of paper that certifies its information....
Q: The waterfall model and the iterative-and-incremental approach are related, but what exactly is the ...
A: Introduction : Waterfall :- The waterfall model is one of the most used and straightforward softwar...
Q: s a student, how are you affected by the changes brought by Information Technology to your life
A: Perhaps the greatest test in instruction is dealing with every understudy in the homeroom. It's anyt...
Q: Questions for you to try 1. Convert each of the following values to an 8-bit unsigned binary value. ...
A: . Convert each of the following values to an 8-bit unsigned binaryvalue. 3510 -110110110110 (10110...
Q: Create a function that removes the correct members from the input. Use the following examples to unl...
A: Algorithm - Created a Method with argument. use the logic in the below argument. push the sum of...
Q: For the solenoid valve, write a program to run on the Pico that will wait for a button press from th...
A: SPDX-License-Identifier: BSD-3-Clause; .program resistor_dac_5bit ; Drive one of the 5-bit resistor...
Q: Which of the following is the correct way to perform matrix multiplication between matrices x and y?...
A: Please upvote me please I am providing you the answers to your questions. Answer 6) dot(x,y) ...
Q: If you want to set last (8-bit) of a binary number and reset the other bits, you could set a mask wi...
A: if you want to set last(8-bit) of binary number and reset the other bits, you could set a mask with ...
Q: What is the mechanism by which the DHCP protocol controls errors?
A: DHCP (Dynamic Host Configuration Protocol) is a an application layer protocol that enables you to: V...
Q: A microcomputer's processing capability might be increased by using expansion cards.
A: Introduction : An expansion card is a kind of electronic card that may be used to expand a computer'...
Q: In this project, you'll implement one of the following CPU scheduling algorithms by writing a CPU si...
A: The First Come First Serve algorithm is a scheduling algorithms that runs the early arriving process...
Q: When it comes to storing a letter of the alphabet or a little number, how much memory do you need?
A: It depends on the encoding method. Old style ASCII (American Standard Code for Information Intercha...
Q: II. Laboratory Excercises A. Polynomials f(x) = x* – 8x³ – 9x – 6 g(x) = x³ + x? – 3x + 1 %3D h(x) =...
A: ANSWER:-
Q: Explain how to use Microsoft Excel's Goal Seek feature and construct a spreadsheet that demonstrates...
A: Microsoft excel: An Microsoft Excel is a spread sheets developed using by Microsoft for Windows and...
Q: convert_std_units(ser): This function takes one input: ser: a Series. Takes a Series of numeric valu...
A: The Answer is
Q: Question: - JOY is a CS (B.TECH) student and now has days she wants to work on marketing. AND you ar...
A: Used to perform large tasks (think thousands or millions of records!) That will exceed the normal pr...
Q: The Simpson's three point method to approximate a one dimensional definite integral with uniform dis...
A: the simpson's three point method to approximate a one dimensional definite integral with uniform dis...
Q: H.W Find the Adjoint to the following matrix -2 31 Y = 1 3. 1. 2)
A:
Q: tion risk E[y(x) - ties for noise ter erm. prove the trainin
A: A model hyperparameter is a configuration that is external to the model and whose value cannot be es...
Q: In this paper, you will discuss the MongoDB data model and its advantages over the relational data m...
A: answer is
Q: Create a task that takes a series of words and returns the highest score of goals. Each letter of th...
A: Algorithm: Firstly we will take the input form the user or some fix string Then we will run a ragex ...
Q: A method defined within a class and whose header does NOT include the static modifier is known as wh...
A: A class is a collection of methods and members and there are various types of methods and let's expl...
Q: You could come across the term "inheritance" in current Windows network and operating systems from t...
A: Introduction: At the time of an individual's death, inheritance is the process of passing on private...
Q: Define the term expression in your own words.
A: 1: the act, process, or occurrence of portraying or communicating information or ideas via the use o...
Q: Compile the following C code snippet with optimization level O0 and O1 using armv7-a clang 11.0.1 co...
A: Explanation: Some changes must be made to the code for performing optimization. The main function s...
Q: 5 Please convert the following C/C++ function to RISC-V assembly (RV321).
A: Swap -> void swap(int v[], int k) { int temp; temp = v[k]; v[k] = v[k+1]; v[k+1] = temp; } Cover...
Q: Find the result for the following question step by step Question 1 Fill the following table with the...
A: Solution:-
Q: a young generation and witnessing the happenings these past few months, tell what are thing you see ...
A: Lets see the solution.
Q: 3. Let f : A → B. Then 1gf = f and fla = f. Hint. You may use the fact that fg, for functions f, g, ...
A: ANSWER:-
Q: IF you want to save file (made by Microsoft * Office Word 2010) as PDF a) Click the File tab, Select...
A: Changing a Microsoft Word record over to PDF design is extremely simple - - starting with Word 2010,...
Q: Explain how information technology has influenced your life.
A: Introduction: Information and Communication TechnologyAssume we're in the midst of the American Civi...
Q: There are n different sizes of boxes, from 1 to n. There is an unlimited supply of boxes of each siz...
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful. Tha...
Q: Discuss the following outdoor propagation Longley-rice model Okumura model Hata model
A: Outdoor propagation models involve estimation of propagation loss over irregular terrains such as mo...
Q: Consider the following schedule of transactions R1(A) W1(A) R2(A) W2(B) W1(B) Commit1 Commit2 Which ...
A: We can observe from the preceding transaction that it complies with all of the conflict serializable...
Q: Write a Python program to print true if the user enetered non-negative number is a multiple of 3 or ...
A: Required:- Write a Python program to print true if the user entered non-negative number is a multipl...
Q: nambe
A: given - 40 protocols and port nambers
Q: How cloud-based services and apps are accessed and utilized are discussed in detail here.
A: Let's see the solution in the next steps
Q: The decimal equivalent of hex number 1B52 is O 6794 Skip O 6993 6949 O 6994
A: Actually, binary numbers are nothing but a 0's and 1's.
Q: alpindi. Both these branches offer same flavour of ice-cream (vanilla, strawberry, and mango) but Ra...
A: Lets see the solution.
Q: Now convert the above into Third Normal Form. Indicate all primary keys and foreign keys.
A: Normalization is the term given to the process of organizing the data inside a given database. This ...
Q: In this Java program, run this in netbeans ide and show the picture of the output. Thank you See th...
A: In the given program, several swing components are used. Further explanation is in the following ste...
Q: Write a program that takes an integer n as input and prints out the following pattern: 14 149 149 16...
A:
Q: IN PYTHON WAP to input a string s from the user and check whether the string ends with "thon" or not...
A: Here, we are going to check a user entered string s ends with "thon" or not. Using endswith() method...
Q: Cite five (5) widgets that can be found in home/dashboard
A: Widgets is customizing the home screen/dashboard. Its an "at-a-glance" view of data and functionalit...
Q: What procedures are involved in data storage?
A: Data storage: Data is the most important to Systems and these data is stored in systems in data stor...
Q: al light sensor to detect ght warning to people it
A: The suggestion is provided as,
Q: A byte-oriented (8bit/timeslot) TDM communication link with a bandwidth of 300HZ – 4KHZ is used to c...
A: answer is 32kbps
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- Common Time Zones Function Name: commonTimeZones() Parameters: code1( str ), code2( str) Returns: list of common time zones ( list ) Description: You and your friend live in different countries, but you figure there's a chance that both of you might be in the same time zone. Thus, you want to find out the list of possible time zones that you and your friend could both be in. Given two country codes, write a function that returns a list of the time zones the two countries have in common. Be sure not to include any duplicate time zones. If the two country codes do not have any common time zones, return the string 'No Common Time Zones' instead. Note: You can assume that the codes will always be valid. example test cases: >>> commonTimeZones('can', 'usa') [UTC-08:00', 'UTC-07:00', 'UTC-06:00', 'UTC-05:00', 'UTC-04:00] >>> commonTimeZones('rus', 'chn') [UTC+08:00] For this assignment, use the REST countries API (https://restcountries.com/#api-endpoints-v2). For all of your requests, make…Brussel's choice def brussels_choice_step(n, mink, maxk): This problem is adapted from another jovial video "The Brussel's Choice" of Numberphile (a site so British that you just know there has to be a Trevor and a Colin somewhere in there) whose first five minutes you should watch to get an idea of what is going on. This function should compute and return the list of all numbers that the positive integer n can be converted to by treating it as a string and replacing some substring m of its digits with the new substring of either 2*m or m/2, the latter substitution allowed only when m is even so that dividing it by two produces an integer. This function should return the list of numbers that can be produced from n in a single step. To keep the results more manageable, we also impose an additional constraint that the number of digits in the chosen substring m must be between mink and maxk, inclusive. The returned list must contain the numbers in ascending sorted order.Python task: Task OverviewYour task is to implement a variation of the classic word game Hangman, which involves playersguessing the letters in a word chosen at random with a finite number of guesses. While there arealternate versions such as category Hangman and Wheel of Fortune, which involve playersguessing idioms, places, names and so on, we will be sticking with the traditional version.If you are unfamiliar with the rules of the game, please read the following before starting:http://en.wikipedia.org/wiki/Hangman_(game). You can also play an online version here. Don’tbe intimidated - You’ll be given some skeleton code to get you started, it's easier than it looks! You will implement a function called main that allows users to play an interactive hangman gameagainst the computer. The computer should pick a word, and players should then try to guess lettersin the word until they win or run out of guesses.Here is the overarching behaviour we expect:1. The program should load a list of…
- Python Assignment: In India McDonald's has the n number of customers and they are famous for their taste and quality so they plan to Organise the challenge for foody people. What is the challenge is?| you have taken a food challenge from the Chef and now you have to eat directly the Y burgers. You will eat as follows: At the first minute you will eat exactly the X burgers and every minute after that you will eat twice the number of burgers you ate the minute before. As you can get tired of food, Chef also lets you take a break from eating for one minute. When you start eating again after a break, your food streaks are reset, which means that in the first minute after the break you will eat X burgers and every minute after that you will eat the burgers you ate twice the last minute. Allow a1, a2, ., let it be your meal length in minutes. The cook needs to have all the ai different in pairs. Get the minimum number of minutes you need to eat Y burgers directly or decide that it is not…Python:Temperature Statistics Learning Objectives In this lab, you will Create a function to match the specifications Use the if/else statements to detect a range Use lists to store the results Instructions Sahara desert explorers call us for help! They want to know some statistics about the temperature in Sahara, but sometimes their thermometer fails to record the proper temperature. Help them to find which temperature is from correct recordings and which is broken and calculate statistics on given data. During the night, the temperature in Sahara varies from -4 to -10 С. During the day, the temperature varies from 20 to 50 C. Create a function check_input(temperature) that will return True if the temperature given as input can be from Sahara and False if it is from a broken thermometer (i.e., outside of the expected range). Steps Write a program to use the check_input to create a list of valid temperatures and compute their statistics: Create a list, where you will store the…Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered in the unit so far, including the usage of variables, input and output, data types, selection, iteration, functions and data structures. Above all else, it tests your ability to design and then implement a solution to a problem using these concepts. Assignment Overview You are required to design and implement a "Word Game" program in which the user must identify a randomly selected "password" from a list of 8 words. The 8 words are selected at random from the list of 100 words in the starter file (word_game.py) provided to you with this assignment brief. Please use the starter file as the basis of your assignment code. The user has 4 attempts in which to guess the password. Whenever they guess incorrectly, they are told how many of the letters are the same between the word they guessed and the password. For example, if the password is "COMEDY" and…
- Ocelot/PuTTY(C Language) Through this programming assignment, the students will learn to do the following: Learn to work with command line options and arguments Gain more experience with Makefiles Gain more experience with Unix Learn to use some of the available math funtions available with C Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to do a mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program. You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate the number…In C++ please, using basic programming one coding The main menu should show the available options: Show the roster: Displays all the player names and jersey numbers in a numbered list. Ex: 1. Susan Martinez (33), 2. Jake Smith (21), etc. Add a player: Prompts the user to type the player's full name and jersey number. Then adds the player to the roster. Remove a player: Displays the roster and prompts the user to enter the number of the player to remove. Then removes the player from the roster. Quit: Quits the program. The program should display the main menu after the user shows the roster, adds a player, or removes a player. The program only terminates when the user chooses the quit option. Data validation should be used where appropriate. Ex: The user should not be able to choose an option that doesn't exist or delete a player that doesn't exist. The roster should be kept in alphabetic order by the players' full names. Ex: If Alice Chang (9) is added to a roster with Jake Smith and…PYTHON CODING This function takes a list of points and then returns a new list of points, which starts with the first point that was given in the list, and then followed by points closest to the start point. Here is the function that needs to be created: def solution_path(points) : # insert code here return path Please use any of the following function to develop the solution_path function Distance function - calculates the distance between two points def distance(p1, p2) : distance = sqrt (((p1 [0] - p2 [0]) **2) + ((p1 [1] - p2 [1]) **2)) return (distance) Find_closest function - calculates the closest point to the starting point def find_closest(start_point, remaining_points): closest_distance = 99999 for coordinate in remaining_points: dist = distance(start_point, coordinate) if(dist < closest_distance): closest_distance = dist closest_point = coordinate return closest_point Path_distance function -…
- LAB ASSIGNMENTS IMPORTANT: you should complete the PDP thinking process for each program. Turn in items: 1) book_list.py: you can adapt your Chapter 4 book_list.py Lab program. The program summarizes costs of a book list. It uses all of our standard mipo_ex features. This program summarizes a book list. Enter the number of books that you need: In this version of the program you must use pylnputPlus functions to perform all the input validation and for the main() loop decision. Please enter a whole number: three Enter a number greater than 0: 3 Enter the name of book #1: The Mueller Report Enter cost of The Mueller Report, to the nearest dollar: Please enter a whole number: 18 Enter the name of book #2: Educated: A Memoir Adjust your program to allow book prices to include $ and cents. Restrict individual book prices to $100 maxium. Enter cost of Educated: A Memoir, to the nearest dollar: Please enter a whole number: 24 Enter the name of book #3: Becoming Enter cost of Becoming, to the…16 Type the correct answer in the box. Use numerals instead of words. If necessary, use / for the fraction bar. var num2 = 32; var num1 = 12; var rem=num2 % num1; while(rem> 0) { num2 = num1; num1 = rem; rem =num2 9% num1; document.write(num1): The output of the document.write statement at the end of this block is Reset Next m. All rights reserved. 5896New Tab ity.com/player/ -ster A H 1 2 3 4 . recursive function: a function that calls itself Question #9 Dropdown You wrote a program that used numbers for color choices on a shopping website. colors = {1:'red', 2:"blue', 3:'purple"} The data structure used for colors is a dictionary Question #10 $ X + Ⓒ v6.2.1-0055.20221212.mainline 7 5 two-dimensional list dictionary A one-dimensional list A M 31 DELL & 7 O A * 8 > G English Sign out SAVE V Kinley Section 3 of 4 SUBMIT © 2016 Glynlyon, Inc. All rights reserved. Mar 28 [ 1:09