Write a program that receives student's marks (8 marks) and evaluates the average: use conditions or loops If 50<=average<60 print "poor". If 60<=average<70 print "medium". If 70<=average<80 print "good". If 80<=average<90 print "very good". If 90<=average<=100 print "excellent". Otherwise, print "fail
Q: True or false: Use of generate and recursion in defining Verilog modules generally will result in…
A: The above question is solved in step 2 :-
Q: e function should accep
A: def power(x, y): if (y == 0): return 1 elif (y%2 == 0): return (power(x,…
Q: What does a Syntactic Analyzer do? a) Maintain Symbol Table b) Collect type of information c)…
A: Answer:
Q: StackGuard is a tool for detecting buffer overflows. It modifies the compiler to place a known…
A: The Answer is in step2
Q: Learning Goals use a dictionary to store menu items use a function to print formatted menu options…
A: There are 3 TODOs in the question that need to be answered. #1 (a) Adding keys to the menu…
Q: The concept of privacy is abstract and difficult to understand when applied to the realm of…
A: Introduction: When discussing information security, the concept of "privacy" relates to safeguarding…
Q: Write Steps to Convert SOP to Canonical SOP Form.
A: Given: Explain the procedure to convert SOP to canonical SOP .
Q: Python program to solve the following problem: e the square root x√a² + b² Y us
A: Solution - In the given question, we have to write a python program for the given function.
Q: The solution to the quadratic equation 11x+220 is x = 3 and x=6. What is the base of the numbers?
A:
Q: Why is it necessary to authenticate? How do various authentication methods compare and what are…
A: Introduction: Authentication identifies users who access a system, network, or device. Username and…
Q: method called printSum
A: Dear Student, As no programming language is mentioned I am assuming it to be Python.
Q: Explain Write-Ahead Logging?
A:
Q: Give us a working definition of "application security."
A: Application security develops, integrates, and tests app-based security components to prevent…
Q: Analyze how well and how often your interpersonal skills were put to play throughout the preparation…
A: INTRODUCTION In daily life, it's our communication abilities, speaking, listening, walking,…
Q: The concept of "virtual machine security" may sound foreign to some.
A: Virtual Machine Security: The word "virtual machine security" is shown below. To keep your virtual…
Q: In this lab, you use what you have learned about searching an array to find an exact match to…
A: #include <iostream> using namespace std; int main() { string arr[10]; int flag=0;…
Q: ger parameters and prints their sum on the standard output (terminal): for example, The sum of 3…
A: Write a method called printSum that takes two integer parameters and prints their sum on the…
Q: The concept of privacy is abstract and difficult to understand when applied to the realm of…
A: Privacy safeguards an individual's personal space. It grants a person the capacity to choose his or…
Q: d software are described (Definition of customised software - Applications developed for individuals…
A: Software Customization: Customized software is worked for a specific organization or user. In that…
Q: 10. You are evaluating a CMBS. Beyond the standard metrics (i.e., LTV, DCI, etc.), name two things…
A: The question has been answered in step2
Q: How would one do a requirements analysis for an online learning platform?
A: Introduction: Requirements analysis - It is a component of the Software Development Life Cycle.…
Q: Select the following statements that are true. The quotient of 20 divided by 3 is 7. The remainder…
A: :: Solution:: Option(2) The remainder of 20 divided by 3 is 2 Is True. Option(4) Is True 2…
Q: If there are several components used to make up a typical operating system, can its "kernel" be…
A: Introduction: Provide a list of the kernel components that make up a typical operating system and a…
Q: n to recognize data access security concepts. (S
A: Description: 1- There are three main types of data access security concepts.
Q: Algorithm for Central Series of a p-group Input: a permutation p-group G with a base B; a prime-step…
A: given data: Input: a permutation p-group G with a base B;a prime-step B-ssgs [g 1, g2 ..... gm] of…
Q: Express the Boolean function F= XY + overline X Z in product of maxterm.
A:
Q: Let's talk about the moral and legal consequences of our over-reliance on digital tools.
A: Over Reliance on Technology: The phenomenon of automation bias can be understood as the tendency to…
Q: Write pseudocode to find Number of Nodes in a Binary Tree (cont.)and calculate its running time.
A: We will now create a recursive method to determine how many nodes there are in a binary tree.…
Q: 2. Prove that TL i=1 n² (n + 1)² 4
A: The given question is a mathematical question.
Q: Draw a binary expression tree that represents the expression 3 * (( 7 + 1) / 4) + (17 – 5) Also,…
A: Binary expression tree:- A binary expression tree is a specific type of tree data structure that is…
Q: How does relying on separate databases create causes for alarm?
A: Introduction: Computer malfunction and loss cause unnecessary cost increases and decreases.…
Q: To what extent does the OS's microkernel follow any particular guidelines for its layout and…
A: In contrast to the traditional kernel-based approach, the microkernel operating system is predicated…
Q: In Java inside
A: import java.util.*;public class Main{ public static int menuInteger () { while (true) {…
Q: Determine the value of b for the following: ii) (16)10 = (100) i) (292) 10 = (1204)
A:
Q: Why not give a short explanation of the two parts that everyone agrees are the mos important in an…
A: Here in this question we have asked to give a short explanation for two most important part of…
Q: What is a Construc
A: Dear Student, Detailed answer for your question is given below -
Q: implement algorithm IterativeTraversal(tree) pre-cond: tree is a binary tree. As usual, each node…
A: pre-cond: tree is a binary tree. As usual, each node has a value and pointers to theroots of its…
Q: Draw use case daigram for returning damged Products with (iherb) onlin Programe.
A: The question has been answered in step2
Q: What is the difference between a synchronized method and a synchronized block ?
A: Solution : What is Synchronization : Synchronization is concerned with the asynchronous behaviour of…
Q: A customer can place an order online. For each item, the order can be sent to the customer either by…
A: UML diagrams called sequence diagrams show the flow of messages sent and received by objects during…
Q: Outline the basic tenets of a challenge-response authentication system. An alternative method…
A: Hi please find the solution below and I hope it would be helpful for you.
Q: Please provide some instances of both open source and proprietary application software and describe…
A: Programs: Application software provides an a educational, personal, or commercial role. Each…
Q: Which of these does not belong to Context-Free Grammar (CFG)? a) Terminal Symbol b) Nonterminal…
A: Context-free grammar G can be defined by four tuples: G= (V, T, P, S) , where G = grammar T =…
Q: Information systems are composed of many different sorts of components.
A: The main components of information systems are computer hardware and software, telecommunications,…
Q: Convert the ER diagram in the above question into relational model.
A: Relational Schema: A relational schema is an outline that explains how businesses store and organize…
Q: For each business, discuss the business entity that represents the best choice for each business,…
A: The question has been answered in step2
Q: Briefly go through the most suitable technological options. Identify a piece of technology that is…
A: We no longer communicate or conduct business in the same way. The most practical tool we have is…
Q: Examine the issues that arise in information systems by data-based means.
A: Introduction: This topic examines the challenges that information systems confront as a result of…
Q: write the shortest Kotlin function you can that would not work correctly if implemented using…
A: The shortest Kotlin function will be : fun x 1 = 1 x n = x (n-1);
Q: The purpose of a LAN, or local area network, is to connect computers and other devices within a…
A: The Local Area Network consists of a collection of various devices linked to one another in a…
Write a
use conditions or loops
If 50<=average<60 print "poor".
If 60<=average<70 print "medium".
If 70<=average<80 print "good".
If 80<=average<90 print "very good".
If 90<=average<=100 print "excellent".
Otherwise, print "fail
Step by step
Solved in 4 steps with 3 images
- Write a program that can suggest an activity based on the temperature. If the temperature is between 20 to 40 degrees Fahrenheit, suggest the user go skiing; if the temperature is between 41 to 60 degrees Fahrenheit, suggest the user go hiking; if the temperature is in the range of 61 to 80, suggest swimming. For all the temperatures out of these ranges (too cold or too hot), then suggest staying inside.plz solve it asap ????????: Write a program for a game that consists of two players. The rule of the game is that player 1 inputs a random number from 1-100. Player 2 will input 5 numbers. If the summation of those numbers is equal to the number OR less than or greater than the number by 3 (+3 or -3), then player 2 wins. Otherwise, player 1 wins. Test Case 1 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 7 Output Player 2 wins Explanation: The summation of 10,10,20,5 and 7 is 52 which is greater than 50 by 2. According to the rule, player 2 wins. Test Case 2 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 1 Output Player 1 wins Explanation: The summation of 10,10,20,5 and 1 is 46 which is less than 50 and also doesn’t…Write a program that will figure out the required change for a purchase. Start by asking the user for the price of the product and the amount paid. (We are expecting that the user will give a larger value for the amount paid.) Read in each of these values as a double. Report back to the user the number of each denomination of change due. You are not just telling the user the amount of money he gets back. Hint: Working with integers is much easier. The modulo operator is your friend for this assignment. Also, note that pennies can be tricky due to the poor real number to binary conversions. (Remember that 1.00 could actually be stored as 0.9999999999997.) Do not include five-dollar bills, ten-dollar bills, etc. Only show coins and one-dollar bill amounts. Be sure to test multiple values. There is a test case below. Your program should run the test case exactly as it appears below, and should work on any other case in general. Output Example (User input is marked with >>>.…
- Write a program that asks the user how many credit units they have taken. If they have taken 23 or less, print that the student is a freshman. If they have taken between 24 and 53, print that they are a sophomore. The range for juniors is 54 to 83, and for seniors it is 84 and over.Write a program that works out if a given year is a leap year This is how to workout whether if a perticular year is a leap year on every year that is evenly divisible by 100 except every year that is evenly divisible by 100 unless the year is also evenly divisible by 400 Note Study the flow chart given below START No Yesit cleanly divisible by Not Leap No Yes it cleanly divisible by 1007 Leap No Yes it cleanly divisible by 4007 Not Leap Leap Guideline : Create a unique code Create a function leapYear_697 to accept the parameter (i.e year ) and return whether the given year is a leap year Javascript program name should be like Assign2 697Write a program that prompts the user to enter the number of study hours of a student and the average of the student. Then the program is checking the following:- If the average of the student is greater than 4 and the number of hours is less than 26, then the program should display "You have a chance".- Otherwise, the program should display "You do not have a chance".
- Using Paython Write a program that asks a student for his grade (out of 100) in 3 exams and then print out his final grade (out of 100), given that the weight of the first exam is 30%, the second 30%, and the third 40%.Example Input:Exam1: 70Exam2: 80Exam3: 90Example Output:Total Grade = 81Explanation: 0.3 * 70 + 0.3 * 80 + 0.4 * 90 = 81What is the probability that in a classroom of x people, at least 2 will be born on the same day of the year (ignore leap year)? Use a Monte Carlo Simulation and a frequency table to write a program that calculates this probability, where the number of people (x) in the simulated class is given by the user. The probability for a class of size 23, should be right around 50%. NO language of "break" or "true" please! PLEASE USE THE OUTLINE GIVEN BELOW TO WRITE THE CODE: # What is the probability that in a classroom of x people, at least 2 will be born on the same day of the year (ignore leap year)?# I have given you the skeleton and some of the code... you complete it using a frequency table!# Note: In a classroom of only 23 people, the probability is about 50.7% !# Try first with 10000 trials and then try with 100000 trials. This code runs somewhat slowly in repl.it import mathimport random # create and initialize frequency table:ft = []k = 0while(k < 365) : ft.append(0) k = k+1…Write a program that plays a guessing game with the user. The user should pick a letter, and the computer should try to guess the letter. After each guess, the user should tell the computer whether its guess was too high or too low. With this information, the computer should be able to guess the letter within five tries. The user should be able to give whole words or single upper or lower case letters as responses. c++
- Write a program that requests the user to enter the total purchase in dollars and cents ( for example, $23.65, $45.00, etc) and outputs the discount in dollars and cents. If the total purchase is less than 200 dollars, there is no discount. If the total purchase is more than 200 dollars but less than or equal to 1000 dollars, then the discount is 15%, and if the total purchase is more than 1000 dollars, then the discount is 30%. At this store, a student always gets 30% discount on all purchases. Include this information in your codes.Write a program that computes the amount of calories burned when you run. Your program should ask for the duration of the run in minutes the speed of the run in mph and your weight in pounds. Compute the amount of calories burned and print it. The calories burned is computed using the expression below: \n", "\n", "$$ calories/minute = (MET*weight*1.6)/200 $$\n", "\n", "MET is a value given below:\n", " - if speed is 5mph or less - MET = 8\n", "- if speed is greater than 5 and less or equal 8 mph - MET = 11.5 \n", "- if speed is greater than 8 and less or equal 10 mph - MET = 14 \n", "- if speed is greater than 10 mph - MET = 20\n", "\n", "Remeber to multiply this result by the time running to show the total amount of calories burned.\n"Write a program that generates a random number in the range from 1 through 100 After generating the random number, the user is to guess the number. If the user’s guess is higher than the random number, the program should display “Too high, try again” If user’s guess is lower than the random number, the program should display “Too low, try again”. If the user guesses the number, the program should congratulate the user and then generate a NEW random number so the game can start over. Make the game menu driven with these options Main Menu ______________ 1)Play Game 2)Exit written in python