Follow these steps: • Create a new Python file in this folder called task4.py Create a program that asks the user to enter an integer and determine if it is. divisible by 2 and 5. c divisible by 2 or 5. o not divisible by 2 or 5 • Display your result.
Q: Ex: Find the roots of the fourth order equation: function for -10<x<10 x-5x³+4x²-5x+6=0 and plot the
A: //equationeq1 = 'x^4–5*x^3+4*x^2–5*x+6'; -> s = solve(eq1); -> a = s(1) -> a…
Q: • Create a new Python file in this folder called task3.py. Design a program that determines the…
A: Please check the step 2, 3 & 4 for solution
Q: So, what's your take on email? An email is a two-way street. Take note of your understanding. What's…
A: The proper greetings 1 Hi [Name] An suitable salutation for formal email communication is this one.…
Q: 1. What is the output of this command 30:2:40
A: As Language is not given doing it in Matlab.
Q: Organize the components of SCI according to their importance in the Software development. Justify…
A: The Answer is in step2
Q: 3 4 9 ID 8 5 Give adjacency list representation: 1. Given a graph G: 10 1 23456 7 8 9 12…
A: INTRODUCTION: An adjacency list is a group of unordered lists used to describe a finite graph in…
Q: Show that F(x, y, z) = xy + xz + yz has the value 1 if and only if at least two of the variables x,…
A:
Q: Identify two functional and two non-functional requirements the system should provide Identify two…
A: Customers can be registered using a valid email id.Only employees should be able to edit…
Q: What are the Infograph's guiding principles?
A: Introduction Because of their shareability and visual appeal, infographics have grown in popularity…
Q: in a block, the mask is 255.255.192.0; what is the length of host id?
A: A subnet mask is a 32-bit number created by setting host bits to all 0s and setting network bits to…
Q: In today's technologically advanced culture, why is structured programming so important? A program's…
A: According to the information given:- We have to define why is structured programming so important? A…
Q: ques. a Demonstrate a program to implemt. class Celled stack that implements ten integers. stack for…
A: A Stack Class: A stack data structure would benefit from access control. A stack uses first-in,…
Q: Defect elimination, not prevention, is the principle of Cleanroom Software Engineering, which…
A: Cleanroom Software Engineering: Errors may be identified earlier in the lifecycle thanks to…
Q: a 32-bit microprocessor has 16Kbyte cache. Assume that cache has a line size of four 32 bits words.…
A: It is defined as a Computer's Central Processing Unit (CPU) built on a single Integrated Circuit…
Q: Make the programming easy Make the programming complex O Provide better features O Provide more…
A: Implementation complexity, efficiency, robustness, scalability, quality of service and experience…
Q: Computers of today are very powerful, which explains why this is the case. For the last several…
A: Computers are very powerful for a variety of reasons. They operate with extraordinary speed,…
Q: Techniques for enhancing software quality are listed and explained.
A: Introduction: A software product is created to meet specific customer requirements, but it…
Q: Desgin a SOQL Query to fetch Different account records that will start with "A" Or "T" Or "H" Or…
A: Query: //Set to hold the Value to like valuesSet<String> likeValues = new Set<String> {…
Q: What exactly do you mean by "network security?" Explain the operation of the industry-standard data…
A: Introduction: The term "network security" refers to a diverse set of technologies, equipment, and…
Q: Explain what is meant by the zone routing protocol for advanced routing ?
A: Answer:
Q: A computer network is a collection of computers that communicate with each other. What are the…
A: The phrase "computer network" refers to a collection of interconnected computers and other pieces of…
Q: "Propositional logic" – what is it? How does AI employ propositional logic?
A: Answer: Propositional logic, also known as sentential logic or statement logic, is a branch of logic…
Q: Which metric is used to measure the quality of software support?
A: Metrics is defined as the quantitative assessment of tracking the performance of an application or…
Q: Provide an explanation as to why different testing methodologies are required at different phases of…
A: Testing Methodology: The many tactics or methods used to test an application to make sure it…
Q: Write a C++ program, using function, to multiply the array elements by 2.
A: Start. Take the array and pass it to the function. The multiply 2 to each element in the function.…
Q: To transmit the data 1011000 to his friend using hamming code technique. Calculate (i) number of…
A: The Answer is given below step.
Q: #Write a C program in code blocks to find whether a number is Palindrome or Not. Discussed the…
A: #include <stdio.h> void main(){ i nt num,r,sum=0,t; printf("Input a number: ");…
Q: When malicious traffic is diverted from one VLAN to another, a network breach happens. Identify the…
A: SOLUTION: VLAN hopping, also known as virtual LAN hopping, is a network assault in which an attacker…
Q: This section outlines system development methodology.
A: the answer of the question is given below
Q: What happens if an attacker uses a MAC and tries to change both the Tag (the MAC) and the ciphertext…
A: Explanation: MAC is the tag's abbreviation. It is a piece of information used to confirm the…
Q: Implementing User Input and Comments in a Script 1. Go to your main.py file. 2. On the first line,…
A: Coded using Python 3.
Q: What is the likelihood of an error in the REpitition code, also known as the Huffman code?
A: Introduction: Huffman coding is primarily a data compression method.
Q: Inheritance and UML (Java) Design a class named Employee. The class keeps the following information…
A: Description : Staff and Production Classes Design a classroom called Staff. The class should keep…
Q: company is granted the site address 111.0.0.0 The company needs 1025 subnets, how many addresses in…
A: The site address granted is belongs to the class A IP address.Therefore first octet is a network…
Q: Describe the influence that software evaluation, control, and change methods have had on the amount…
A: INTRODUCTION: Program upkeep is the method of changing, adjusting, and upgrading program to keep up…
Q: In your own words, explain the differences between EPROM, EEPROM, and Flash Memory.
A: Three words for the digital system's memory are provided. Terms provided: Flash Memory, EEPROM, and…
Q: Processes are stopped and the CPU takes care of the new one when an interrupt comes in from the CPU.…
A: Execution and Cleaning: Hardware devices produce it to let the operating system know that they need…
Q: PCs using Chrome OS need less internal storage space than those running rival desktop operating…
A: Desktop-Operating-System: Filters. The user's machine's control software (desktop or laptop).…
Q: For Q1- Write computer program to find average of four student ,each student have 3 marks.
A: The fortran program to find average of four student ,each student have 3 marks is represented in…
Q: nvestigate the risks and advantages of cloud-based security. In your assessment, point out…
A: Introduction: Several dangers are associated with cloud technology and cloud service providers…
Q: Make a clear definition of what a real-time operating system is using real-world examples. Describe…
A: We will talk about real-time operating systems: In this problem and how they vary from traditional…
Q: When interrupting a programme, what is the difference between hardware interrupts and software…
A: Interrupts are signals: That may be sent to the CPU by either software or hardware to tell it to…
Q: Consider the five applications of graph theory in artificial intelligence listed below.
A: Introduction: 5 particular applications of graph theory in AI: DAG Structure Learning Markov Network…
Q: When it comes to portability, what is the most important property of the Java programming language?
A: Answer:
Q: Non-technical cybersecurity assaults are defined and explained.
A: Introduction: Attacks that are non-technical do not need technical understanding of system entry…
Q: Your company has a website where you can advertise your products or services to people all over the…
A: Introduction: Your company's goods and services can be advertised everywhere in the globe on the…
Q: The creation of software makes use of a variety of models, with each model having a variable level…
A: Definition A computer application that allows the user to construct simulations or other models is…
Q: Write a function, young_john(people), that returns True if the dictionary people contains the key…
A: A dictionary in python is made up of two elements key and value. With each key a value is…
Q: The most important tools and procedures employed during the creation of a system are the tools and…
A: INTRODUCTION: Frameworks advancement is the method utilized to characterize, plan, test, and…
Q: Which of the following addition problems cannot be solved accurately when using a floating-point…
A: Here mantissa is 4 exponential= 3
Step by step
Solved in 3 steps with 2 images
- Question 3: Open your pervious project “python trip” add new python file and name it :les2 Sales Prediction, thensolve the following. A company has determined that its annual profit is typically 23 percent of total sales. Write a program that asks the user to enter the projected amount of total sales, then displays the profit that will be made from that amount Hint: Use the value 0.23 to represent 23 percent. Enter the projected amount of total sales: 100000 The annual profit: 123000.00 What the code that will be written on bycharm to display as it showingIntro to Python Programming: Paycheck ApplicationCreate the Paycheck Application. The application should read in the name andsalary of an employee. Here the salary will denote an hourly wage, such as$13.25. Then ask how many hours the employee worked in the past week. Be sureto accept fractional hours. Compute the pay. Any overtime work (over 40 hoursper week) is paid at 150 percent of the regular wage. Print a paycheck for theemployee. SAMPLE RUNEnter employee name: MaryEnter the hourly rate: 14.25Enter the number of hours worked: 35Employee: MaryThe pay will be $498.75 for 35.0 hours of work. Enter employee name: JohnEnter the hourly rate: 13Enter the number of hours worked: 51.5Employee: JohnThe pay will be $744.25 for 51.5 hours of work. Enter employee name: NicoleEnter the hourly rate: 12.25Enter the number of hours worked: 40Employee: NicoleThe pay will be $490.00 for 40.0 hours of work.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…
- 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.3prep Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values should be displayed in currency format with the $ sign right up against the first digit. See SAMPLE OUTPUTS below.MoonBucks Coffee Company - Coffee Prices40 pounds or more $7.50 per lb.20 pounds or more $8.75 per lb.10 pounds or more $10.00 per lb.1 to 9 pounds $12.00 per lb. Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem. Employ variable names that…Python: numpy def serial_numbers(num_players):"""QUESTION 2- You are going to assign each player a serial number in the game.- In order to make the players feel that the game is very popular with a large player base,you don't want the serial numbers to be consecutive. - Instead, the serial numbers of the players must be equally spaced, starting from 1 and going all the way up to 100 (inclusive).- Given the number of players in the system, return a 1D numpy array of the serial numbers for the players.- THIS MUST BE DONE IN ONE LINEArgs:num_players (int)Returns:np.array>> serial_numbers(10)array([1. 12. 23. 34. 45. 56. 67. 78. 89. 100.])>> serial_numbers(12)array([1. 10. 19. 28. 37. 46. 55. 64. 73. 82. 91. 100.])""" # print(serial_numbers(10)) # print(serial_numbers(12))
- Python only 1. Define printGrid Use def to define printGrid Use any kind of loop Within the definition of printGrid, use any kind of loop in at least one place. Use any kind of loop Within the loop within the definition of printGrid, use any kind of loop in at least one place. it should look like this when called ; printGrid(['abcd','efgh','ijkl']) Prints: a b c d e f g h i j k l 2. Define getColumns Use def to define getColumns Use any kind of loop Within the definition of getColumns, use any kind of loop in at least one place. Use a return statement Within the definition of getColumns, use return _ in at least one place. it should look like this when called ; getColumns(['abcd','efgh','ijkl']) Out[]: ['aei', 'bfj', 'cgk', 'dhl']Volume of Sphere Volume of Sphere Write a Python program that computes the volume of the sphere based on the diameter. The program should reject invalid diameter values. See https://goo.gl/XHWXC5 for an example. B.ES 421 # Calculator.py - This program performs arithmetic, ( +. -, *. / ) on two numb 2 # Input: Interactive Summary 3 # Output: Result of arithmetic operation 4 In this lab, you complete a partially written Python program that includes a function that returns a 5 # Write performOperation function here value. The program is a simple calculator that prompts the user for two numbers and an operator ( +, -, *, or / ). 7 if -_name_- == '-_main__': numberOne = int(input("Enter the first number: ")) numberTwo = int(input("Enter the second number: ")) operation = input("Enter an operator (+ - * /): ") 8 The two numbers and the operator are passed to the function where the appropriate arithmetic 10 operation is performed. The result is then returned to where the arithmetic operation and result are 11 displayed. 12 # Call performOperation method here and store the value in "result" 13 For example, if the user enters 3, 4, and *, the following is displayed: 14 print(str(numberOne) + " " + operation +…
- *The following needs to be in python For this application, you will need to create a Python application that reads the sales for 12 months from a file and calculates the total yearly sales as well as the average monthly sales. In addition, this program should let the user edit the sales for any month. Jan 14317 Feb 3903 Mar 1073 Apr 3463 May 2429 Jun 4324 Jul 9762 Aug 15578 Sep 2437 Oct 6735 Nov 88 Dec 2497 Step 1 Define a display_title() function and have it use the print() to show the text: [FirstName] [LastName]'s Monthly Sales Replace the placeholders with your own first and last name add a space using the print() Define a display_menu() function and have it Use the print() function several times to show the following text with a space after: COMMAND MENUmonthly - View monthly salesyearly - View yearly summaryedit - Edit sales for a monthexit - Exit program Step 2 Define a main() function Call the display_title() function and the…Python Programming Only Please: Write a program that asks the user to enter a person’s age. The program should displaya message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines: • If the person is 1 year old or less, he or she is an infant.• If the person is older than 1 year, but younger than 13 years, he or she is a child.• If the person is at least 13 years old, but less than 20 years old, he or she is a teenager.• If the person is at least 20 years old, he or she is an adult.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…