programming / computer science question """ What is the error in the code below? """finished = False while finished != False: value = int(input("Enter a number")) value = value * 3 print("The value is ", value)
Q: Host A sends a 1500-byte packet to Host B.
A: The answer is
Q: (In python)- Given an array of integers, return the difference of the first 3 elements in the array.…
A: def user_list(): user_input = input("Enter a list of integers: ") user_list = user_input.split()…
Q: implemet pseudo code for Typical anary tree representation.
A: An anary tree (one with theoretically endless children per node) is typically represented as a…
Q: al anary tree representation write its pseudo code to impl
A: Introduction: Below pseudo code to implement for anary tree representation Pseudocode is a…
Q: What is the return value of the function call func(5) given the recursive function definition shown…
A: Function A reusable group of statements in a programme called a function are used to carry out…
Q: L*M+N-O/P-Q
A: The answer is given below.
Q: Write Java code to declare the following fields and assign them a correct value (of your choice) 1.…
A: Answer:
Q: Write a Numpy program to create a 10x10 array filled with random values, and compute Sum of all…
A:
Q: 42, Which of the following statements about IPv6 are correct? A. IPv6 address…
A: The correct options are given below:
Q: 7. Create an application containing an array that stores 10 integers. The application should call…
A: C++ INTRODUCTION:- 1. The computer language C++, pronounced "see plus plus," was developed as an…
Q: Needham and Schroeder suggest the following variant of their protocol: 1. Alice → Bob : Alice 2.…
A: Stolen Session key:- In the field of computer science, session hijacking, also referred to as cookie…
Q: Generate ten random numbers (s1-s10) using the linear congruently generator using the seed (s0) as…
A:
Q: problem didnt even answer D and E
A: In this question we will simplify the expression using Boolean expression Let's solve.
Q: 40, Which of the following load balancing algorithms are supported by firewalls? A. Source Hash…
A: Load Balancing Algorithm:- The optimal server farm device for processing an incoming data packet is…
Q: Using Assembly Language, list the registers that can be used for the conditional Jump instructions…
A: The question has been answered in step2
Q: 5. Suppose a user wishes to edit the file xyzzy in a capability-based system. How the editor cannot…
A: The solution to the given question is: In a feature-based system , permissions are set on files for…
Q: Please describe the techniques of Substitution Cipher and Transposition Cipher
A: Technique for Substitution Ciphers:Plain text characters are swapped out for other letters,…
Q: I can barely read this.
A: 192.168.20.0: 192 means Class C address (24 network bits and 8 host bits) Given subnet mask:…
Q: Which of the following statements is/are true? (Check all that apply.) □ If f = 0 (n) and g = 0…
A: Big-O notation is a mathematical notation that describes the bounded behavior of functions when…
Q: For x86 assembly, how many registers can be referenced in an instruction?
A: The x86 assembly language can be denoted as the bunch of languages that are utilized to give some…
Q: Write a Numpy program to create a 10x10 array filled with random values, and compute Sum of all…
A: Coded using Python 3
Q: 1) To delete an entry with the key 'a' from the dictionary dna_counts={'g': 13, 'c': 3, 't': 1, 'a':…
A: We need to find command to perform required operations in Python.
Q: Using JAVA code: Please make a program that will show the step-by-step tablular procedure on how…
A: The programme was written in Java. Please study the source code and output before continuing.
Q: 1. Which of the following tools can be used to manage and maintain a storage system through command…
A: A Command-line interface (CLI) is a command-based user interface used to run programs, manage…
Q: Pseudo code for The structure of a node in a tree and the code for Deletion.
A: Let's see the answer:
Q: you have to choose more than one option!!
A: According to the information given:- We have to choose the correct options in order to the satisfy…
Q: Explain the terms ‘Record’, ‘Field’ and ‘Table’ in terms of database.
A: Database It is data that is set up for simple access, the executives, and refreshing. PC databases…
Q: Justify the requirement for a trained project manager to oversee complicated tasks.
A: According to the question the project manager always has power to conduct something explain everyone…
Q: CPU Clock = 1 GHz 1 OP requires 5 clock cycles (arithmetic instruction, conditional, etc.) 1 memory…
A:
Q: you have to choose more than one option
A: Options: The configuration of the telnet user level is incorrect The password entered by the user…
Q: What is true of the following method? public void method (Node firstNode) { while (firstNode !=…
A: //first lets understand the method given public void method(Node firstNode)//takes object of Node…
Q: In deep learning, given a convolutional neural network, what does pooling entail? - Is it…
A: Neural networks, also known as artificial neural networks (ANNs) or simulated neural networks…
Q: Make a program that will implement the output below using multi-dimensional array and loop. Note:…
A: This question answer is as follows,
Q: 1. State application of soft computing.
A:
Q: What is the output of the following if statement? a, b = 12,5 if a + b: print('True') print('False')…
A: The output of the given python program is explained with comments in the next step.
Q: Draw a data model for the following entities, considering the entities as representing a system for…
A: Data models which refers to the one that it is visual representations of an enterprise's data…
Q: Question 3 The Unicode character value U+0FA7 has a UTF-8 value of? Full explain this question…
A: Answer: We need to write the what will be the value of the Unicode character of U+0FA7 in the UTF-8…
Q: Design and verify some pilot runs to validate the designed model and to determine other needed…
A: Use of modeling and simulation in test design and evaluationAs part of system development, many…
Q: Regarding the deep belief network, can it better control the “chance-driven” error of restricted…
A: Boltzmann machine The locality, Hebbian nature, parallelism, and likeness of Boltzmann machines'…
Q: 31, Which of the following options may be caused by the failure to establish an OSPF neighbor…
A: The OSPF protocol is often used in the networking.
Q: What is the output of the following? car = { "brand": "Ford", "model": "Mustang", "year": 1964 }
A: Python Use: Python is a popular computer programming language used to create software and…
Q: Write the signature of a method named send that has one parameter of type String, and does not…
A: Given: The send method has one parameter of type String and the return type is void. To find: Â The…
Q: In python language: What does csv reader() function do?
A: Python:-Python was created by Guido van Rossum and is an interpreted, object-oriented, high-level…
Q: Algorithm for Using Schreier Generators in Schreier-Sims method Input : a set S of generators of a…
A: Introduction Schreier-Sims process (var B: partial base; var S: 9-element set; I integer);(*…
Q: the recurrence relations belc the blanks for the closed form
A: Solution - In the given question, we have to find the closed form expression and rate of growth of…
Q: 28. In a linear linked list. a. the next pointer of each node has the value NULL b. the last node…
A: A Linear Linked List is a standard linked list, a linear data structure where the data is not stored…
Q: 53, VBST constructs a spanning tree in each VLAN so that traffic from different VLANs is load…
A: VBST corresponds to STP or RSTP running on each VLAN. Spanning trees in different VLANs are…
Q: tudent is correct and why. Your post should be at least two paragraphs. Scenario: One friend…
A: Solution - In the given question, we have to tell which student is correct and why.
Q: Given a network configuration as below, Network address: 192.168.232.0 Subnet mask: 255.255.255.224…
A: According to Bartleby Guidelines we need to answer only three sub questions so I have answered first…
"""
What is the error in the code below?
"""finished = False
while finished != False:
value = int(input("Enter a number"))
value = value * 3
print("The value is ", value)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- int y=0,i; for (int i=0;i<10;++i) y+=i; 36 66 45 55z = int('10') what is the value of z?Python Coding- Except ValueError Using Except ValueError, change the program so that if the user inputs something other than "Y" or "N", the program will print to the counsole "Please input Y or N" and re-ask if the user would like the instructions. Here is the coding: def ins():print("There are 23 cases, containing amounts of money varying between $1 and $25k!") print("Type 'Y' for yes or 'N' for no.")userInstruction=input("Do you want instructions on how to play?").upper() if userInstruction=="Y":ins()elif userInstruction:print("OK! Let's begin!")winsound.Beep(345, 500)time.sleep(0.5)else:print("Please input 'Y' or 'N'.") Thank you!
- How to attempt? Question : The Card Game One day, Fred and his N friends were playing a card game in which each player throws a card with a number written on it. The cards are such that a number X is written on front of the card, and the negative of that number is written on the back side of the card. This game has the following rules: - Each of the N players is asked to throw a card. After all the N cards are thrown, Fred has to flip one or more cards in consecutive order, only once. Your task is to help Fred flip the cards in such a way that the sum of the numbers, on front face of the cards, is the maximum.Filling the Pool (Deprecated) Write a program that calculates the time neccessary to completely fill an empty pool with water. We will assume that the pool is rectangular and the depth is uniform. All input values in this program will be integers. Prompt the user to enter the pool dimensions - length, width, and depth (unit: feet) - as well as the rate at which water can be put into the pool (unit: gallons per minute). Using these values, calculate and display the time (in minutes) needed to fill the pool from completely empty to completely full. Note: you should calculate the volume of the pool (as cubic feet) and then determine the rate (in cubic feet per minute) that water can be put into the pool. Assume that there are 7.48 gallons in one cubic foot. Your program should run like the examples shown below: Enter pool dimensions Length: 10 Width: 8 Depth: 7 Water entry rate: 14 The pool will fill completely in 299.2 minutesdef f(x: float) -> int: return int(x) def g(x: str) -> float: return float(x) y = f(g("3.14")) Select all of the following statements that are true: y's inferred data type is float O y 's inferred data type is str O y's inferred data type is int There is a type error in this program None of the above are true
- Identify the errors in this code and how to fix them. #Arguments i-current e-Voltage #Compute the resistance using i=e/r def main(): voltage1=float(input("Please enter the voltage of circuit 1 :")) current1=float(input("Please enter the current of 1 :")) voltage2=float(input("\nPlease enter the voltage of circuit 2 :")) current2=float(input("Please enter the voltage of current 2 :")) voltage3=float(input("\nPlease enter the voltage of circuit 3 :")) current3=float(input("Please enter the current of circuit 3 :")) r1=resistance(i1,e1) r2=resistance(i2,e2) r3=resistance(i3,e3) rs=series_resistance(r1,r2,r3) rp=parallel_resistance(r1,r2,r3) print("\n In a parallel circuit arrangement the total current would be:%.2f'%rp) print('Resistance in Series Circuit :%.2f'%rs) def resistance(i,e): return e/i #Compute the total resistance as per the given formula def parallel_resistance(r1,r2,r3): return 1.0/((1.0/r1)+(1.0/r2)+(1.0/r3)) #Compute the series resistance…*Python General Foo’s Last Chance Gas station sits on route 190 on the edge of Death Valley. There is no other gas station for 200 miles. You are to write a Python program to help drivers if they need gas. The program asks for user input:• Vehicle Name, any name is valid (e.g. Toyota, Mercedes, Ford, GM, Chrysler, Nissan, Kia, Honda, etc.)• Vehicle Type: valid types are C: Car , S: SUV or T: Truck (note lower case letters are also allowed, e.g. c, s, or t; all others are invalid). If a user enters incorrect type, a message to that effect should be printed and no other information printed• The capacity of the gas tank, in gallons• The indication of the gas gauge in percent (full=100, three-quarters full=75, and so on, empty=0) Assume that a car’s gas mileage is 32 miles per gallon, a SUV’s gas mileage is 25 miles per gallon and a truck’s mileage is 15 miles per gallon. Depending upon user input, your program prints a message to either put a minimum amount of gas in the vehicle or…15. Speed Conversion ChartYour friend Amanda, who lives in the United States, just bought an antique European sports car. The car’s speedometer works in kilometers per hour. The formulafor converting kilometers per hour to miles per hour is:MPH = KPH * 0.6214In the formula, MPH is the speed in miles per hour and KPH is the speed in kilometersper hour. Amanda is afraid she will get a speeding ticket, and has asked you to write aprogram that displays a list of speeds in kilometers per hour with their values convertedto miles per hour. The list should display the speeds from 60 kilometers per hourthrough 130 kilometers per hour, in increments of 5 kilometers per hour. (In otherwords, it should display 60 kph, 65 kph, 70 kph, and so forth, up through 130 kph.) made in visual studio 2017
- be recor #include #include minutes #include limit on int func(int, int, int, int); main(){ srand(time(NULL)); int a, b, c, fNum; printf("Choose three different numbers between 0-39:"); scanf ("%d%d%d", &a, &b, &c); fNum = func (a, b, c, 25); printf("\nThe result: %d", fNum); } int func (int ul, int u2, int u3, int iter){ srand (time (NULL)); int n1=0, i=0, count=0; for (;iint the given statement 10 timnum1 = int(input("Enter first value:"))num2 = int(input("Enter second value:"))num3 = int(input("Enter third value:")) # Type your code after this line. if (num1 >= num2) and (num1 >= num3):print("Enter first value:" "Enter second value:" "Enter third value:" 'Largest value is:' , num1 )elif (num2 >= num1) and (num2 >= num3):print("Enter first value:" "Enter second value:" "Enter third value:" 'Largest value is:' , num2 )elif (num3 >= num1) and (num3 >= num2):print("Enter first value:" "Enter second value:" "Enter third value:" 'Largest value is:' , num3 ) What is wrong with thisSEE MORE QUESTIONS