In python The appliances section in Carrefour add a delivery charge (per items) onto the appliances bill as follows: Additional delivery charge per item Up to 2 70 3 to 5 50 6 to 7 35 More than 7 30 Items Write a python program that asks the user to enter the number of items then calculates and displays the total delivery charge that the client will need to pay.
Q: What is the Operating System role in the memory layout of a process?
A: The operating system plays a critical role in managing the memory layout of a process within a…
Q: Which of the following is not a stage in the database physical design? O a. Determine a suitable…
A: Physical design of a database involves working on storage structures and methods to access data that…
Q: Please help me with this. I am not understanding What 2 other classes should enroll in for my 1st…
A: Introduction to Programming: This course is designed to introduce you to the fundamentals of…
Q: C++ in MS Visual Studio, continues to receive error code E0276 (identifier is undefined) in both…
A: When working on a C++ project in Microsoft Visual Studio, encountering error code E0276, which…
Q: Python Program Use function integral to calculate the area bounded by the two curves, y1 and Y2 yı =…
A: Algorithm: Calculate Area Between Two Curves1. Define the first function y1(x) as: y1(x) = -3x +…
Q: Write a C program to read an integer from the user and output its last and first digit. Hint: Like…
A: 1. **Start**.2. Enter an integer.3. Read the integer input from the user and store it in variable…
Q: Java Code: How to implement logic for {ParseFunctionCall where all of the Node data structure…
A: To implement a ParseFuctionCall method in Java that correctly parses function calls and handles…
Q: For the following 8-bit number, do the calculation by using 2's complement (Note: the answer must be…
A: -2510-1310And we need to calculate the addition of two using the 2's complement. So we will see in…
Q: construct a graph with five vertices and six edges that consists of a circuit with six edges and two…
A: Circuit in a graph is a path that starts and ends on the same node and accesses a number of other…
Q: Type the program's output stop = int(input ( ) ) result = 0 for a in range (2): print (a, end=': ')…
A: There are two loops in the given program and the inner loop also has an if condition statement.The…
Q: Huffman codes
A: In the above question, a statement along with character and it's corresponding frequencies is…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: The "Sphere Calculator in Java" program is a simple console-based application that allows the user…
Q: What are three classes of systems engineering life cycles? Explain RDT&E in detail and elaborate the…
A: Systems engineering life cycles refer to structured approaches or frameworks used to manage the…
Q: The fastest method for passing parameters (a)Block (b) Heap (c)Stack (d)Register
A: The "passing parameters" refers to the method by which arguments are provided to functions (or…
Q: In the context of virtual network functions (VNFs), explain the concept of Network Function…
A: The telecom and networking sectors have undergone a major paradigm shift with the introduction of…
Q: What is the database transaction? Could you describe how it is usually used and why? Could you…
A: A database transaction is a sequence of one or more related operations that are executed as a single…
Q: Consider the standard software development lifecycle contrasted against a secure software…
A: SDLC stands for "Software Development Lifecycle." It is a systematic process or framework used by…
Q: How can priority inversion be avoided by monitors?
A: An essential piece of software that maintains and regulates computer hardware and resources is…
Q: What are the steps of the compilation process? Give a brief description
A: The compilation process refers to the sequence of steps taken to transform source code written in a…
Q: Question 2 Every byte in the computer's memory is assigned a unique O name O value O address…
A: Computer memory, often referred to as RAM (Random Access Memory), is a fundamental component of a…
Q: Explain the role of Layer 3 devices in network communication according to the OSI model. Provide…
A: Layer three devices play a role in network communication by running at the network layer of the OSI…
Q: switch is an example of A. keyword B. comment C. preprocessor directive D. statement
A: A control structure or conditional statement known as a "switch" enables a computer to carry out…
Q: from the input file name rank a 513 b 740 c…
A: In this question we have to write a code in C program for the given program description.Let's…
Q: Write a program using function to check if the number is even or odd? Write a program to return the…
A: Algorithm:For checking if a number is even or odd, use the modulo operator (%), and if the number…
Q: Among all pairs of nodes in a directed network that are connected by an edge, half are connected in…
A: Network is a set of object such as vertices and nodes that are connected together. Connections…
Q: What does this mean 2. The information below includes what was sent by the academic advisor…
A: The program checklist for the York University BSc Honours in Computer Science offers a comprehensive…
Q: Using Java Modify the program 1 in guided activity 3 to compute the multiplication of two vectors…
A: Initialize two arrays, vector1 and vector2, to represent the two vectors with sizes 1xn and nx1,…
Q: xt can be approximated by using the following infinite serios, x=4 3 1 5 1 7 1 4- 9 11 Write a…
A: 1. Start2. Define a class PiApproximation: a. Define a method…
Q: 2 How might the information filter bubble effect be overcome? What technological and social changes…
A: The information filter bubble, a term coined by Eli Pariser, describes the phenomenon where…
Q: Consider the following directed graph. E B Which of the following are valid cycles? A, A, D A, D, C,…
A: Only the start and end vertices of a graph are equivalent to a cycle in graph theory. Non-empty…
Q: What is a wiki? Why would an organization want to implement a wiki?
A: A wiki is a web-based collaborative platform or website that enables users to jointly generate,…
Q: Define normalization. Explain different types of Normalization in DBMS.
A: Normalization is a systematic approach used in relational database design to ensure that data is…
Q: How do Layer 5 (session layer) devices like gateways and API gateways facilitate communication…
A: At the layer-5 (Session Layer), devices control the creation, maintenance, and termination of…
Q: Huffman coding is a channel coding scheme. (a) True (b)False
A: Huffman coding is a popular lossless data compression algorithm. It's based on the principle of…
Q: I have an error for this section. Pl
A:
Q: explain the purpose of Cisco IOS and what devices it would typically be installed on.
A: In this question we have to understand the purpose of Cisco IOS and what devices it would typically…
Q: The paging technique is a technique that suffers from internal fragmentation, and this type of…
A: Paging is a memory management technique used in computer systems to facilitate efficient and…
Q: Question 4 Ordinal data is a sub-part of the numerical data category within the data taxonomy. True…
A: Ordinal Data:Ordinal data is a type of categorical data that represents categories with a specific…
Q: stop result = 0 for a in range (4): = int (input ( ) ) print (a, end=': ') for b in range (2):…
A: It takes an integer input from the user and stores it in the variable stop.It initializes the…
Q: Write a computer program in FORTRAN to find the correlation coefficient r of the two variables. What…
A: Initialize:Start with two arrays X and Y containing the data points for the two variables.Initialize…
Q: (1) Prompt the user for a title for data. Output the title. Ex: Enter a title for the data:…
A: This program assists users in organizing and visualizing data related to the number of novels…
Q: Discuss the concept of Software-Defined Networking (SDN) and its impact on traditional OSI model…
A: Software-Defined Networking (SDN) is a revolutionary approach to network management and…
Q: can you please show me the code i would use in python spyder
A: is_prime(num) Algorithm:If the input number num is less than 2, return False.Iterate from i = 2 to…
Q: Discuss the challenges and solutions associated with branch prediction in modern pipelined…
A: Branch prediction is a crucial aspect of modern pipelined processors, as it helps mitigate pipeline…
Q: Discuss the concept of pipeline hazards, including data hazards, control hazards, and structural…
A: Pipeline hazards are challenges that arise in pipelined processors when executing instructions…
Q: Discuss the responsibilities of network devices at the Network Layer and provide examples of such…
A: A key role in data routing across networks is played by Network Layer devices, which are at Layer 3…
Q: Q2: Write Matlab program to sort the following numbers into two groups: the first group contains…
A: 1. **Input:** Prompt the user to enter an array of numeric values separated by spaces.2.…
Q: Explore the concept of Layer 8 (the political layer) in the OSI model and its relevance in…
A: In the traditional OSI (Open Systems Interconnection) model, which is a conceptual framework for…
Q: Where do you stand on the issue of social media monitoring by employers? What should be the scope of…
A: The issue of social media monitoring by employers has become a significant point of discussion in…
Q: Java OOP Write a complete address book maintenance application. The user of the program has four…
A: 1. Import necessary libraries (e.g., Scanner, ArrayList).2. Define a Person class with attributes…
please help urgent
Step by step
Solved in 4 steps with 2 images
- In python The appliances section in Carrefour add a delivery charge (per items) onto the appliances bill as follows: Additional delivery charge per item 70 50 6 to 7 35 More than 7 30 Items Up to 2 3 to 5 Write a python program that asks the user to enter the number of items then calculates and displays the total delivery charge that the client will need to pay.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…In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73
- : Write a python program to simulate an online store. The program should begin by displaying a list of products and their prices. There should be a minimum of 4 products offered. The program should ask the user to choose a product and then ask the user to enter the quantity they require of that product. The program should then allow the user to keep choosing more products and quantities until they enter something to indicate they want to end the program (e.g. a given number or ‘q’ or ‘exit’). The program should then tell the user the total amount for the products they have selected.After calculating the ranking score according to the ALES (Academic Postgraduate Exam) score, foreign language score and graduation grade point average of the candidate applying for graduate education, write the program in python, which will be able to enter the ranking on the screen. (All points are given over a hundred.) Ranking Score = 50% of ALES + 25% of foreign language score + 25% of graduation grade point average It is calculated by the formula. If the ranking score is 60 and above, it can enter the ranking, otherwise it cannot. Example: Enter ALES score: 80.91 Enter the foreign language score: 80.50 Graduation GPA: 75.56 ------------------------- Your ranking score: 79.47 May enter the rankingsNasra An electricity company charges their consumers according to the units consumed per month according to the given traffic: Unit Consumed Charge per unit 200 baisa Up to 100 units More than 100 units and up to 200 units 250 baisa More than 200 units and up to 400 units 300 baisa Morethan 400 units 400 baisa In addition to the above, every consumer has to pay 200 baisa as Service charge per month. Write a Python program named electricity.py that read the units consumed as an input and calculate the total charges payable by the customer. The following is the formula to calculate total charge. Total charge = units consumed * Charge per Unit + service charge Run and test your program. Once done, submit the file named electricity.py at the link below.
- In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters.Fox International sells pre-paid calling card with the following features: Calls to USo 1.2 cents per minute plus a 49 cent connection fee per call Calls to Europeo 2.3 cents per minute plus a 49 cent connection fee per call Calls to Australiao 6.4 cents per minutes plus a 49 cent connection fee per callWrite a program that work out the charges for the month. The program should accept the followinginformation: Account holders name Card number Starting Balance on card For US callso Total number of minutes of all callso Total number of calls made For European callso Total number of minutes of all callso Total number of calls made For Australian callso Total number of minutes of all callso Total number of calls madeYou are NOT expected to error check your inputs for this assignment. (e.g. checking for negative values,etc.). There is NO GST charged on the calls as the GST was paid when the card was purchased.Format of output:Review the test plan to see how the user would like the…Python programming only FIX THE ERRORS IN THE CODE EXERCISE Here is a program on calculating grades. Please correct the errors in the program.# Calculating Grades (ok, let me think about this one)# Write a program that will average 3 numeric exam grades, return an average test score, a corresponding letter grade, and a message stating whether the student is passing. # Average Grade# 90+ A# 80-89 B# 70-79 C# 60-69 D# 0-59 F# Exams: 89, 90, 90# Average: 90# Grade: A# Student is passing.# Exams: 50, 51, 0# Average: 33# Grade: F# Student is failing.exam_one = int(input("Input exam grade one: "))exam_two = input("Input exam grade two: "))exam_3 = str(input("Input exam grade three: "))grades = [exam_one exam_two exam_three]sum = 0for grade in grade: sum = sum + gradeavg = sum / len(grdes)if avg >= 90: letter_grade = "A"elif avg >= 80 and avg < 90 letter_grade = "B"elif avg > 69 and avg < 80: letter_grade = "C'elif avg <= 69 and avg >= 65: letter_grade = "D"elif:…
- In Python Write a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the tripPython Code Needed Problem: A company wants a program that will calculate the weekly paycheck for an employee based on how many hours they worked. For this company, an employee earns $20 an hour for the first 40 hours that they work. The employee earns overtime, $30 an hour, for each hour they work above 40 hours. Example: If an employee works 60 hours in a week, they would earn $20/hr for the first 40 hours. Then they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr * 40hrs) + ($30/hr * 20 hrs) = $800 + $600 = $1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee’s weekly paycheck. Write pseudocode to design a programming solution by outlining a series of steps and using appropriate indentation and keywords. As you write your pseudocode, be sure to consider the following: What input does the computer need? What steps does the program need to follow to process the input?…IN PYTHON Write a python that calculates the position of a car moving in a 2D-plane given the list of movements that should be executed in order. The movements are right, left, up, or down, followed by the number of units that the car has to move. The number of units can be either integer values or floating values but must be positive. If the input is invalid, then the program should print that there is an error and prompt the user to enter the input again. Note: The starting position of the car is x=0.0, and y=0.0.