Create a function called calculate_discount that accepts patient and returns the discount amount. If the cost is mo percent of the cost. Otherwise the discount is zorn
Q: On the other hand, the OSI model assumes a greater number of layers than are actually used by most…
A: Answer: Open systems interconnection (OSI) Model is nothing but it is way to computer system to send…
Q: Why is it more probable that the meaning of a communication sent by email would be misunderstood?…
A: Email is email, period. These are electronic messages sent to different receivers. Any person with…
Q: If you were to select between the Traditional Waterfall Model and the Iterative Waterfall Model for…
A: The waterfall model is a standard life cycle approach for system development that is used to…
Q: Define distributed systems. Please explain why the definition of distributed systems has so profound…
A: Answer:- Networked Systems: An example of a distributed system is one in which the hardware and…
Q: Consider the following data among 110 students in our IT department: 30 students are taking a course…
A: As 30 have taken SQL and 20 have taken both SQL and Java, the students who opted only SQL is…
Q: When it comes to running hard real-time systems, what is the most crucial factor to consider?
A: Real-time systems: Real-time systems are information processing systems having hardware and software…
Q: selection interview process. Choose and buy the perfect solution. Create 5 pre- and post-interview…
A: Pre interview questions:- (1) What purpose does that software will serve? Reason for choosing this…
Q: This section should cover the most popular VPN protocols, configurations and services used in VPN…
A: Virtual private network (VPN): Vn offers anonymous internet access. Password, biometric security,…
Q: What are the functions of various operational units of a computer system? What is von Neumann…
A: Set of integrated devices is said as computer system. CPU is said as brain of computer.
Q: Are there two ways in which the Internet may aid apps? These services have a few distinguishing…
A: Software as a service (SaaS) is simply software that is made available online. You may avoid complex…
Q: Imagine that you are in charge of Kampala's crime-prevention efforts. The information learned in AI…
A: The issue primarily asks how we may apply artificial intelligence in crime prevention activities…
Q: What are the phases of the waterfall model of the software development life cycle (SDLC)?? If you…
A: Software development: The underlying systems that operate the devices or manage networks are created…
Q: Design a torm and write code to find the summation of even numbers (from 1 to 100) using For Next…
A: The answer of the question is given below
Q: What is multifactor authentication and why is it useful? What role does it play in preventing…
A: Introduction: Security is critical when it comes to securing sensitive information.
Q: You are presently working on a component of the project; please provide two instances of…
A: Not Required for Function: NFRs, or non-functional requirements, are in charge of interpreting…
Q: How exactly might DMA assist with the concurrent nature of the system? In what specific ways does it…
A: Solution: Direct access to memory is a feature of most computers that enables specific hardware…
Q: In as few words as possible, please explain what the noun "linker" refers to and its meaning.
A: The answer is given below.
Q: Could you please provide an example of the operating environment as well as a definition of it?
A: Start: AN operative surroundings or integrated applications surroundings is that the surroundings…
Q: List the layers of OSI network model and explain the function of each layer.
A: The Answer is in given below steps
Q: Regarding the topic of online safety, how has the advent of technology altered human behaviour?
A: Technologies: Through technologies, processes, and controls, systems, networks, programmers,…
Q: e benefits and d
A: Connection-Oriented Services:There is a progression of tasks to be trailed by the clients of…
Q: explain Encoding and Decoding with for. AS CH85.
A: Ascii85 is binary-to-text encoding that involves using five ASCII character to represent four binary…
Q: X595: removeOdd This method takes an ArrayList of integers as a parameter and does not return…
A: ALGORITHM:- 1. Declare and initialise the arraylist. 2. Pass it to the removeOdd method. 3. Print…
Q: Explain how the operating system's features benefit middleware.. In addition, write about network…
A:
Q: Each item in the interrupt vector table has a unique set of data.
A: The interrupt vector table has eight entries. Each vector has 4 bytes, containing a branching…
Q: Describe the difficulties you've had with IT at the AIT computer labs, including what caused them…
A: Computer Laboratory: The most frequent issues are "operating system crash," "hard drive failure,"…
Q: Iterative Waterfall Model poses the issue, "Which one is better?" when contrasted to the Traditional…
A: Waterfall Model: A traditional model used in the system development life cycle to design a system…
Q: 5. Node 6. Linear List 7. Stack
A: Node: Node permits engineers to compose JavaScript code that runs straightforwardly in a PC cycle…
Q: Please clarify the following set of architectural directions, which includes R, J, and I. Thank you.…
A: An instruction set architecture (ISA) is an abstract model of a computer used in computer science.…
Q: Unlike extranets, virtual private networks (VPNs) do not share a common infrastructure.
A: An extranet is a private intranet built on the Internet and World Wide Web technologies and…
Q: One of the advantages of the computer is to reduce
A: One of the advantage of computer is to reduce
Q: Which of the many factors has an effect on the way the network functions?
A: The following solution are
Q: Brindisi Brothers is a family-owned, medium-sized construction company doing residential and…
A: 1) The factors to be considered while choosing cloud computing are - Data protection and compliance…
Q: Please include two justifications for why you think it is necessary for the computer. researcher…
A: Someone interested in the internal workings of computers and their physical layout is called a…
Q: It is important that you pay attention to the parts of the policy and/or practise that pertain to…
A: Introduction: An environment that is safe and healthy for employees may minimize injury and sickness…
Q: Draw a flow chart of a program that adds N odd numbers starting from 1. The value of N should be…
A: So flow chart is given below for sum n odd number
Q: What are some of the disadvantages associated with email providers monitoring the emails of their…
A: These days, sending emails is considered: The new "in" thing to do. It's now the greatest approach…
Q: A number of questions arise as a result of the inherent characteristics of wireless networks.…
A: The above question is solved in step 2 :-
Q: In arithmetic operations in A he meaning of arithmetic shif fight instruction for a binary number in…
A: Answer : Divide by two is the correct answer.
Q: e waterfall and incremental approaches, what parallels and differences can be found? What are the…
A: similarities and differences between these two things are given below :
Q: be disrupted in a number of different ways by means of a denial of service attack. Put your…
A: Introduction:An attempt to disable a computer system or network such that its intended users are…
Q: Consider a memory system with a cache access time of 100ns and a memory access time of 1200ns. If…
A: Below is the answer to above question. I hope this will be helpful for you..
Q: The performance of the network might be impacted by a large variety of different circumstances.
A: Network performance is relative to the quality of network service as seen by the user. There are…
Q: Draw a flow chart of a program that adds N odd numbers starting from 1. The value of N should be…
A: Here is the solution:
Q: In order to better understand a project, you should map it both with and without architecture.…
A: Foundation: The architectural decisions made for software architecture are linked to the strategic…
Q: The internet is considered as a fantastic example of ICT because of what characteristics? There are…
A: ICT is just an expression for "information and communication technology" (ICT). New methods of…
Q: 16 Write down the formal language that the following NFA accepts? L={ 90 Enter your answer b a a, b…
A:
Q: In educational institutions, what kinds of networks are used? What makes this type different from…
A: Introduction: In school, we use LAN, which stands for local area network, to link computers in a…
Q: Consider a piece of software that, through the internet, enables a surgeon in one location to…
A: Piece of software: Indicating the person or thing through whom or by whom something happens; via…
Q: When it comes to running hard real-time systems, what is the most crucial factor to consider?
A: Hard real-time systems: A hard real-time system, often referred to as an instantaneous real-time…
Step by step
Solved in 3 steps with 1 images
- Create a function called midvalue that accepts three distinct int values as input and returns the value that is located exactly in the centre of the three. Thus, midvalue(5,28,14) yields 14.Code / Write a function named calcDiscount that calculates the discount on purchases from an on-line pants store. All pants on the site sell for $20. Quantity discounts are given as follows: Quantity Discount 1-9 none, 10-19 12%, 20-49 23%, 50-99 34%, 100 or more 45%. Your function should accept the number of pants purchased as an argument and return the total cost after the discount. Make sure returned value is formatted to *2* decimal places, as currency is normally displayed. Note: you are not writing a full program for this question. Just write the function as specified. It's OK to use IDLE/PyCharm to test your solution.Code / Write a function named calcDiscount that calculates the discount on purchases from an on-line pants store. All pants on the site sell for $20. Quantity discounts are given as follows: Quantity Discount 1-9 none, 10-19 12%, 20-49 23%, 50-99 34%, 100 or more 45%. Your function should accept the number of pants purchased as an argument and return the total cost after the discount. Make sure returned value is formatted to *2* decimal places, as currency is normally displayed. in python
- PROBLEM: Write a program which accepts a number corresponding to a plane figure: 1. Right Triangle 2. Rectangle 3. Circle USE C++The program will then ask for the following: base and height – if the previous input is 1 (right triangle) width and length – if the previous input is 2 (rectangle) radius – if the previous input is 3 (circle) The program should exit if the input is not 1,2 or 3. SPECIFICATIONS: Develop the following functions: Create a function named getTriangleArea which accepts the base and the height and returns the area of the right triangle. Create a function named getTrianglePerimeter which accepts the base and the height and returns the perimeter of the right triangle. Create a function named getRectangleArea which accepts the width and the length and returns the area of the rectangle. Create a function named getRectanglePerimeter which accepts the width and the length and returns the perimeter of the rectangle. Create a function named getCircleArea which…Please fill in the blanks for the following statements: ______________ specify additional information functions need to perform their task.09. PlWrite a function to gather the following costs from the user: Travel cost: $9,800Hotel cost: $3,500Rental car cost: $1,600Labor cost: $15,500 Part 2Write a function to convert the costs from United States dollar (USD) to Australian dollar (AUD). Note: Look up the current USD to AUD exchange rate to use in your function. Test the program 3 times by providing different costs in USD. Provide the code, and take a screenshot of the output. Then, paste the screenshot(s) into a Microsoft® Word document. Write a half-page response in the same Microsoft® Word document and address the following: Provide a manual for the user, explaining how to use the program.Explain what type of user input validations you should have. What happens if the user enters a negative number? What happens if the user puts a $ in the input? .
- An event procedure invokes the GetBonus function using the statementdblBonus = GetBonus(dblSales). The function multiplies the sales amount passed to it by 3% and then returns the result. Which of the following is the appropriate function header for the GetBonus function?a. Private Function GetBonus(ByVal dblSold As Double)b. Private Function GetBonus(ByRef dblSold As Double) As Doublec. Private Function GetBonus(ByVal dblSold As Double) As Doubled. Private Function GetBonus(ByVal dblSold As Double, ByRef dblBonus As Double)Declare and define a function that computes bonus for an employee depending on the base salary and the number of years of experience of the employee. Inside the function, check the number of years of experience. If the number of years of experience is greater than 10 years, the bonus is 10% of the base salary, otherwise it is 5% of the base salary. You will need to call this function from your main function and pass the base salary and the number of years as arguments. Code: #include <iostream>using namespace std; double compute_bonus(double base_salary, int experience); int main(){ double base_salary; int experience; //get values of base_salary //get experience from user //call compute_bonus by passing necessary parameters //display the bonus returned by the function return 0;} //function definition{ double bonus; //compare experience/calculate bonus //return computed bonus }program5_2.pyYou have a business that cleans floors in commercial space and offices. You charge customers $0.45 per square yard, and some customers require multiple cleanings every month. You need two custom functions for your business. The first function takes a floor's length and width in feet and returns the area in square yards. The second void function takes the area, charge per square yard, and number of monthly cleanings as arguments and prints the cleaning cost. This latter function uses selection (if...else) logic to print different output for single and multiple monthly cleanings (see Sample Outputs). Use a properly named constant for the charge per square yard, too. import mathdef main(): length = int(input("Enter the floor length in feet ")) width = int(input("Enter the floor width in feet ")) numberOfCleanings = int(input("Enter the monthly number of cleanings ")) pricePerSqYrd = 0.45 area = getSqYrds (length, width) charge = printCleaningCost…
- program5_2.pyYou have a business that cleans floors in commercial space and offices. You charge customers $0.45 per square yard, and some customers require multiple cleanings every month. You need two custom functions for your business. The first function takes a floor's length and width in feet and returns the area in square yards. The second void function takes the area, charge per square yard, and number of monthly cleanings as arguments and prints the cleaning cost. This latter function uses selection (if...else) logic to print different output for single and multiple monthly cleanings (see Sample Outputs). Use a properly named constant for the charge per square yard, too. import mathdef main(): length = int(input("Enter the floor length in feet ")) width = int(input("Enter the floor width in feet ")) numberOfCleanings = int(input("Enter the monthly number of cleanings ")) pricePerSqYrd = 0.45 area = getSqYrds (length, width) charge = printCleaningCost…(Displaying a Square of Any Character) Modify the function created in Exercise 5.19 toform the square out of whatever character is contained in character parameter fillCharacter. Thusif side is 5 and fillCharacter is “#”, then this function should print: ##### ##### ##### ##### #####QUESTION 22 Write ONLY the function to do the following: Input a number selected by the user That number MUST be between 10 and 15 The upper and lower range of the answer must be passed as arguments to the function If the number is NOT in the right range, the user MUST be prompted to input the right answer again Return the answer to the calling function when correct