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
- Problem: An online grocery store sells items on a web page. A user adds items to a basket and he clicks on the submit button when he completes. The store sells food and electronic items. The electronic items require VAT payment of 15 percentage of their prices. There are packed and lose food. The lose food is measured in weights. User specifies the weight amount or the quantity in his selection of items depending on its type. The price is computed as the product of the price per item or the price per weight and the weight or quantity are given by the user. Write an application that reads a user basket list and produces the bill receipt. Check the given samples of input/output in the figures below. The bill receipt contains the list of item details in decreasing order according to the price computed for each item. Use the selection sort' to sort the items in the list and do not use java given sort method. Selection sort is an algorithm used to arrange elements in a list. It selects the…In this assignment you will write a program that shows the valid moves of chess pieces. Your program will draw a board with 64 squares using the traditional layout, next ask the user to choose a move, and then, depending on the user's choice, redraw the board with the selected chess piece and its valid moves. Please see the examples of valid moves of chess pieces and the traditional chess board layout below:Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N). Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee. The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…
- Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N).Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee.The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…Part 1: Complete the survey. Part 2: Peek-a-boo is a fun game that little kids like to play. To simulate this game on the computer, write a program that will generate a random number between 1 and 4. Then, will print to the screen the animal name associated to that number. The animal names used will be: pig when a 1 is generated cow when a 2 is generated chicken when a 3 is generated horse when a 4 is generated If your program generates a 3, the output will be: chicken The player will then enter a 1 if they would like to play again or anything else to exit the program. If the player enters "1 1 1 0", the output will be: horse chicken cow horse For coding simplicity, follow each output animal by a space, even the last one. Hint: To make testing easier, seed your random number generator with 0.Previously in this chapter you saw the card_dealer.py program that simulates cards being dealtfrom a deck. Enhance the program so it simulates a simplified version of the game of Blackjackbetween two virtual players. The cards have the following values:Numeric cards are assigned the value they have printed on them. For example, the value ofthe 2 of spades is 2, and the value of the 5 of diamonds is 5.Jacks, queens, and kings are valued at 10.Aces are valued at 1 or 11, depending on the player’s choice.The program should deal cards to each player until one player’s hand is worth more than 21points. When that happens, the other player is the winner. (It is possible that both players’ handswill simultaneously exceed 21 points, in which case neither player wins.) The program shouldrepeat until all the cards have been dealt from the deck.If a player is dealt an ace, the program should decide the value of the card according to thefollowing rule: The ace will be worth 11 points, unless that…
- Assignment Write a program that moves a forester unit and a desert corps unit to a given target location and prints the number of hours it took for each unit to reach the target. First, the user will give the starting X and Y positions of the forester unit as well as its base speed (all ints). Then, the starting X and Y positions of the desert corps unit as well as its base speed (all ints). Finally, the target X and Y positions (both ints) and the terrain type (std::string). Speeds are given as distance traveled in one full day (i.e., 24 hours) and is affected by the terrain type using a multiplier over the base speed. Also, after 1 full day, each unit rests for a certain number of hours. Speed multiplier and rest amount of each type of unit depending on the terrain type are as below. Speed Multiplier Rest Duration After 1 day Terrain type Forester Desert Corps Forester Desert Corps Forest 1.3 0.6 4 12 Desert 0.4 1.2 15 6 Hills 0.7 0.8 6 8 Others 1.0 0.8 8 6 After getting all this…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.Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient the following data should be entered: • The number of days spent in the hospital• The daily rate• Charges for hospital services (lab tests, etc.)• Hospital medication charges.If the patient was an out-patient the following data should be entered:• Charges for hospital services (lab tests, etc.)• Hospital medication charges.Use a single, separate function to validate that no input is less than zero. If it is, it should be re-entered before being returned.Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out- patient data. Both functions should return the total charges.
- Write 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…3) Suppose an airline company has hired you to write a program for choosing the passengers who should leave an overbooked flight. That means the airline has booked too many passengers hoping some of them would not show up on time, but passengers are on board and the aircraft doesn't have enough seats available for all these passengers. Your program chooses the passenger who must leave the flight. Passengers will be ranked based on the fare they have paid for booking (a double number called fare), and their number of loyalty points (an integer number called points). Fare and points are equally important, that means, in order to decide the position of each passenger in the list, fare and points each have 50% importance. A Person with minimum priority (combination of fare and points) will leave the flight. You need to define a class called Passenger with these member variables: passenger's name • fare points. Passenger class must have 3 accessors, 3 mutators, a constructor with three…A business that uses functions to calculate the weekly payment amounts of employees in a workplace.you are asked to write a program.The weekly payment amount of an employee depends on the following variables:- Number of hours worked - (minimum: 0, maximum: 60)- Hourly wage - (minimum: 0.00 TL, maximum: 30.00 TL)- Number of exemptions - (minimum: 0, maximum: 5)Using these 3 values,- Gross payment amount- General income taxLocal income tax- Social security amount- Net payment amountwill be calculated. →The maximum number of hours an employee can work before earning overtime pay is 40 hour. If the number of hours worked is less than or equal to 40, the gross payment amount will be equals the product of the wage. If the number of hours worked is more than 40, the gross payment amount is 40 times the hourly wage. plus 1.5 times the hourly rate for every hour over 40 →The general withholding tax is 55.77 TL for the weekly payment period. The employee is subject to general taxation the gross…