company has 5 stores {1, 2, 3, 4, 5}. The sales for each store is as follows: {200, 300, 400, 500, 600}. The tax rate is 6% Write a java program that: Print the sales tax for the entire comp
Q: 1.Describe the Linear Discriminant Analysis (LDA) method. 2. Explain how it is used for feature…
A: 1.Linear Discriminant Analysis method: It is one of the common dimensionality reduction techniques…
Q: The principal objective of the IBM Cryptographic Subsystem is to protect transmis- sions between a…
A:
Q: Consider the following disk characteristics: Average seek time = 8 msec Average rotational delay = 3…
A: Given data : Average seek time = 8 msec Average rotational delay = 3 msec maximum rotational delay =…
Q: What is (a --> b) and (¬b --> c) and (¬ c↔¬b) logically equivalent to? Use logic laws and label them
A: Solution: In order to solve this question, first let's understand the neede truth table.
Q: What is formal specification language?
A: Formal specification language is a language that is used to write mathematical specifications of…
Q: Strony garda roughout the decade, progress toward achieving core objectives is tracked and reported.…
A: The question has been answered in step2
Q: Write a Program in Java to implement the Boyer Moore string matching Algorithm using Bad Character…
A: Given that, Text= COLLEGE_OF_INFORMATION TECHNOLOGY Pattern= LOGY
Q: Assume a sequence of 18 integers 11, 29, 21, 4, 43, 24, 52, 8, 17, 50, 45, 30, 15, 34, 54, 2, 35,…
A: The data given:- 11, 29, 21, 4, 43, 24, 52, 8, 17, 50, 45, 30, 15, 34, 54, 2, 35, 61 The technique…
Q: Draw an ER diagram that represents the main aspects of the Apple products database (entities,…
A: ER (Entity Relationship) diagram contains mainly three components that are Entities, Attributes and…
Q: What is the effect of adding the instruction EMK;? EMK;: X→ E(KMH₂X) i=0,1
A: EMK:- The key-generating utility software sent an EMK macro instruction, and an error was made when…
Q: Write function pay() that takes as input an hourly wage and the number of hours an employee worked…
A: def pay(hourly_wage,num_of_hours): if num_of_hours < 40:…
Q: Which of the following scenarios reflects the durability property? 1. A fairly large update…
A: A database management system (or DBMS). It is essentially just a computer-based data storage system.…
Q: What is a public-key certificate?
A: The answer to the question is given below:
Q: Write the code that opens an output file with the filename fifty.txt, uses a loop to write the…
A: Introduction One of the simplest languages to learn and operate with is Python. It can be used for…
Q: 4. Suppose a computer using a fully associative cache has 2^24 byte of byte-addressable main memory…
A: We are given that we have 224 bytes of byte addressable memory. Memory size = 224 bytes= 214 × 210…
Q: Use the logic in the program below S →aAB A →Abc | b B →d choose at least two strings that…
A: The question has been answered in step2
Q: Lets say i have a module that outputs a 32 bit number. I want to
A: The answer is
Q: Consider the following disk characteristics: Average seek time = 8 msec Average rotational delay = 3…
A: Given data of the problem is: Average seek time = 8 msec Average rotational delay = 3 msec Maximum…
Q: USING the SELECT statement, query the track table ordered by the bytes. Set the LIMIT to 5 and…
A: In this problem we need to design share the details what will be the output of the above mentioned…
Q: In Kerberos, Alice receives a reply, how does she know it came from Bob (that it's not a replay of…
A: Solution: Given, In Kerberos, When Alice receives a reply, how does she know it came from Bob…
Q: Define Software Quality Assurance.
A:
Q: Suppose, alist is a 2-dimensional list that is defined as follows. alist = [ [1], [2,3], [5,6,7]…
A: In step 2, I have provided ANSWER with BREIF EXPLANATION---------------------- In step 3, I have…
Q: Question 7: Given a step-by-step to build a Red Black tree with sequence of 2, 1, 4, 5, 9, 3, 6, 7
A: Introduction: The following are some of the rules that were utilized to develop the Red-Black tree:…
Q: Measuring generalization error multiple times on the test set leads to a model that is biased to…
A: Machine learning is a subfield of artificial intelligence and is broadly defined as the ability of…
Q: Question: A chocolate factory is packing chocolates into the packets. The chocolate packets here…
A: Solution: Solution in java language
Q: Discuss importance of DFDS in a good software design.
A: Software design is the process of imagining and defining software solutions to one or more problem…
Q: The wind chill factor (WCF) measures how cold it feels with a given air temperature T (in degrees…
A: function wcf = calculateWCF(t, windSpeed) wcf = 35.7 + (0.6)*t - 35.7*(windSpeed^0.16) +…
Q: What is the purpose of software reviews?
A: Software review is the most important process to ensure the proper development of the software . If…
Q: In what aspects will software change be limited? Intoduce each limitation to software change…
A: There are four categories of software change: Corrective Adaptive Perfective Preventive (1)…
Q: This table shows a page reference string 1, 2, 3, 1, 4, 5, 3, 6, 7, 2, 2, 1, 7, 6, 5, 7,4,7,1 and…
A: FIFO: First in first out: In FIFO page replacement algorithm, the page which comes 1st into the RAM…
Q: 2. Create a state table given state diagram Reset
A: The first question asks to find the state table from the state diagram.
Q: En
A: Coded using Python 3.
Q: what is independent sets ? what is maximal independent set ? what is the independence number? what…
A: A set of vertices I is called independent set or a stable set, if no two vertices in set I are…
Q: A company makes items. Each item has a name, ID and component quantity. Every item contains many…
A: ER model stands for the Entity-Relationship model. It is a high-level data models. This model is…
Q: m = int(temp[1]) IndexError: list index out of range line 3, in m = int(temp[10]) IndexError:…
A: Python indentation Any continuous white space can be used as the indentation. Tabulation or another…
Q: What is soft ware Quality management system.
A:
Q: 2. Generate a BLP lattice-structured system where the objects and subjects are appropriately…
A: Answer I recall correctly, BLP is an example of a Mac (mandatory access control) system, while the…
Q: Activity 2: Draw a Object state diagram for a washing machine based on the given specification.…
A: A state diagram shows the behavior of the classes in response to the external stimuli.
Q: Discuss and write Monitors in detail.
A: What is Monitor? An electronic output device known as a monitor is also known as a video display…
Q: ● Create a query using the Customer Information data that will select records for customers who had…
A: Select data from a database, use the SELECT statement. When retrieving data from a single table, a…
Q: Algorithm #2 - Vector Sum Objective: compute the sum of integers 0..N-1 sum = 0 A = list(range(0,N))…
A: In this question we have to write vector sum and indirect sum program using C++ Let's code
Q: One of the following items is a run-on (or fused) sentence, another contains a comma splice, and…
A: Operating System "OS" System software that manages a computer's hardware and software resources and…
Q: Convert the following context-free grammar into an equivalent context-free grammar in Chomsky Normal…
A: Chomsky Normal Form: The generation is of the form A → BC or A → a, where A, B, C are variables and…
Q: Create a Tictactoe game using tkinter in Python.
A: Simple Python Code for Tic Tac Toe game using Tkinter
Q: Write a string class. To avoid conflicts with other similarly named classes, we will call our…
A: PLS Finf the attached code of the given question
Q: Prove the correctness or give a counterexample for the following statement. You must state whether…
A: What is a Deadlock? A deadlock is a situation in which a number of processes that compete for system…
Q: i need answer quickly
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: In order to compute a power of two, you can take the next-lower power and double it. For example, if…
A: The complete answer in Java is below:
Q: how do you write a CFG for a set of strings
A: The question has been answered in step2
Q: what are the economic implications of modifying software?
A: Software Modification refers to any products that are the result of Integration Services, as well as…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
A company has 5 stores {1, 2, 3, 4, 5}. The sales for each store is as follows: {200, 300, 400, 500, 600}. The tax rate is 6%
Write a java
Print the sales tax for the entire company
Step by step
Solved in 3 steps with 1 images
- JAVA Programming Language: According to the American Heart Association, as you exercise you should periodically check your heart rate to ensure you are in your target zone. Your target zone is a range that is 50% to 85% of your maximum heart rate. The formula for calculating a persons maximum heart rate is 220 minus your age in years. Write a program that reads the users current heart rate, birthday, and the current day (each consisting of month, day, and year). The program should calculate the persons age (in years), the person's maximum heart rate, and the person's target heart rate zone range. Output the users age, current heart rate, target zone range. If their heart rate is in the target zone congratulate them, if it is out of their target zone warn them. Required Methods (Write these first and use them in your algorithm): (your code, particularly for computeAge, must be 100% clear and documented - it's the core of this assignment!) int computeAge(int birthMonth, int birthDay,…in Java Tasks Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows. 1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Don't display the computer's choice yet.) 2. The user enters his or her choice of "rock", "paper", or "scissors" at the keyboard. (You can use a menu if you prefer.) 3. The computer's choice is displayed. Tasks 4. A winner is selected according to the following rules: a. If one player chooses rock and the other player chooses scissors, then rock wins. (The rock smashes the scissors.) b. If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cuts paper.) C. If one player chooses paper and the other player chooses rock, then paper wins. (Paper wraps…JAVA PROGRAM Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator PLEASE MODIFY THIS JAVA PROGRAM SO WHEN I UPLOAD IT TO HYPERGRADE IT PASSES ALL TEST CASSES PLEASE. RIGHT NOW IT SAYS 0 OUT 5 PASSED. THE PROGRAM IS NOT WORKING IN HYPERGRADE FIX IT SO IT WILL WORK IN HYPERGRADE. THANK YOU. import java.util.Scanner;public class Main { public static double calculateRetail(double…
- JAVA PROGRAM Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator PLEASE FIX AND MODIFY THIS JAVA PROGRAM SO WHEN I UPLOAD IT TO HYPERGRADE IT PASSES ALL TEST CASSES PLEASE. RIGHT NOW IT SAYS 0 OUT 5 PASSED. THE PROGRAM IS NOT WORKING IN HYPERGRADE FIX IT SO IT WILL WORK IN HYPERGRADE. THANK YOU. import java.util.Scanner;public class Main { public static double…Java Program Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculatorJava programming pls A complex number is a number in the form a+bi, where a and b are real numbers and i is √(-1) The numbers a and b are known as the real part and imaginary part of the complex number, respectively. You can perform addition, subtraction, multiplication, and division for complex numbers using the following formulas: a + bi + c + di = (a+c) + (b+d)i (addition) a + bi − (c + di) = (a−c) + (b−d)i (subtraction) (a + bi) * (c + di) = (ac−bd) + (bc+ad)i (multiplication) (a + bi) / (c + di) = (ac+bd) / (c2+d2) + (bc−ad)i / (c2+d2) (division) You can obtain the Absolute Value for a complex number using the following formula: |a + bi| = √(a2 + b2) A Complex number can be interpreted as a point on a plane by identifying the (a,b) values as the coordinates of the point. The absolute value of the complex number corresponds to the distance of the point to the origin, as shown in the example below. (1) Design a class named Complex for representing…
- Question Using Java programming language write a program to manage a hotel with 24 rooms;10 rooms are Executive, with price Gh ₵ 2500.00 per night,7 rooms are Chalets, with amounts Gh ₵ 1500.00 per night7 rooms are Ordinary, with amount Gh ₵ 500.00 per night The program should allow customers to book for rooms for a number of nights, and update the number of empty rooms available for each category when a customer has paid fully and has checked-in; also update the number of empty rooms available when customer checks-out.Customers should make bookings with their first names, telephone number A customer should be prompted to know if a room is booked (meaning a another customer has booked it but has not paid fully, or has not checked-in) A customer should be prompted to know if a room is occupied (meaning a booked room has been fully paid for, or the customer has checked-in) A customer should be prompted to know if a room is available (meaning a room has neither been booked nor…A Software Engineering Company has a salary system based on position level. The table below represents the salary paid according to each position: Employee Position Employees Salary Employees' Name: Ali Position: Bonus Amount: Final Cost: $3500 Manager Supervisors Sales Person The Company decided to give a 25% bonus for employees whose salaries are less than 3000$ due to holidays. Write a java program that asks the user to enter his/her name, and his/her work position. The program should calculate and display the total salary of the employee based on his/her salary position, the bonus amount and the final salary for an employee. Make sure that your program outputs exactly as the sample run below. Sample Run1: Enter Your Name: Ali Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): M Fixed Monthly Salary 3500$ 2100$ Manager Salary: $3500.0 $0.0 Internet Service Bill 700$ Sample Run2: Enter Your Name: Cerine Enter Your Position (M for Managers, S for…For Beginning Java: Part 1 Write a program to create a customer's bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD Player and Tape Recorder. The unit prices are $400.00, $220, $35.20, $300.00 and $150.00 respectively. The program must read the quantity of each piece of equipment purchased from the keyboard. It then, calculates the cost of each item, the subtotal and the total cost after an 8.25% sales tax. The input data consists of a set of integers representing the quantities of each item sold. These integers must be input into the program in a user- friendly way; that is, the program must prompt the user for each quantity as shown below - How many TV's were sold? 3 How many VCR's were sold? 5 How many remote controller's were sold? 1 How many CD's were sold? 2 How many Tape Recorder's were sold? 4 The output of the program should print the following data properly formatted: QTY DESCRIPTION UNIT PRICE TOTAL PRICE…
- Java Code: The Personnel Department of Ariel Manufacturing Company is composed of ten employees of varying ages. Prepare a program that would show how many are below 20 years old, how many are between 20 to 29 years old and how many are over 29 years old.Assignment1 In this assignment you have to write a java program Assignment1 that contains all three zeros of the calculates the following third degree polynomial: 23 = -1 The solutions must be determined using the Newton-Raphson method. Work with an absolute accuracy of ɛ =0.00001. It means |x+1- X,] > ɛ Make sure your output looks like the Example output ( Like here below ). The real part and imaginary part must be rounded to three decimal places. The order of the zero points are not important. This order may be different for you. Example Output: PS C:\ Users\ Sam\Documents\Homework\PR> java Assignment1 Zero point 1 is equal to : -1.0 Zero point 2 is equal to : 0.5 - 0.866i Zero point 3 is equal to : 0.5 +0.866i Example Output for: f(z)= z³ +1Python Code Needed Problem: A company wants a program that will calculate the weekly paycheck for an employee based on how many hours they worked. For this company, an employee earns $20 an hour for the first 40 hours that they work. The employee earns overtime, $30 an hour, for each hour they work above 40 hours. Example: If an employee works 60 hours in a week, they would earn $20/hr for the first 40 hours. Then they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr * 40hrs) + ($30/hr * 20 hrs) = $800 + $600 = $1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee’s weekly paycheck. Write pseudocode to design a programming solution by outlining a series of steps and using appropriate indentation and keywords. As you write your pseudocode, be sure to consider the following: What input does the computer need? What steps does the program need to follow to process the input?…