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
- Write a method that receives three double numbers and returns their average. You can use any valid method name and variable names.What value is returned from the following method? public static double methodA() { double a = 8.5 + 9.5; return a; }1). What will be returned from the following method? public static double methodXY() { double a = 6.5 + 8.5; if( a > 12) return a; else return 10; }
- Create a method that takes a value and tell whether it is null or not.Declared as: boolean isZero (float a)The method half shown below, takes a variable of type int and returns the result of dividing the variable by 2. Write the overloaded method for half that accomplishes the same task for a variable of type double. public static int half(int val) { return val/2;}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
- Write 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)Write a method that returns the number of days in ayear using the following header:public static int numberOfDaysInAYear(int year)Write a test program that displays the number of days in the years between 2014and 2034.Write a method that prompts a student to enter a score.If the score is greater or equal to 60, display “you pass the exam”;otherwise, display “you don’t pass the exam”. Your program ends with input in java
- Program 2: Write a program that asks the user for a word or phrase. Check to see if it is a palindrome. A palindrome is a word that is spelled exactly the same forward and backwards such as radar or noon. Your program must also take case into account. If the user types Radar, it must still return that it is a palindrome. Do not worry about palindromes with spaces. You do not need to put any code in static methods, you do not need to worry about try/catch blocks, and you do not need to make the program run more than once. Test values that I will use in class: Noon palindrome tacocat palindrome Hello not a palindrome in java6. Write a method that reads three strings from the keyboard. Although the strings are in no particular order, display the string that would be second if they were arranged lexicographically. 7. Write a method that reads a one-line sentence as input and then displays the following response: If the sentence ends with a question mark (?) and the input contains an even number of characters, display the word Yes. If the sentence ends with a question mark and the input contains an odd number of characters, display the word No. If the sentence ends with an exclamation point (!), display the word Wow. In all other cases, display the words You always say followed by the input string enclosed in quotes. Your output should all be on one line. Be sure to note that in the last case, your output must include quotation marks around the echoed input string. In all other cases, there are no quotes in the output. Your program does not have to check the input to see that the user has entered a…Hi, this isn't the static method of doing this. Could you please do the static method?