Write a program which repeatedly reads numbers until the user enters "done". Once "done" is entered, print out the count, sum and average of the numbers entered. If the user enters anything other than a number, detect their mistake using try and except and print an error message and skip to the next number.
Q: how each important principle from the cybersecurity discipline is applied to overall system security
A: Intro Cybersecurity: It is an implementation made for protecting computers, network and information…
Q: Explore the concept of abstraction by comparing and contrasting it with some instances drawn from…
A: Our assignment: The debate center's on the significance of abstraction in software engineering and…
Q: Think about the function of wireless networks in nations that are still developing. Certain…
A: Answer: Families using many electronic devices, such as computers, laptops, and other mobile…
Q: ysis. Is it possible to raise the overall quality of the code that is generated as a consequence of…
A: Introduction: Displaying the software process utilizing a abstraction called a Software Model. The…
Q: The greatest articles are those that can be found in the ACM Digital Library (DL) or the IEEE…
A: Start: Choose a published paper (from ACM DL or IEEE CSDL) on a Network Operating System topic (For…
Q: What are the desired results of the creation of software? Do you think it would be useful to add…
A: Given: The process of creating, designing, deploying, and maintaining software is referred to as…
Q: How exactly does the existence of resident monitors lead to improvements in the functioning of the…
A: A computer's functions generally involve the following tasks: data collection, processing, delivery…
Q: What would you say are the three most important elements that make up an information system?
A: Given Data: Please list three facets of Information System Information systems include three…
Q: What are some of the various software testing techniques that are utilized in the creation of…
A: Explain the software engineering testing methods. The tests include: Tests Unit 1Focus on software's…
Q: Q.1: MIPS is an architecture having its own Assembly Language. You are learning x86 assembly…
A: The answer as given below:
Q: haring systems
A: Highlights of time-sharing operating systems A time-shared operating system utilizes CPU scheduling…
Q: actions would you take to fix a computer
A: No operating system or piece of software is immaculate; there will generally be an issue while…
Q: What exactly is the function of a command and control system?
A: In C++, there are two types of control structures: The flow control is determined by the control…
Q: Imagine for a moment supposing there were no computers or the internet. How different would our…
A: Given: In a world without the internet, you'd be using a traditional chequebook and phoning your…
Q: What is the function of a firewall, and how do you set one up?
A: Given: What is a firewall's purpose, and how do you set one up?
Q: Give some guidelines on how to properly cite sources. What are the consequences of stealing someone…
A: Lounch: Provide some criteria for citing sources. What are the ramifications of plagiarizing?…
Q: What are the benefits and drawbacks of having data processing carried out in a decentralized…
A: Define: A distribution system is a collection of networked computers that works together to solve a…
Q: Using Rational Rose and taking into consideration all the required specifications, draw the…
A: According to the bartleby guidelines we can answer only three subpart in case of multiple questions.…
Q: What are some of the most frequent computer programs that are used to solve the issue of the least…
A: Definition: List some of the most common computer applications of the minimal spanning tree issue. A…
Q: How would you characterize Centos in terms of server operating systems, and how does it differ from…
A: Introduction: CentOS is also called CentOS Linux is a Linux distribution that provides a free and…
Q: Nanotechnology has the potential to have a large influence on the treatment of sickness, the mending…
A: Introduction: If nanotechnology could help humans live longer than they do now, then it would…
Q: What is the output of Loop 1? for (var i-0; i<5; i++) { console.log(i); } console.log(i); When this…
A: In loop1, we have used var for declaration and in loop2, we have used let for declaration var scope…
Q: Please provide an explanation of the several methods and choices that may be used while building and…
A: Definition: Horizontal scalability is achieved via distributed databases, which are intended to…
Q: sing arrays, write a C++ program that will let a user input the array size (how many elements).…
A: Algorithm to sort the elements and their sum and average Input an array of length n. First add all…
Q: 3. Write a program that prompts the user for a file name, assuming that the file contains a Java…
A: Program Algorithm: 1. File import creates new file 2. Inside the try loop the scanner reads the…
Q: Write c program to print all even numbers from user entered array of length of 10 elements Thank…
A: Prime number is a number that is greater than 1 and divided by 1 or itself.
Q: What's the difference between Oops and functional programming, exactly?
A: Define: Functional programming stresses programme creation and usage while developing software.…
Q: What is parallel connection?
A: In this question we have to understand and discuss what is parallel connection. Let's understand
Q: Supply your answer by drawing the convex hull and then uploading the graphic using the file upload…
A: Answer: For this, we use the Jarvis march algorithm. Jarvis march algorithm: The idea of Jarvis’s…
Q: Are you familiar with the applications of dynamic programming?
A: Define: The method of dynamic programming is one that is used in the process of issue optimization.
Q: What are the implications if the change brought on by cloud computing has an effect on…
A: Cloud Collaboration Cloud collaboration allows employees to communicate on documents and other data…
Q: Which of the following four kinds of information systems are the most frequent, and how can you tell…
A: Information system: Transaction processing systems, management information systems, decision-support…
Q: Which two IPv4 and IPv6 features can you name?
A: Features of IPv4 address : 1) The size of IPv4 address is 32-bits 2) IPv4 address can be divide into…
Q: What is the default location for the ISO file when it is made automatically?
A: Introduction: ISO files is additionally known as ISO image. ISO images are utilized for…
Q: ou think the internet and other forms of social media have had on society as a whole? Why do you…
A: The greatest positive effect of the internet on society is the prevalence of social networks and…
Q: How does the organization of a solid-state drive (SSD) vary from that of a magnetic disc? What…
A: Required: In terms of organisation, how does an SSD differ from a magnetic disc? What makes them…
Q: What kind of worries and challenges arise from the use of an unintegrated information system?
A: Introduction: Computer failure and loss are key issues resulting in unnecessarily high costs and…
Q: It is important to keep in mind that altering the accept and non-accept states might potentially…
A: Introduction As a result, like your own language, the complement of your tongue would be…
Q: What are the many different software testing approaches that are utilized in software engineering,…
A: Explain software engineering testing procedures and why they exist: Functional testing vs.…
Q: List At least three registers designed specifically for use by the floating-point unit.
A: Given: The instruction is executed using the floating-point register. There are 32 64-bit…
Q: If a computer uses a control method known as microprogrammed control, the microprogram is the one…
A: Introduction Here, one computer is using a control system which is microprogrammed. So, the…
Q: How many distinct classifications of information systems are there in your mind?
A: Introduction: Information system: An information system is an integrated system that is intended…
Q: .How many bits are stored in 1KByte of memory?
A: Given memory is 1KByte Now converting the given memory into bits 1KByte => 210 Byte…
Q: A single-threaded program cannot be deadlocked, and this is because one of the conditions of…
A: Hold and Wait is the condition that a single-threaded program cannot be deadlocked if broken.
Q: Identify at least two (2) benefits of using OOP instead of PP alone.
A: Introduction: Procedural programming consists of the following steps: - They are structural…
Q: Is it even feasible to describe how the development of integrated circuits led to the creation of…
A: Yes, Is it possible to tell integrated circuits led to the creation of microcomputers The…
Q: Why are there firewalls in place, and what are they for?
A: Introduction: A firewall is a network security device that analyses incoming and outgoing network…
Q: What kind of societal and ethical ramifications can technologies like artificial intelligence and…
A: Given: Artificial intelligence is a branch of computer science that involves developing computer…
Q: How can we classify the many kinds of information systems?
A: Information System A collection of various pieces of equipment used in the collecting, processing,…
Q: What are the many different software testing approaches that are utilized in software engineering,…
A: Explain several software testing techniques used in software engineering, their purpose, and…
Python
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Calculator Challange Python Coding Create a simple calculator that takes in TWO numbers from the user and then asks the user to select if they want to ADD, SUBTRACT, MULTIPLY or DIVIDE to get the answer. I have coded... print("input whole numbers please, no decimals")again=""while again!="N":first=int(input("What is the first number?"))last=int(input("What is the last number?"))#let user pick the operation, assign numbers to the operationsoperation=int(input("Would you like to 1) add, 2)subtract, 3)multiply, or 4) divide?"))if operation==1:answer=first+lastelif operation==2:answer=first-lastelif operation ==3:answer=first*lastelif operation == 4:answer=first/lastelse:print("You did something wrong, try again.")print("The answer: %s"%(answer))again=str(input("Would you like to go again? Y/N")).upper()same=str(input("Would you like to use the same two numbers? Y/N")).upper()while same=="Y":operation = int(input("Would you like to 1) add, 2)subtract, 3)multiply, or 4) divide?"))if…=Question Completion Status: Write a python program that reads three numbers (integer or floati from the user. finds the largest number between the three numbers, and prints it Note: Use try and except to print an error message if the user enters any string value. Tor the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac).Result Calculator: Create a percentage calculator in which user enters the total obtained marks and total maximum marks and program prints in output the percentage obtained by the user. Use Python language.
- Q7: Code a complete Python program that performs the following operations by reading the weight of athletes until a zero is entered on the keyboard. When a negative value is entered by mistake from the keyboard, it should ask to enter the value again. How many athlete weights have been entered, Average weight of all athletes, Programmer must find out how many athletes are in each weight. Weight weight <50 Lightweight 50≤ kg <70 Middleweight Higher Heavyweight SAMPLE RUN Enter weight: 30 Enter weight: 65 Enter weight: 90 Enter weight: 120 Enter weight: 0 ------------------------------------- There are 1 light, 1 medium and 2 heavy weightsPYTHON!!!!! Edit the program provided so that it receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print: The sum of the numbers The average of the numbers An example of the program input and output is shown below: Enter a number or press Enter to quit: 1 Enter a number or press Enter to quit: 2 Enter a number or press Enter to quit: 3 Enter a number or press Enter to quit: The sum is 6.0 The average is 2.0 # Edit the code below theSum = 0.0 data = input("Enter a number: ") while data != "": number = float(data) theSum += number data = input("Enter the next number: ") print("The sum is", theSum) Results you should get: Input: 1, 2, 3 Output: Enter a number and for exit press Enter: 1 Enter a number and for exit press Enter: 2 Enter a number and for exit press Enter: 3 Enter a number and for exit press Enter:…Power of two Python Language please Programming challenge description: Write a program, given a positive integer, determines if the number is an exact power of two. Input: Your program should read lines from standard input. Each line contains a positive integer. Output: For each line of input, print to standard output 'true' if the number is an exact power of two and 'false' if not. Print out each result on a new line. Test 1 Test InputDownload Test 1 Input 16 Expected OutputDownload Test 1 Output true Test 2 Test InputDownload Test 2 Input 1024 Expected OutputDownload Test 2 Output true
- python The intent of this program is to manage a set of contacts. Each contact will have data associated with it: Id – number/integer First Name – string Last Name – string Age – number/integer Phone Number – string Email – string Anything else you’d like to add to make yours unique (can result in extra credit) Gender – character or string (m/f/o) Twitter ID, Facebook Id, etc You must allow the customer to do the following actions on the contact list: List all contacts Add contact Delete contact Edit contact Exit program You should leverage a database (PostgreSQL) to save everything to the DB and read from it. You should use classes for this assignment. This means you should have two classes: Contact – all the attributes/properties described above with appropriate constructor. Methods: Add (constructor - __init__(p_id, p_fname, p_lname, p_age, p_phone, p_email, p_gender) Edit Contact List (contact_list) – built on Python list (or creating one within the constructor), you…Q5 PYTHON MULTIPLE CHOICE Code Example 4-1 def get_username(first, last): s = first + "." + last return s.lower() def main(): first_name = input("Enter your first name: ") last_name = input("Enter your last name: ") username = get_username(first_name, last_name) print("Your username is: " + username) main() A. Refer to Code Example 4-1: What is the scope of the variable named s ? a. global b. local c. global in main() but local in get_username() d. local in main() but global in get_username()Computer Science PYTHON PROGRAMMING Write a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is. If the user's guess is higher than the randomly generated number, the program should display "Too high, try again." If the user's guess is lower, the program prints "Too low, try again." If the user guesses the number, the application should congratulate the user and generate a new random number so the game can start over. Keep track of the number of guesses a user makes before guessing the correct one and display it with the congratulatory message when the user guesses the number correctly. For this assignment, create functions that: generate and return a random number between 1 and 100. format and return the failure and congratulatory messages. Put these function in a module called helper.py and put the rest of the code in game.py. The game module must import the helper module. Please provide both helper.py & game.py…
- 2 NewestMultiply.py - This program prints the numbers 0 through 10 along m Summary these values multiplied by 2 and by 10. 4 Input: None. In this lab, you work with the same Python program you 5 Output: Prints the numbers 0 through 10 along with their values multipli worked with in Labs 5-1 and 5-3. As in those earlier labs, 6 2 and by 10. the completed program should print the numbers 0 8 headl = "Number: " through 10, along with their values multiplied by 2 and by 9 head2 = "Multiplied by 2: " 10 head3 = "Multiplied by 10: 10. However, in this lab you should accomplish this using a while loop with a break statement. 11 NUM_LOOPS = 10 # Constant used to control loop. 12 Instructions 13 print("0 through 10 multiplied by 2 and by 10" + "\n") 14 15 # Write while loop 1. Make sure that the file NewestMultiply.py is selected 16 and open. 2. Write a while loop that uses the loop control variable to take on the values 0 through 10 and breaks when the loop control exceeds 10. 3. In the body…Password modifier This program is: python Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string. i becomes ! a becomes @ m becomes M B becomes 8 o becomes . Ex: If the input is: mypassword the output is: Myp@ssw.rdq*s Hint: Python strings are immutable, but support string concatenation. Store and build the stronger password in the given password variable.Python programming Write a program that generates a random number and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display "Too high, try again." If the user's guess is lower than the random number, the program should display "Too low, try again." The program should use a loop that repeats until the user correctly guesses the random number. TY!