Create a python code that calculates which asks what amount of cake in grams from the user. Then the code calculates the sugar which is 1 / 6 of it, and chocolate which is 1 / 3 of it, and flour which is 1/2 of it
Q: How many bits must be reallocated from host ID to network ID to create 8 subnets? a. 6 b. 4 c. 3…
A: We are going to understand how many bits will be needed in order to create 8-subnets. Please refer…
Q: A router processes which layers of the IP stack? Where does a link-layer switch operate? Who…
A: In the OSI reference model the the layer 3 is called Network layer.The network layer takes the…
Q: Explain what the word "biometric device" means.
A: Justification: For the purposes of identification, biometrics refers to the measuring of…
Q: What is the impact of the file deletion algorithm on Symbian, Android, and iPhone?
A: The Dalvik Virtual Machine (DVM) is the operating system's core component and is critical to the…
Q: What kind of code is contained within the try block of a try-catch statement?
A: HI THEREI AM ADDING ANSWER BELOW PLEASE GO THROUGH IT THANK YOU
Q: Display available Hotels (by ID, Name, and address) in the City of Chicago with a maximum capacity…
A: In this we have to connect 3 tables hotel, guest, booking by using join
Q: Create the framework, then consider the issues and bottlenecks that will arise if you implement each…
A: The framework issues are as follows: Aspects of legacy components Cross-references between framework…
Q: Write the SQL statement to generate the report the following 7. List all payments within a…
A: 7. SELECT * FROM payments WHERE date-column >= '2016-12-1' ;
Q: d additional checking method at the trans
A: Why do you believe we need additional checking method at the transport layer if the data connection…
Q: What kind of scanning could be performed to see if a server is running Telnet?
A: Telnet: Telnet is a bidirectional interactive text-oriented communication protocol that uses a…
Q: Explain ALIGN in a few sentences.
A: Align definition: adverb 1 : to position the books on the shelf He identified himself with the…
Q: Define the conditions that must be met for test-driven development to be successful. How would you…
A: Rather than building your code first and then adding a test to validate it retroactively,…
Q: Discuss the various approaches that can be used in content-based recommendation and in each case,…
A:
Q: Show the implementation of Linear Queue queue size =5 Enqueue(13) Enqueue(15) Enqueue(18) Enqueue(0)…
A: Below is the implementation of queue class using Programming language C++.
Q: web standards can mean many different things for many people. For some it could be table-free sites…
A: Quality code is an important measure of developing any software. The quality code is clear, well…
Q: Determine how technological advancements have aided in the improvement of internal communication…
A: Distinguish how technology advancements have aided in the development of intra-organizational…
Q: What is the purpose of the text that appears on a button?
A: It elaborates the button's function. If there is no text on the button, then how the user will come…
Q: What is a Boolean expression, and how does it work?
A: BOOLEAN EXPRESSION: In programming languages, a Boolean expression is an expression.When evaluated,…
Q: What does having the option of using an FMS imply?
A: FMS should be a product designed to easily can make the changes in the type and quantity of product…
Q: Java Practical Assignments 1. Write an application that throws and catches an Arithmeticinception…
A: Find the required code given as below and output : As per company guidelines we are supposed to…
Q: Consider data with two Boolean attributes A and B. A B Label count of examples 50 1 50 1 1 100 What…
A: The contingency table after splitting on attributes A and B are : A=1 A=0 + 1 0 - 1 2…
Q: Consider a binary tree with 14 levels and a root node at depth 0. What is the maximum number of…
A: Please refer to the following step for the complete solution of the problem above.
Q: Write a python program with a loop that asks the user to enter a series of positive numbers. The…
A: Given: We have to write a Python program with a loop that asks the user to enter a series of…
Q: Please solve quickly with matlab
A: Let us see the answers below.
Q: When anything goes wrong or doesn't work as expected, this is referred to as an error. What is a…
A: What is test oracle How it function in real world?
Q: Define a Programming Paradigm. Describe the procedural, object-oriented, and event-driven paradigms…
A: Programming paradigm: It is a method or style of programming in a particular language. Specific…
Q: What are the variables that affect the information security environment of an organization?
A: Introduction: Numerous components impact and change an association's data security climate to keep…
Q: What are some of the most typical things that host software firewalls are utilized to safeguard?…
A: Software firewall: Host-based firewalls can catch viruses, spyware, and other hazardous programmes…
Q: Please write a program to find the following values form the array: int a[] = {20, 34, 18, 9, 43,…
A: Firstly variables like min,max,sum need to be declared. Assign first elements to min and max. Then…
Q: Why is it hard to detect all uninitialized variable usage during compilation?
A: According to the information given:- We have to define Why is it hard to detect all uninitialized…
Q: Write c program Get 5 numbers from user and print minimum of it
A: HI THEREI AM ADDING C CODE AS PER REQUIREMENT BELOWPLEASE GO THROUGH IT THANK YOU
Q: List the possible values for the SizeMode property of a PictureBox control.
A: The "PictureBox" control has the following values: An ImageBox "is found in the "ToolBox" in the…
Q: Please solve quickly with matlab
A: Question 9: The answer is inv(A).
Q: Explain all Possible Types of the "MATLAB User Define Function structures" with clear examples.your…
A: Please find below your answer:-
Q: Explain the command queue in a few words.
A: A command queue is a queue used in computer science to allow the execution of commands to be…
Q: When processing data stored in an array, when should you use a for loop rather than a foreach loop?
A: What are some of the advantages of using a for-each loop over a for loop? I: If you want to access…
Q: Plot the following in a line graph
A: The question is to plot the data in a line graph. As no software is mentioned here Excel has been…
Q: Write c program Get 5 numbers from user and print maximum number from it
A: Given below is a C program to find maximum number among five numbers. Here we declare five numbers…
Q: Explain Alignment Restrictions in a few words.
A: Introduction: The term "alignment" relates to the layout of data in memory, and it especially refers…
Q: what is data Soroge kchnology and How does it work !
A: Answer ; Data storage technology is basically simultaneously storing the collection of data /…
Q: In computer science, what is the full form of PSU?
A: Component of computer: Both hardware and software components make up a computer. Hardware…
Q: Describe the different types of members that make up a class.
A: The members of a class, also known as class members, are the elements of a class, such as its…
Q: Write the SQL statement to generate the report the following 4. Generate a report for all…
A: 4=> Generate a report for all employees in Descending order with their assigned offices SELECT…
Q: show the implementation of insertion sort 7, 25, 6, 9,17, 8, 13,3,0
A: HI THERE I AM ADDING ANSWER BELOWPLEASE GO THROUGH IT THANK YOU
Q: What are the Internet protocol stack's five layers? What are each of these tiers' primary…
A: Justification: The TCP/IP protocol is based on a five-layer networking paradigm. The physical, data…
Q: what i8 the Procachane -Por obtoiring a MAC Oakd ves for a virlual ned work CVNIC)! inker face Cord
A: Introduction: MAC stands for Media Access Control and each network contains a MAC address just to…
Q: What is seaver, and houw dose it work?
A: A server stores, sends and receives data.
Q: When the Categorized button is chosen in the Properties panel, what does it do?
A: Button that has been classified When the Categorized button is pressed, the Categorized object's…
Q: Q1- Please solve quickly with mat Two parametric equations are given by: x = cos' (t), y = sin³(t) X…
A: First, we will create a vector using linspace function to initialize "t". Then we will create four…
Q: How many times will the array {45, 47, 48, 51, 53, 54, 56, 57, 67, 70, 72, 73, 74, 79, 82, 85, 87,…
A: Here, we are going to check that how many times will the array {45, 47, 48, 51, 53, 54, 56, 57, 67,…
Create a python code that calculates which asks what amount of cake in grams from the user. Then the code calculates the sugar which is 1 / 6 of it, and chocolate which is 1 / 3 of it, and flour which is 1/2 of it
should look like this:
Amount of Grams in cake (G): 200
#Then calculates:
Sugar required: 33.3 G
Chocolate required: 66.7 G
Flour required: 100 G
Step by step
Solved in 3 steps with 1 images
- Create a python code that calculates which asks what amount of cake in grams from the user. Then the code calculates the sugar which is 1 / 6 of it, and chocolate which is 1 / 3 of it, and flour which is 1/2 of it DO NOT USE: %.1f should look like this: Amount of Grams in cake (G): 200 #Then calculates: Sugar required: 33.3 G Chocolate required: 66.7 G Flour required: 100 GCreate a python code that calculates which asks what amount of cake in grams from the user. Then the code calculates the sugar which is 1 / 6 of it, and chocolate which is 1 / 3 of it, and flour which is 1/2 of it make all numbers float ( so decimal answer only), dont round it up.DO NOT USE: %.1f should look like this: Amount of Grams in cake (G): 200 #Then calculates: Sugar required: 33.3 G Chocolate required: 66.7 G Flour required: 100 GYou are given a table, hotel_ratings, where each row takes the form [hotel_name, number_of_reviews, rating). You are tasked with finding the number of hotels with a rating over three, and has been reviewed at least 30 times. Write a Python code that calculates the number of hotels satisfying above conditions.
- Python Programming Only Please: The Fast Freight Shipping Company charges the following rates: Weight of Package Rate per Pound2 pounds or less $1.50Over 2 pounds but not more than 6 pounds $3.00Over 6 pounds but not more than 10 pounds $4.00Over 10 pounds $4.75 Write a program that asks the user to enter the weight of a package then displays the shipping charges.Write a python program to calculate the speed of any car and display time, distant and speed. If the speed is less than or equal to 60, display “slow driving” If the speed is between 70 and 120, display “normal speed” If the speed is between 130 and 160, calculate the total fine using the following equation, total fine = number of exceeding allowing limit * price of the fine If the speed is more than or equal to 180, display “Go to jail and pay additional fine” Otherwise display “normal driving speed”Write a Python program to accept the employee ID, employee name, job, basic salary and display the employee ID, employee name and total salary. Formula: Total salary = Basic salary + allowances. The allowances are calculated based on the following table. Job Allowances Manager Storekeeper Salesman Cashier 15% of basic salary 10% of basic salary 5% of basic salary 5% of basic salary Note: The value of total salary should be printed with three decimal places. Include the following comments at the beginning of your code. Make sure that you replace and with your information. # File name: salary.py # Student ID: # Student name:
- Write a Python code for A dramatic theater has three seating sections, and it charges the following prices for tickets in each section: section A seats cost $20 each, section B seats cost $15 each, and section C seats cost $10 each. The theater has 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program that asks for the number of tickets sold in each section and then displays the amount of income generated from ticket sales. The program should validate the numbers that are entered for each section. Make sure to generalize the process so that a theater can have any number of sections.Write Python code for the following programming problem below. Last year, a local college implemented rooftop gardens as a way to promote energy efficiency and save money. Write a program that will allow the user to enter the energy bills from January to December for the year prior to going green. Next, allow the user to enter the energy bills from January to December of the past year after going green. The program should calculate the energy difference from the two years and display the two years worth of data, along with the savings. Hints: Create three arrays of size 12 each. The first array will store the first year of energy costs, the second array will store the second year after going green, and the third array will store the difference. Also, create a string array that stores the month names. These variables might be defined as follows: notGreenCost = [0] * 12 goneGreenCost = [0] * 12 savings = [0] * 12 months = ['January', 'February', 'March', 'April', 'May', 'June', 'July',…This is python programming but there wasn't an category for it. You have to find the code for it to fit with the information. ==========================================================================PGM #1 Property Tax===========================================================================A county collects property taxes on the assessment value of property,which is 60 percent of the property’s actual value. If one acre of landis valued at $10,000, its assessment value is $6,000. The property taxis then 75¢ for each $100 of the assessment value. The tax for the oneacre assessed at $6,000 will be $45.Write a program that asks for the actual value of a piece of propertyand displays the assessment value and property tax in a block,formatted form as shown in the example below.VALIDATE INPUT VALUES.Example Output Results:Enter the actual value of the property: 500000Assessment Value: $ 300000.00Property Tax: $ 2250.00VALIDATE ALL INPUT.------------------------------------------------TEST…
- In Python please: Create an investment-value calculator) Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculations is as follows: Use text fields for users to enter the investment amount, years, and interest rate. Display the future amount in a text field when the user clicks the Calculate buttonusing python: PROBLEM: when creating an account: it should ask for the Full name, address, mobile number and mode of payment. If a mobile number is less than 10 digits, the output will say please retry again. The mode of payment are given two choices 1. Cash on delivery 2. Credit/Debit Card payment. If the user didn't choose either 1 or 2 then out will say please retry again. CODE: from random import choice print("1.Carbonara 100php \n2.Fries 80php\n3.Chicken nuggest 150php") #take the choice of the item itemChoice = int(input()) #Show the delivery services print("Choose the delivery services :-\n1.Foodie panda\n2.Food deliver") #Take the input for the delivery service deliveryChoice = int(input()) #If the delivery choice is if(deliveryChoice == 1): #Check for the item if(itemChoice == 1): #calculate discount for the carbonara Discount = 100*0.01 print("You get discount of :- ",Discount,"php") print("Discounted price :-…A company decided to give a year-end bonus of 5% (of his/her salary) to employee if his/her year of service is 5 to 10 years and 10% (of his/her salary) to employee if his/her year of service is more than 10 years, but for the employee that do not meet the minimum criteria their bonus is P500.00 only. Create a Python program that will ask the employee's name, salary and year of service and then print the bonus amount based on their years of service and salary.