10. Stock Commission Kathryn bought 750 shares of stock at a price of $35.00 per share. She must pay her stockbroker a 2 percent commission for the transaction. Write a program that calculates and displays the following: • The amount paid for the stock alone (without the commission) The amount of the commission The total amount paid (for the stock plus the commission)
Q: You execute a SQL command to insert the value 0.00372 into an Oracle attribute field with datataype…
A: Answer: .003
Q: 7.0.01 PGPASSWORD=postgres psql -d db -U postgres -h localhost # works PGPASSWORD=postgres psql -d…
A: Introduction: Below describe the how to connect with localhost through postgres if when you trying…
Q: Perform the required conversion from one system to another 6410 to base-2
A: Answer:
Q: Problem_#09] The input shown signal shown below is applied to the four input OR gate. Draw a timing…
A: OR Gate A digital logic gate that conducts logical disjunction is known as an OR gate. It has at…
Q: Fill in the table and explain the codes and results row by row. MOV A, #0A5H CLR C RRC A RL A SWAP A
A: According to the question, we have to explain the given code and find the result . In step 2, we…
Q: expect at most one bit of corruption, what were the original information bits
A: The answer is
Q: Increasing associativity requires more comparators and more tag bits per cache block. Assuming a…
A:
Q: 7. Distance per Tank of Gas A car with a 20-gallon gas tank averages 23.5 miles per gallon when…
A: // Example program#include <iostream>#include <string>using namespace std; int main() {…
Q: cess control list entries are processed in order. As soon as the search stops. In this example, the…
A: Introduction: The Cisco ASA 5500 is the successful successor Cisco firewall model series to the…
Q: 1. Draw a use case diagram for an ATM machine with the following functionality. A customer's…
A: BELOW A USE CASE DIAGRAM FOR AN ATM MACHINE TO THE HAMMING GIVEN FUNCTIONALITY :
Q: (1) ( .:) Show a derivation leading to the string aaac for the following grammar, with starting…
A: See below for complete solution.
Q: What is the difference between interpretation and translation?
A:
Q: One of the consequences of von Neumann's idea to store the program in memory is that programs can be…
A:
Q: ii) Write a PHP program to read input 4 numbers w,x,y, and z from the user and print the value of…
A: Introduction The command-line tool for writing and running PHP code is known as a PHP console. The…
Q: How do I conclude a little a my teacher. The letter was on co op and why I joined her class Wanted…
A: Answer : So letter is basically for your interest in tech related companies and you love to do web…
Q: Name some SAS functions and explain the working.
A: These functions are also called SAS Numeric functions. It performs mathematical operations on an…
Q: Determine the truth set or find a counter example for the following two statements: 1. There exists…
A: QUESTION 1 Answer: True QUESTION 2 Answer: False
Q: For any element in keysList with a value smaller than 40, print the corresponding value in…
A: Algorithm: for (initialExpression; testExpression; updateExpression){ // body of the…
Q: For this problem you must use Java’s semaphore class. Your implementation for this problem must only…
A: BELOW ? STEP BY STEP COMPLETE SOLUTION REGARDING YOUR PROBLEM WITH EXPLANATIONS. CODE IN STEP BY…
Q: What are the advantages of a linked list over an array? In which scenarios do we use Linked List and…
A: A linked list has the following benefits over an array:
Q: Which language over the alphabet (a,b) is recognised by a Finite Automaton with one state which is a…
A: The correct answer is:
Q: Arrange the given integer values in increasing order by applying step by step quicksort algorithm…
A: We have chosen first element of the list as pivot: The step wise solution is:
Q: Consider the following pairs of verb lemmas: cry/cries, fly/flies, die/dies. Design a morphotactic…
A: INTRODUCTION:
Q: ollows: Assume you have declared a method as private static double Calculate Discount (int acct =0,
A: Answer:
Q: 3.1 Define the following Internet services 3.1.1 Email 3.1.2 World Wide Web (WWW) 3.1.3 Search…
A: Disclaimer: “Since you have asked multiple question, we will solve the first question for you. If…
Q: An electronics company sells circuit boards at a 35 percent profit. Write a program that will…
A: Dear Student, the screenshot of code and output has been given below. Happy Learning :)
Q: of your classmate through accessing in the main server. 8. Posting of altered photograph of your…
A: 6. It violates Rule 3 of the computer ethics which says that it is illegal to open and read…
Q: What are the roles & responsibilities of a Power BI developer?
A: the roles & responsibilities of a Power BI developer:-
Q: Determine the truth set or find a counter example for the following two statements: 1. There exists…
A: The universal quantification of P(x) is the statement:“P(x) for all values of x in the domain”…
Q: How to implement Recursive Splaying?
A: Implement of Recursive Splaying:
Q: Code Matlab problem. .
A: According to The question we have to write MATLAB code for the given problem.
Q: Perform the required conversion from one system to another. 123416 to base-10
A: Hexadecimal is a number system with base 16. This means a hexadecimal number is the sum of digits…
Q: Q8/To design a counter which count in the following sequence 7,6,3,5,0,1 by using SR-F.F, the input…
A: The correct option is:
Q: Increasing associativity requires more comparators and more tag bits per cache block. Assuming a…
A: Given, No of blocks in cache = 4096. Block size = 4 word, It is 64-bit address. We need to find the…
Q: Create an algorithm and flowchart to find the root of quadratic equation
A: The question has been answered in step2
Q: The main concept behind the usage of SSN(Storage Area Netwoking), that the raw storage is treated as…
A: Storage Area Networking A storage area network (SAN) is a network of storage devices that can be…
Q: If we do not use padding and stride is 1, the output size will be axa, where a is
A: The answer is
Q: Why is it important to determine the user requirements before building an information system?
A: Information system Information system will collects, stores, processes, analysis and distributes…
Q: Print Using c++ use loop types to create a .program that has the same output below..
A: Star patterns are one of the common patterns that are widely used because it helps to improve…
Q: Given two input integers for an arrowhead and arrow body, print a right-facing arrow. Ex: If the…
A: GIVEN: 1.18 LAB: Input and formatted output: Right-facing arrow Given two input integers for…
Q: Discuss FOUR advantages and FOUR disadvantages of using Word of Mouth (WOM) and why referral…
A: Question: Discuss FOUR advantages and FOUR disadvantages of using Word of Mouth (WOM) andwhv…
Q: Write code for Iterative Depth First Search of a Graph and explain?
A: In a state space or graph search approach known as iterative deepening search (IDS or IDDFS), a…
Q: erence between interpretation a
A: Translation:While working inside the translation field, one is attempting to effectively unravel the…
Q: Prove ((A --> B) C) is a proposition.
A: ( (A-->B )C ) hyp (Hypothesis) A--> B implication
Q: elow code's position to group similar colors, as it looks in the picture?
A: Color theory is the basis of the main rules and guidelines concerning color and its use in the…
Q: A somewhat complicated statement contains the five variables f, g, h, i, and j: f = (g + h) (i + j):…
A: The compiler will produce: add $t0, g, h add $t1, i, j sub f, $t0, $t1
Q: Given two strings ransomNote and magazine, return true if ransomNote can be constructed by using the…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: How can I get my program to associate that T is a character inside the formula that represents the…
A: Program Code: Please find the code below: import java.util.*; class Main { public static double…
Q: A signal with 60 milliwatts power passes through a device with an average noise of 6 microwatts.…
A: A signal with 60 milliwatts power passes through a device with an average noise of 6 microwatts.…
Q: Write all strings of length at most 5 that match the regular expression (abuba)*a. Answer:
A: A regular expression is a string of letters that designates a text search pattern. Such patterns are…
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:
Produce the shown
Ensure the program follows instructions and runs without error
10
Step by step
Solved in 4 steps with 2 images
- Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…8. Total Purchase A customer in a store is purchasing five items. The prices of the five items are as follows: Price of item 1= $15.95 Price of item 2= $24.95 Price of item 3= $6.95 Price of item 4= $12.95 Price of item 5= $3.95 Write a program that holds the prices of the five items in five variables. Display each item's price, the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 7 percent.use C++ programming language 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 inpatient or an outpatient. If the patient was an inpatient, 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 outpatient, 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 reentered 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 inpatient data, while the other function accepts arguments for outpatient data. Both functions should return the…
- 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 Here is a working code but please fix it so it will in Hypergrade which as all the test casses. I DO NOT NEED THANK YOU IN THE PROGRAM. IT HAS TO PASS ALL THE TEST CASSES PLEASE. THANK YOU!!!!!: import java.util.*;class RetailPriceCalculator{ // creating a method public static double calculateRetail(double wholesale,double…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 Here is a working code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade becausw when I submit the code in Hypercase it says 0 out of 5 casses passed. Please fix this code. I do not need thanks for playing or goodbye in…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 Here is a working code but please fix it so it will in Hypergrade which as all the test casses. I DO NOT NEED THANK YOU IN THE PROGRAM. IT HAS TO PASS ALL THE TEST CASSES PLEASE. THANK YOU!!!!!: import java.util.Scanner;public class RetailPriceCalculator { public static double calculateRetail(double wholesale, double percentage) {…
- 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 Here is a working code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade and I do not need thanks for playing or goodbye in the program. Below is the working code: import java.util.Scanner;public class…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 Here is a code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade becausw when I submit the code in Hypercase it does not run and it says 0 out of 5 casses passed. Please fix this code. I do not need thanks for playing or…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 Here is a working code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade.Because right now when I upload it to Hypergrade it says 0 out of 5 casses pased. It has to pass all the test casses in Hypergrade Please fix this code. I do not need thanks for playing or goodbye…
- 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 Here is a code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade becausw when I submit the code in Hypercase it does not run and it says 0 out of 5 casses passed. Please fix this code. I do not need thanks for playing or…Exercise 2: Because of the high price of petrol, you are concerned with the fuel consumption of your car. As a result, you have a record of the kilometers driven and liters used for each tank of petrol you purchase. Write a program that will display the kilometers driven, liters used, and consumption (in liters/100km) for each tankful. After processing all the input information, the program should calculate the overall average consumption: Enter the liters used (-1 to end): 57.6 Enter the kilometers driven: 459 The liters/100km for this tank was 12.5 Enter the liters used (-1 to end): 45.3 Enter the kilometers driven: 320 The liters/100km for this tank was 14.2 Enter the liters used (-1 to end): -1 The overall average consumption was: 13.4 Code: Output:Financial application: compute future apartment rent) Suppose that the rent for an apartment is $1000 thisyear and increases 3% every year. Write a program that computes the rent in five years and the total rent forone year starting five years from now.