Count Dracula buys blood from the public. But since he prefers certain types to others, he pays as follows: Type A B C (for AB) 0 Rate/liter P 3000.00 P 1800.75 P 2880.25 P 1500.00 Write a program to input a client's blood type and the volume (liter) of blood extracted. Output how much the client will be paid.
Q: For the graph G of Figure 2.11, construct a 3-regular graph H containing G as an induced ubgraph (a)…
A: ANSWER:-
Q: Define aliasing error. Give the upper bound for the aliasing error.
A:
Q: Draw an ER diagram for the EMU Slimming Center based on the specification given below. Case Study 01…
A: The question has been answered in step2
Q: What is DHCP?
A: In this question we have to understand what is DHCP LET'S UNDERSTAND
Q: A quick rundown of the fundamental building blocks that make up an OS would be much appreciated.…
A: OS components include: Files, please! Process Management oversees processes. I/O management.…
Q: make 3 text files that each one includes 10 names and also make one text file that includes integer…
A: cout<<"TITLE: "<<book_list[i].get_name()<<endl; cout<<"BY:…
Q: Please provide pseudocode, a flow chart, and walk threw the process of a merge sort. Thank you
A: Pseudocode of Merge sort: Declare left and right vars to denote the extreme indices of the array.…
Q: To what extent does one abide by a single overarching philosophy while designing an OS's…
A: Introduction: What guiding principle guided the creation of the operating system's microkernel? What…
Q: 30. Why is IT called a security? 31. What type of word is security? 32. What is full form of Kiss?…
A: Here in this question we have asked multiple questions . Note - According to our guidelines if…
Q: Illustrate your algorithm by showing on paper similar to Fig. 8.3, page 198 in the textbook (make…
A: This is very simple. Here is the Radix Sort Algorithm for time complexity O(n) with output. Note:…
Q: Write the following code segment in MARIE's assembly language:
A: This is very simple. Here is the complete MARIE assembly language for the following code segment…
Q: What is redundancy?
A:
Q: Let the processes P1, P2, P3, P4, and P5 be given. They arrive in the system at the same time in…
A: ANSWER:-
Q: What does the following python code do? f = open("sample.txt", "a") Choose all that apply.…
A: In this question we have to determine python code which is applicable to given points and we have to…
Q: Where do the benefits and drawbacks lie in between two components of a regulatory system that…
A: So, let's Take A look At The reply: Cybersecurity frameworks are a set of rules that, when followed,…
Q: (1) Consider the MARIE program below. Hex Address Label 100 Start, 101 102 103 104 T 105 106 107 108…
A: SOLUTION: Hexadecimal code for each instruction: Hex address Label Instruction Hexadecimal code…
Q: Julia is a freelance hakers. She receives a few cake orders, for this Saturday. Since quite a number…
A: Here below I have written the code in C++ along with the code and output screenshot
Q: Explain Shannon-Fano coding. (June'13)
A: DATA COMPRESSION AND ITS TYPESData compression, also known as the source encoding, is the process of…
Q: Design a combinational circuit defined by the Boolean function F(X,Y,Z) = (X'+Y)(X'+Z')(X'+Y'+Z),…
A: Given: We have to design combinational circuit defined by the Boolean function F(X,Y,Z) =…
Q: Provide a description, focusing on transparency, of the following minimum desired properties of a…
A: Introduction: Instead of having only one logical database, it is really feasible to have a…
Q: Define What is Trellis?
A:
Q: Find the state assignments for sequence 1101011.
A:
Q: Describe the process of routing packets
A:
Q: et a python code on how to merge 10 data cvs file together. Trying to do a deep data dive one those…
A: Dear Student, In the below code we are using pandas and using the concat function we can merge all…
Q: Which functions do the various OS parts have in managing memory?
A: Given: What roles do the various OS components play in memory management?
Q: ask3: Write SQL Queries • At least 2 queries involving GROUP BY, HAVING, and aggreg operators. • At…
A: To write SQL queries.
Q: Linux is the only OS that includes all the concurrent techniques discussed here. This feature is…
A: Definition: The term "concurrency" is used in software engineering to refer to methods and…
Q: What possible negative consequences can spoofing have?
A: Introduction: An importer or spoofer is a cybercriminal who poses as a trusted contact or brand to…
Q: In a nutshell, how would you protect your company's network against cyberattacks?
A: Cybersecurity network protection We hear from companies facing cyber attacks every day. Most of…
Q: Any customer whose total PURCHASE is at least P1000 will be given a 10% discount. Make a program…
A:
Q: 2) Write the following code segment in MARIE's assembly language. If X >= Y then X = X* 2 else Y = X…
A: ANSWER:-
Q: Normalize the data (use mean and mean absolute deviation). Use a 3 nearest-neighbor algorithm to…
A: KNN is a non-parametric supervised learning technique in which we try to classify the data point to…
Q: Is there anything that can be done to strengthen "Cybersecurity's Weakest Link?"
A: Introduction What is Cybersecurity?: Cybersecurity seems to be the protection against harmful…
Q: Discuss any two e-market components.
A: Answer is
Q: In a single statement, how would you explain what an operating system kernel is and how it works?
A: A computer is the kernel: The kernel is a piece of computer software that controls every aspect of…
Q: What kind of effect does Linux's partitioning scheme have on the OS's performance?
A: Introduction: Using partition editors like fdisk, the process of disc partitioning involves dividing…
Q: et the processes P1, P2, P3, P4, and P5 be given. They arrive in the system at the same time in this…
A: Check step 2 detail explanation with Answer,
Q: In Linux code: Write one cmd-line for each of the following using chmod. a. to set the permissions…
A: Chmod is used to change the file and directory permission. In the above question we have to set…
Q: Let's say your company has tasked you with evaluating the dangers posed by its digital holdings.…
A: Introduction: Daily, organisations compete more. Digital assets are crucial in corporate disputes.…
Q: 37. Which options are more flexible at storing data than a spreadsheet? A. database B. data…
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: How might an operating system's architecture that supports the concurrent execution of many threads…
A: Introduction: We must identify the main problems with multithreaded operating system design in light…
Q: What is the difference between error and exceptions in java?
A: Difference between error and exceptions in java Both exceptions and errors are the subclasses of a…
Q: 31. What is the best security technology? 32. What is the main purpose of security technologies? 33.…
A: According to bartleby guidelines we are supposed to answer only 3 sub question, so question 31,32,33…
Q: What do we call the parts of the OS that reside in RAM? Once this process is initiated, how long…
A: The answer to the question is given below:
Q: When submitting this lab, submit a .java file called StudentScores3, and create the following…
A: Java:- Advantages: - 1. It is easy to learn since it is similar to C++, and many resources are…
Q: A LAN, or local area network, is a networking setup designed to connect devices and people within a…
A: Explanation: A local area network is a collection of numerous devices that are linked to one…
Q: what is mean by Ethernet?
A: Ethernet is a traditional standard wired communication protocol used to the build local area…
Q: Define What is Trellis?
A: Definition: A trellis is a type of graph in which the nodes are organised in the form of vertical…
Q: Say we are about to build an ArrayList. Your ArrayList should guarantee that the array capacity is…
A: Array list which simply refers as the one that it can be used to store the dynamic arrays, Iterators…
Q: It says there are three errors (specifically with converting void to char)
A: In this question we have to understand and resolve for why we are getting error for the code Let's…
make a switch c program (must be switch)
example
input
B
2
output
3601.50
Step by step
Solved in 4 steps with 2 images
- Correct answer will be upvoted else Multiple Downvoted. Don't submit random answer. Computer science. How about we characterize a casualty substance: a casualty has a name (not really extraordinary) that comprises just of lowercase Latin letters and an integer doubt esteem. Toward the beginning of the program the client enters a rundown of n casualty names into an information base, every doubt esteem is set to 0. Then, at that point, the client makes questions of two sorts: 1 I x — set the doubt worth of the I-th casualty to x; 2 q — given a string q observe the most extreme doubt worth of a casualty whose name is a coterminous substring of q. Just to remind you, this program doesn't eliminate individuals, it just assists with looking for the names to record in a genuine scratch pad. Consequently, the rundown of the casualties in the data set doesn't change all through the questions. What are you sitting tight for? Compose that program now! Input The main line…Implement a program that calculates the bill of a sandwich stand. The program should ask theuser to enter the quantity of each of the items. Then compute 13% GST on the total amountand generate a bill with items, their quantity along with price of each item and the total(inclusive GST). The stand has the following items:- Petti for $2.50- Drink for $1.25- Extra cheese topping for $1.25JAVA - Please produce both a product.java file and a productprinter.java file (tester) Implement a class Product. A product has a name and a price, for example new Product("Toaster", 29.95). Supply methods getName, getPrice, and reducePrice. Supply a program ProductPrinter that makes two products, prints each name and price, reduces their prices by $5.00, and then prints the prices again.
- Java program At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and the late submission time (in minutes), and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes): 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0 Sample Run 4: Enter your initial grade: 72 Enter the late submission time (in minutes): -2 Time should be positiveProgramming in Python Unit 3 Assignment2InstructionsWrite a program to simulate a bank transaction. There are two bank accounts: checking and savings.First, ask for the initial balances of the bank accounts; reject negative balances and set to zero. Then askfor the transaction; options are deposit, withdrawal, and transfer. Then ask for the account; options arechecking and savings. Then ask for the amount; reject transactions that overdraw an account. At theend, print the balances of both accounts.1. In the game of Monopoly, a pair of dice are rolled to move a player's piece around the board. If a double is rolled (the dice show the same number), the player receives another roll of the dice. If a double is rolled a second time, a third roll of the dice is received. If a double is rolled on the third occasion, the player forfeits their turn (and goes to Jail). Write a program which simulates two players having 50 turns each (a turn however many dice rolls a player has in a row before it's the other player's turn) and determines: a) the total number of spaces moved by each player; and b) how many times a player rolls a double which results in movement of a piece. Use the randi function. For fun, incorporate the rule that a player cannot leave Jail (cannot move) unless they either roll a double or three turns have passed without rolling a double.
- In Java, is there a simple way of doing this without having to use so many If statements? please explain A client wants to purchase drinks for an event they are arranging. Write a program that asks them how much money they have to spend and whether alcohol would be allowed at the event. Then show them their choices from the following list, but 1) only show drinks that they can afford to buy at least 1 of, 2) only show alcoholic drinks if they are allowed at the event, and 3) show how many of each drink they could afford. If the user enters an invalid or negative value for their budget or an invalid response for whether alcohol is allowed, it should indicate an error and let the user try again. The possible drink choices are: Bottle of Water: $0.50 Soda: $1.50 Tea: $3.00 Beer (alcoholic): $5.00 Wine (alcoholic): $20.00Write a program IN JAVA for an instructor whose course has the following policies: Two quizzes, each graded on the basis of 10 points, are given. One midterm exam and one final exam, each graded on the basis of 100 points, are given. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent, and the two quizzes together count for a total of 25 percent. (Do not forget to normalize the quiz scores. They should be converted to percentages before they are averaged in.) Any grade of 90 percent or more is an A, any grade between 80 and 89 percent is a B, any grade between 70 and 79 percent is a C, any grade between 60 and 69 percent is a D, and grade below 60 percent is an F. The program should read in the student’s scores and display the student’s record, which consists of two quizzes scores, two exams scores, the student’s total score for the entire course, and the final letter grade. The total score is a number in the range to 100, which represents the…UOWD Library is asking you to write a Java program that manages all the items in the Library. The library has books, journals, and media (DVD for example). All items have a name, author(s), and year of publication. A journal also has a volume number, while a media has a type (audio/video/interactive). The user of your program should be able to add an item, delete an item, change information of an item, list all items in a specific category (book, journal, or media), and print all items (from all categories). A menu asks the user which operation s/he wants to perform. Important: make use of collections, inheritance, interfaces, and exception handling wherever appropriate.
- Read the following scenario: To implement an exam, an instructor first notifies the students of the exam date and the topics to be covered. The instructor will prepare the exam paper, gets it copied to produce enough copies for the class, and hands it out to students at the designated time and location. The students attempt their answers to exam questions and hand in their answer papers to the instructor. The instructor then gives the answer papers to the tutor, along with sample solutions to each question, and gets them to mark it. The tutor will then records all the marks and return the answer papers to the students. After the answer papers have been returned to the students, they can raise any issues or queries about the marks they received. The instructor then reviews these queries/issues and decides whether marks adjustments are needed. If there are marks adjustments, the instructor will request the tutor to make the necessary changes in the marks record. Draw a sequence diagram…This needs to be done in Java! (Sales Commission Calculator) A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650. You’ve been supplied with a list of the items sold by each salesperson. The values of these items are shown below. Develop a Java application that inputs one salesperson’s items sold for last week and calculates and displays that salesperson’s earnings. There’s no limit to the number of items that can be sold. Item Value 1 239.99 2 129.75 3 99.95 4 350.89 Example Output: Enter number sold of product #1: 10Enter number sold of product #2: 20Enter number sold of product #3: 30Enter number sold of product #4: 40Earnings this week: $2182.61 NOTES: Do not create a separate class for this program. Create the…A pet shop wants to give a discount to its clients if they buy one or more pets and at least four other items. The discount is equal to 15 percent of the cost of the other items, but not the pets. Implement a method: public static void discount (double[] prices, boolean[] isPet, int nItems) The method receives information about a particular sale. For the ith item, prices[i] is the price before any discount, and isPet[i] is true if the item is a pet. Wite a program that prompts a cashier to enter each price and then a y for a pet orn for another item. Use a price of -1 as a sentinel. Save the inputs in an array. Call the method that you implemented, and display the discount.