Write a method that calculates the tax on a price. The price and tax percentage should be doubles. The method should return a double which is the amount of tax. Write a program to test this method.
Q: How many general-purpose registers are there in Intel’s 8085A µP? Which register pairs are allowed? ...
A: The 8085 has six general-purpose registers to store 8-bit data. These are identified as- B, C, D, E,...
Q: J( 1(3,2):-1:1,1(2,2))' [ Choos [J(1:3,1)-|(1:3,2)]' [ Choos -K(2:4)' [ Choos cross(I(:,1)',J(4:-1:2...
A: I(3,2) is first row third column which is 4 I(3,2):-1:1 will give us 4 3 2 1 I(2,2) will give us 2 J...
Q: Create a file named "pointer.c" and include the header file "pointer.h" Implement all functions def...
A: We need to write a C program for the given scenario.
Q: What issues are likely to arise if structured programme inspections are used at a company that uses ...
A: Agile methodology is kind of an incremental model in which requirements evolve as the project progre...
Q: Your organisation wants to shift away from utilising desktop apps and instead use services to access...
A: Introduction: The following are some of the potential dangers:Failure of Security Scalability of Man...
Q: In Python, create a function called function(A) that returns all of the following: - the steady-stat...
A: the steady-state gain of A as a scalar (if it exists, else the string 'DNE' if does not exist): def ...
Q: Why is data encryption
A: data breaches, threats, and attacks it is important to consider the benefits of data encryption. Enc...
Q: Write program to copy a block of 8 bytes of data to RAM locations starting at 50H from RAM locations...
A: Assembly language: Assembly language is a low level programming language. It is used to tell directl...
Q: Explain why problems with support software may necessitate a company's replacement. systems from th...
A: Explain why problems with support software may necessitate a company's replacement.
Q: PLEASE DO IN JAVA (for programs like Eclipse) Create a UEmployee class that contains member variabl...
A: Almost all the code is same . It is mentioned in the question that the type user should be provide f...
Q: A proposed independent certification authority It was up to vendors to submit trustworthy components...
A: Introduction: If you've concluded that building your own certificate authority server from the groun...
Q: Write a C++ program to add, subtract, mulitply and divide two fractions and display the result fract...
A: Note: The program result is in the fractional form not in the reduced/simplified form. If required k...
Q: What is the decimal equivalent of the binary number 1011001110000000 written in excess-15 notation? ...
A:
Q: 2. Write a JAVASCRIPT program to find the number of iterations of the loop given below. for(let i=20...
A: Required:- 2. Write a JAVASCRIPT program to find the number of iterations of the loop given below. f...
Q: Which of the following statements about encryption is FALSE?
A: Ideally an encrypted message should appear completely random. False It is not a random activity it m...
Q: Objective: To create a JSON for Scheme details with objects Scenario: Government wants to create a...
A: Find the required demo JSON file given as below :
Q: 3. (Profit.java) Write a program for this problem. An electronics company sells circuit boards at 40...
A: Find the required code in java given as below and output :
Q: Given the following binary number in 32-bit (single precision) IEEE-754 format, the decimal value cl...
A:
Q: Write a Python program to take a string that contains a single pair of parenthesis, print the new st...
A: Write a Python program to take a string that contains a single pair of parenthesis, and print the ne...
Q: Explain what a "compensation action" is and why these activities may need to be included in workflow...
A: Let's see solution what's compensation action
Q: Why is object-oriented programming getting so much press these days?
A: Object-oriented programming object-oriented programming are considered as crown jewel these days in ...
Q: Define a real-time operating system with the help of examples. Describe how it differs from a standa...
A: Define a real-time operating system with the help of examples. Describe how it differs from a stan...
Q: Explain why resistance to cyber attacks is a critical attribute of system dependability using an exa...
A: Framework reliability is a proportion of the level of clients' confidence in a framework. This level...
Q: Write a program that reads from the user two double values x and y and two integer values a and b. T...
A: Here I have taken input from the user and then stored it in different variables. Next, I have conduc...
Q: Define a real-time operating system with the help of examples. Describe how it differs from a standa...
A: The real-time operating system is an operating system that guarantees a certain capability within th...
Q: 1. The given hexadecimal number (1E.53)16 is equivalent to
A: Answer: 30.32421875
Q: A Moving to the next question prevents changes to this answer. Question 1 When sorting 6, 2, 5, 4, 3...
A: By Insertion sort 6,2,5,4,3 first step: 2,6,5,4,3 IV Second Step: 2,5,6,4,3 I Third Step: 2,4,5,...
Q: architecture?
A:
Q: State which of the following are true and which are false. If a statement is false, explain why. ) A...
A: d) TRUE it will produce unexpected results but it will not terminate the program from running.
Q: 3. Write a single pseudocode statement that indicates each of the following: The following condition...
A: We are going to write a single statement to fulfill the given requirements.
Q: 1-How can the CPU recognize the device requesting an interrupt ? 2-Since different devices are likel...
A: The CPU has numerous interrupt lines, and if you need more than that, there's a "interrupt controlle...
Q: Due to the vulnerability of authorisation lists to manipulation, they must be encrypted and protecte...
A: Introduction: Authorization lists are encrypted. The operating system acts as the conduit between th...
Q: Which of the following of statement/s is/are false? * I. All white-space characters (blanks) are ign...
A: Wrong option true option is below step
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: If your modem uses 64 level signalling what is the data rate ? (Assume standard bandwidth for voice ...
A: The standard bandwidth for for voice channel is 8000Hz.
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: 30. The eof character which is at the end of an input buffer is called Sentinel Pattern Lexeme O Tok...
A:
Q: What do you mean by Rate Limiting?
A: The above question that is the meaning of rate limmiting is answered below step
Q: What are the benefits of (1) truth tables and (2) number complements?
A: Truth Tables and number complements are two important aspects in the number systems.
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: Write a JavaScript code that manipulates the HTML Class selector
A: // Get all the elements with class="math-field" allElementsWithClassNameMathField = document.getElem...
Q: Write a program that reads the height h and radius r of Right Circular Cone and finds the surface ar...
A: In this question, we are asked to create a java program to calculate the surface area and volume of ...
Q: Explain the difference between (compile time) checked and (runtime) unchecked exceptions. When would...
A: Checked exceptions A checked exception is an exception that occurs at the compile time, these are al...
Q: Explain why distributed software systems are more difficult than centralised software systems, which...
A: The solution to the given question is: Distributed computer systems are much more complex than centr...
Q: We consider P, NP, NP-complete problems. Assuming and 1. NP-Complete P = , True or False? 2....
A: Given: 1. NP-Complete P = , True or False? 2. NP-complete = NP, True or False? 3. NP-complet...
Q: Why is data encryption critical to your business or organization?
A: Introduction: the Encryption is a process of altering data in such a manner that it is incomprehensi...
Q: Solve the maximal flow problem
A: Flow/Capacity / 6 { 6 is capacity} in the given Example
Q: Explain why distributed software systems are more difficult than centralised software systems, which...
A: The solution for the above-given question is given below:
Q: Computer Science Objective: To create a JSON for Population census with objects and arrays Scenar...
A: sample.json { "Country":"India", "State":"Uttar Pradesh", "YearOfSurvey":2015, "TotalPopulat...
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...
Step by step
Solved in 2 steps with 1 images
- Here is _The output of first method should be that they are not equal. And the output of the second method should be that they are equal. Partial code is given below to help you complete this question. You can ignore this entirely and write your...You are responsible for adding the appropriate testing code to your main. a. The getValedictorian method returns the valedictorian of the class, that is the student with the highest grade point average. Implement this new method. b. The getHonorsPercent method returns the percentage of students in the class who are in the honors program. Use 3.75 as the cutoff GPA. Implement this method. Also print the list of students, by using the isHonor method, in the Honors program. c. An alternate implementation for the School class is being considered, in which the students are stored in an ArrayList instead of an array. Show how the declaration of the data field students would look in this alternate design. MAIN CLASS: import java.util.ArrayList; public class Main { public static void main(String[] args) { System.out.println("Unit07Project2 by Your Name"); System.out.println(); int size = 10; School onw = new School(size); /* Add the code…Write a method thatcomputes future investment value at a given interest rate for a specified numberof years. Use the following method header:public static double futureInvestmentValue(double investmentAmount, double monthlyInterestRate,int years)For example, futureInvestmentValue(10000, 0.05/12, 5) returns12833.59.Write a test program that prompts the user to enter the investment amount (e.g.,1,000) and the interest rate (e.g., 9%) and prints a table that displays future valuefor the years from 1 to 30, as shown below: The amount invested: 1000Annual interest rate: 9Years Future Value1 1093.802 1196.41...29 13467.2530 14730.57
- Question 2 Write a method int countMultiplesofFive (int x, int y) that returns the number of multiples of 5 bounded between x and y inclusive. In the main, ask the user to enter two positive numbers (both must be positive, if users enter a negative value, they keep reentering values until both numbers are positive). Use the method countMultiplesofFive to find and print how many multiples of 5 exists between the two entered numbers inclusive. Sample run 1: First random: 11 Second random: 80 There are 14 umber that are multiple of five between 11 and 80 Sample run 2: First random: 75 Second random: 33 There are 9 number that are multiple of five between 33 and 75We need a program that calculates a medicine dosage by age. The following table states the amount of mg according to age ranges: AGE DOSE 1-5 years Greater or equal to 5 (MG) 100 220 Write a method int findDose(int nbyears) that takes the number of years and returns the dose in mg. Write a test program that asks the user to enter the number of years (a positive, non-zero value) and prints the dose.1. Write the following method that returns the intersecting point between two lines (p1, p2) and (p3, p4): public static Point 2D getIntersecting Point ( Point 2D pl, Point 2D p2, Point 2D p3, Point2D p4); The method returns null if the two lines are parallel. Write a test program that prompts the user to enter three points and displays the center point. Here is a sample run. (Hint: for finding the intersecting point between two lines, see Programming Exercise 8.31.) Enter x1, yl, x2, y2, x3, y3, x4, y4: 225 -1.0 4.0 2.0 -1.0 -2.0 The intersecting point is at (2.88889, 1.1111) The two lines are parallelWrite a program that displays the income tax due on taxable income entered by the user. Have the user enter the tax in the main() method, and then call a calcTax() method to compute the tax. Print the value returned. The calcTax() method should have one parameter - income - and return a double - tax. The tax is calculated as follows: Income Tax Due $0 - $50,000 5% $50,000-$100,000 $2,500 + 10% of (income > $50,000) > $100,000 $7,500 + 15% of (income > $100,000)Task 03: Read the concept of Binomial coefficient given in chapter-6. Write a method that takes two parameters n and k and returns the value of Binomial Coefficient C(n, k). For example, your function should return 20 for n = 6 and k = 3, and it should return 35 for n= 7 and k = 4. ( confirm it through the Pascal's triangle as given below). 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 15 10 10 5 1 15 (20) 15 6 1 1 7 21 35 (35 21 7 1 1The following technique is used in a game of chess: canMoveTo(int x, int y), boolean. A method in the Piece class returns if the piece may travel to position (x, y). Describe how you would put this method to the test.Wrtie TWO methods pass number of birds and print number of birds in California (method1) and birds in Texas (Method 1) Print the total of birds. You can use void method.Program63.javaWrite a program that estimates the cost of carpet for one or more rooms with rectangular floors. Begin by prompting for the price of carpet per square yard and the number of rooms needing this carpet. Use a loop to prompt for the floor dimensions of each room in feet. In this loop, call a value-returning method with the dimensions and carpet price as arguments. The method should return the carpet cost for each room to main, where it will be printed and accumulated. After all rooms have been processed, the program should display the total cost of the job.Sample Output (image below) Program64.javaWrite a program that demonstrates method overloading by defining and calling methods that return the area of a triangle, a rectangle, or a square.Create a class with a method. The method has to decide whether a given year is a leap year or not. Note- A year is a leap year if: • It has an extra day i.e. 366 instead of 365. It occurs in every 4 year e.g. 2008, 2012 are leap years. For every 100 years a special rule applies-1900 is not a leap year but 2000 is a leap year. In those cases, we need to check whether it is divisible by 400 or not. > > ClassAssignmentEx2 ©LeapYearDecider javaclassnotes.assignments javaclassnotes.assignments ClassAssignmentEx2() LeapYearDecider() main(String):void A isLeapYear(int):booleanSEE MORE QUESTIONS