Assume you are a college professor and have to average grades for 10 students. Write a program that prompts you for 10 different grades, then displays an average of them.
Q: Define a class RESORT in C++ with the following description: Private Members: Rno //Data member to s...
A: Here we define a class RESORT in C++ language of the given description , so the programming for the...
Q: def display_welcome(): print("This program will create a wish list for the user.") print("En...
A: For 6% we need to multiply with 0.06 Also while invoking get_tax() we need to pass sub as parameter ...
Q: What is a host-based IDS?
A: Introduction: A HIDS allows you to see what's going on with your important security systems in real-...
Q: Objective: To create a JSON for Population census with objects and arrays Scenario: XYZ Census Com...
A: sample.json { "Country":"India", "State":"Uttar Pradesh", "YearOfSurvey":2015, "TotalPopulat...
Q: Using Python, given a reference string followed by four more strings, create a program that determin...
A: Find Your Code Below
Q: 1. In the following template code, complete the code for following requirements a. Read string S b. ...
A: Step 1 : Start Step 2 : In the main function , declare the strings S1 , S2 , SP and S. Step 3 : Taki...
Q: 1. Design a class named Employee_Salary that contains: • A String data field named name representing...
A: Algorithm: for (initialExpression; testExpression; updateExpression){ // body of the loo...
Q: You are working on the search problem of the client project so you have given the A- length list N, ...
A: The answer as given below:
Q: What is the current condition of the internet of things, and when and where did it all start?
A: Introduction: The Internet of Things (IoT) is a network of interconnected computer devices and equip...
Q: Creating scatter plot using code in a Matplotlib in Jupyter Notebook Generate a sequence of at leas...
A: The code is given below.
Q: 11. What is the binary equivalent of this decimal fraction 0.546875? 0.110011 0.100011 0.100100 0.11...
A: In decimal to binary conversion, we convert a base 10 number to a base 2 number by using simple meth...
Q: To create a JSON for Population census with objects and arrays Scenario: DEF Census Company is mai...
A: Program: sample.json { "Country":"India", "State":"Uttar Pradesh", "YearOfSurvey":2015, "Tot...
Q: The program's header says the data segment is 0x230 bytes. However, only the first 0x228 bytes origi...
A: To understand this thing we should understand the concept of the data structure alignment . As the n...
Q: Which is the the best place to obtain patches and hotfixes for Windows Operating system?
A: EXPLANATION: Swanirvar Charitable Trust (SCT) is a social welfare organization dedicated to reachin...
Q: The cloud is protected by using the shared responsibility model and managing identity access (IAM). ...
A: Here i explain about IAM(identity and access management): ==========================================...
Q: A class called Customer (as shown in the class diagram above) is designed to model a customer. It co...
A: Step 1 : Start Step 2 : Defining the class Customer and inside it declare the Data members. Step 3 :...
Q: Q.2. What do you understand by annotations? Explain is the role of annotations in JPA.
A: -> Annotations are meta data or data about the data -> types of annotations include explanatio...
Q: What is Linux used for, and how does it operate on mobile phones?
A: Introduction: Android is undeniably one of the most popular Linux-based technologies of all time, an...
Q: What exactly is a public cloud computing environment, and how does it function?
A: Introduction: The Internet of ThingsThe phrase "cloud" refers to on-demand services sharing programm...
Q: As a security professional would you allow the implementation of loT devices in the workplace?
A: IOT devices can be implemented in workplace but with security tools with IOT devices Use authorised ...
Q: Short answer Why are disk files broken up into blocks and scattered across the disk surface(s)? Co...
A: Introduction: In a computer, a disc is used to store data. To boost the speed of data storage, the d...
Q: Compare Assembly language with Machine Language. Discuss about I-type instruction format
A: Introduction: Computer languages have progressed from Low-Level to High-Level Languages over time. O...
Q: Need to create an Entity relationship diagram(ERD) for this scenario below. Extra company does not h...
A: ER Diagram: An entity-relationship(ER) model uses a diagram called an Entity Relationship Diagram t...
Q: Consider a 4-way set associative cache made up of 64-bit words. The number of words per line is 8 an...
A: Given, Number of sets S = 4096 Also, its a 4-way set associative cache.This means, number of lines p...
Q: When a cell in Microsoft Excel is filled with hashtags, what does it mean?
A: Introduction: When the column in an Excel spreadsheet isn't large enough to show the information, it...
Q: Why is it necessary to create a virtual base class while using hybrid inheritance?
A: In the given question hybrid inheritance is a combination of more than one type of inheritance. Hybr...
Q: python code Given a Python list, remove all occurrence of 20 from the list.
A: Let's see the code below
Q: How can 32-bit address be moved to a register? Show with an example.
A: Using LDR instruction. LDR instruction places the 32-bit value(basically it is an address) in a lite...
Q: A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are ...
A: The code is given below.
Q: Which of the following is correct code (compiles correctly and has the correct effect) for doing the...
A: Which of the following is correct code(compiles correctly and has the correct effect) for doing the ...
Q: Design a PDA for Language L = {0"im2(n+m) | m,n>=0 }.
A:
Q: What is RACI method?
A: RACI stands for Responsible, Accountable, Consultant and Informed. It is an important tool used in v...
Q: Identify and briefly describe four of the causes of the rising number of computer-related errors.
A: Intro With the increase in use of computer at work or at personal level, humans are dependent on com...
Q: Which of the following is correct code (compiles correctly and has the correct effect) for doing the...
A: Ans: The following code that is correct code for the following task : "Take an ArrayList of any elem...
Q: Which of the following is equivalent to the given code fragment? * switch(ch) { case 'A': case 'E': ...
A: Given: which of the following is equivalent to the given code Fragment.
Q: F verify(submission): rocessed = [ ] F len(submission) % 2 != 0: return False or i in range(@, len(s...
A: def verify(submission): processed = [ ] if len(submission) % 2 != 0: return False f...
Q: Create the structure employee which composed of name with 50 characters, years of service which is a...
A: Algorithm: 1.create an employee structure 2.create required methods 3.create a Function to read emp...
Q: Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns let...
A: 1. Taking variable i and x for iterating in loops . 2. Using the for loop and checking if i is less ...
Q: a) U(0) = cos(20) (b) U(6) = cos (20) %3D %3D (e) U(6) cos(20) cos(36) (d) U(0) = cos (20) cos (30) ...
A: cos can be written using the predefines matlab function cos. cos2(x) can be written using cos(x).^2 ...
Q: How does the kernel communicate (deliver) a signal to a target process?
A: The answer is given below.
Q: Some software subsystems are deemed “low quality, high value.” Analyze how the re-engineering of tho...
A: Low quality high Business value Low quality High business value these kinds of systems making import...
Q: 13. What is 25.25 to IEEE 754 32-bit single precision floating point format (BIAS 127) 0 10000101 10...
A: First we have to convert 25.25 into the binary format , then we have to convert them into the scient...
Q: What exactly is bidirectional tunnelling? Why is it necessary to have HA–FA in addition to the HLR–V...
A: Bidirectional tunneling In transportation infrastructure, a bidirectional traffic system divides tr...
Q: 1 Fill in the blank entries in the following table, giving the decimal and hexadecimal representatio...
A: We need to fill the blank entries . First : n = 9 For which the Decimal 2^9 = 512 and Hexadecimal of...
Q: Compare and contrast the differences between operating system layer and modular architectures.
A: Introduction: Layered architecture: The operating system may be divided into sections to keep extra ...
Q: Write a program named calendar.java that prints a one-month calendar. The user specifies the number ...
A:
Q: 2. Use Armstrong's axioms to prove the union rule: Ifαβ and α Y, then α-βy.
A: 2. The union rule to be proved using Armstrong's axioms are : If α → β and α → γ, then α → βγ. The ...
Q: 1. Consider a schema R = (A, B, C, D, E). Assume that the following set F of functional dependencies...
A: The closure of attribute A is a set of those attributes which can be functionally determined by A an...
Q: Keeping to the principle of abstraction when specifying code means Select one: O a. Writing a specif...
A: The abstraction principle of programming languages states that it is the principle which helps in re...
Q: he most efficient technique is to utilise a virtual environment to run many operating systems on a s...
A: Introduction: The use of several operating systems in a virtual environment
Assume you are a college professor and have to
average grades for 10 students. Write a program that
prompts you for 10 different grades, then displays an
average of them.
Step by step
Solved in 4 steps with 2 images
- Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase subtotal and calculates the total purchase cost, including 7% tax.Write a program that prompts the user to enter the distance todrive, the fuel efficiency of the car in miles per gallon, and the price per gallonthen displays the cost of the trip.Write a program to calculate total ordering cost. Jacob is a retailer for ice. Normally a bag of ice costs $2.5, but the price varies with the amount that he purchases. The following table shows the discount that Jacob receives. Order Volume Discount Rate >= 200 bags 25% off 120 - 199 bags 20% off 60 - 119 bags 15% off 40 -59 bags 10% off 20 – 39 bags 5.5% off 0-19 bags No discount (1) Inyourprogram,definevariableswithmeaningfulnamestoacceptuserinputonordervolume, and calculate total ordering cost based on the order volume inputted. Use if-else statements to handle the calculations for different order volumes as shown in the above table. (2) Yourprogramshouldprintoutuserordervolume,discountrate,andtotalorderingcostinconsole (similar to the following sample outputs)
- CREATE A PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZENIF YES, THEN GIVE 20% OFF IF HE IS BOTH PWD AND SENIOR CITIZEN, GIVE 20% ONLY ASK IF HE HAS A MEMBERSHIP CARD. IF YES, GIVE ANOTHER 3% OFFWrite a program named BigLetter that displays a large letter composed Of smaller letters. For example, if you choose H, then the output should look similar to the image shown in Figure 1-20.For this assignment, write a program named PizzaPrices that prompts the user to make a choice for a pizza size - S,M, L, or X - and the number of pizza the user wants to order. The price for different size pizzas are $6.99, $8.99, $12.5, and $15.0 respectively. There is also a discount based on the number of pizza ordered: no discount for one pizza, 10% discount for 2 pizzas, 15% discount for 3-5 pizzas, and 20% for more than 5 pizzas. Display a full accounting of the transaction, similar to the sample screenshot. Please make sure you use parallel arrays and range match in your solution.
- write a program that reads a line of text and then displays the line, but with the first occurrence of hate changed to love . for example, a possible sample dialogue might beenter a line of text.I hate you .I have rephrased that line to read:I love you.you can assume that the word hate occurs in the input. If the word hate occurs more than once in the line, your program will replace only its first occurrence.A certain CS professor gives 100-point exams that are graded on the scale90-100:A, 80-89:B, 70-79:C, 60-69:D, <60:F. Write a program that accepts an exam score as input and prints out the corresponding grade.Write a program that promotes the user to enter the number of students and each student's name and score ,and finally displays the student with the highest score and the second highest score.
- write a program that displays, in ascending order,the first names of those students who have attended more than one day of the course.If there are students with the same first name, display their first and last names.When the mouse is on the first letter of a word in vim, you can capitalise it by typing x, then p. Give a full description of what happens.Write a program that can be used by a small theater to sell tickets for performances. The theater’s auditorium has 15 rows of seats, with 30 seats in each row. The program should display a screen that shows which seats are available and which are taken. For example, the following screen shows a chart depicting each seat in the theater. Seats that are taken are represented by an * symbol, and seats that are available are represented by a # symbol: Seats 123456789012345678901234567890 Row 1 ***###***###*########*****#### Row 2 ####*************####*******## Row 3 **###**********########****### Row 4 **######**************##****** Row 5 ********#####*********######## Row 6 ##############************#### Row 7 #######************########### Row 8 ************##****############ Row 9 #########*****############**** Row 10 #####*************############ Row 11 #**********#################** Row 12 #############********########* Row 13 ###***********########**###### Row 14…