int bonus, sales 15000 if (sales < 5000) bonus - 200 else if (sales < 7500) bonus - 500 else if (sales < 10000) bonus- 750 else if (sales < 20000) bonus- 1000 else bonus- 1250: bonus - ?
Q: You will write a program to process the lines in a text file using a linked list ADT and raw pointer...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: Do the follow by using jupyter notebook. Implement a function to solve the multilinear regression p...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: 1. Use open method to find the first positive and first negative solutions. In other words, find the...
A: For the regular expression given in the question number two L ((ab + b)* b (a + ab)*) we will have L...
Q: You want to improve your understanding of social networking blogs, in addition to cloud computing an...
A: Introduction: Instagram, Facebook, and Tumblr are all examples of social networking sites that have ...
Q: (p ↔ q) ⊕ (p ↔ ¬q)
A: Given expression is (p ↔ q) ⊕ (p ↔ ¬q) Expression having the two terms p and q. Two terms connect...
Q: num3. What is the pseudocode and flowchart #include using namespace std; int main() { int x,n...
A: For this question we are required to design the Pseudocode and the Flowchart for the given code. Giv...
Q: Create a RAPTOR flowchart that implements a queue using two stacks. The queue operations enqueue, de...
A:
Q: I need to recreate the entire image shipping label with the HTML and CSS. The label must look like t...
A: <!--see the code--> <!DOCTYPE html> <html lang="en"> <head> <meta c...
Q: a. Ifa new class Extend PartTime and FullTime class. What type of inheritance is used here for exten...
A: Multiple inheritance is used here for extending these classes. No, it is not possible to do it in JA...
Q: What is the difference between implementing a one-to-many relationship and implementing a one-to-one...
A: Introduction: When a row in one table is associated with just one role in another table and vice ver...
Q: Question1: implement lab 3 by the two-dimensional array. ask the user to give you a number of rows a...
A: This given program will take a input as array elements and they define in two dimensional array the...
Q: 1. Which of the following is a difference between a MAN and a WAN? a.A MAN usually includes one or ...
A: The correct answer will be Option(a) A MAN usually includes one or more LANs but is smaller than a W...
Q: C++ PROGRAMMING EXERCISE Given an array of integers that contains 5 integers. Write a program to fin...
A: Answer :
Q: Indicate whether or not the following is a valid Java statement. Whenever the statement is invalid, ...
A: Introduction: Here we are required to explain that whether the statement char grade = 'B'; is valid ...
Q: Design and implement a circuit that operates as a gated binary counter. When the counter is enabled,...
A:
Q: medepot sells wood, brick, and metal using the following table: umber of ood - 100 Shipping Charge P...
A: I have written code below:
Q: Write a Java program to take a list of strings, print a list where each string has "hi" added at its...
A: - We have to deal with the list of strings problem. - We have to use java here.
Q: EMPNO ENAME JOB M...Y HIREDATE SAL t COMM DEPTNO 1 7521 WARD 2 7654 MARTIN SALESMAN 7698 28-SEP-81 1...
A: I have written the query below:
Q: u will create a class “Node” with the following private data attributes: line – line from a file (st...
A: #include "linkedlist.h"#include <iostream>#include <fstream> int main() {// create linke...
Q: Brief information about matlab software
A: Let's see the solution
Q: What will the values of Carry Flag, Overflow Flag and Sign Flag after the execution of following ope...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: partial credits Use the optimized division hardware to perform 11101 + 01011. In the input box below...
A: Answer:
Q: Using the recursive maxmin algorithm complete the recursive calls tree for the following array: [1] ...
A: The code is given below.
Q: Express the following mathematical expression in MATLAB form: c. cos2(t) + sin2(t)
A: MATLAB is a programming language that is used to perform mathematical calculations in the same way t...
Q: just need an advice language: python so I'm working on this substitution cipher where a user will in...
A: It can be solved using while loop only here is how it can be done:
Q: 1.list at least 10 ways to protect your network from malicious and harmful attacks. 2.Based on your ...
A: Solution: The attacker tries to harm your personal as well as your company network, there are certai...
Q: - The step function u (t) is integral of with respect to time t. *
A: Your answer is given below:
Q: Given a regular language L = { b1 b2 b3 b4 ... b2n-1 b2n } over some alphabet ∑. Give the homomorphi...
A: The complete answer is given below .
Q: What happens if a process tries to visit a page that hasn't been cached? What are the steps in this ...
A: Goal: To talk about what occurs if the process attempts to access a page that hasn't been saved in m...
Q: Examine five computer science topics that are touched by data security concerns.
A: Introduction: Examine five computer science topics that are touched by data security concerns.
Q: Linear Combination Given the following vectors: V =, v2 =, and v3 = Perform the indicated operations...
A: Answer the above question are as follows:
Q: The following numbers are inserted into an empty LLRBT in the given order: 11, 2, 14, 25, 15, 13, 16...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: One advantage to writing a program that is subdivided into methods is that such a structure allows d...
A: The answer is given below.
Q: Provide an example of a scenario or setting in which it would be appropriate to provide a hyperlink ...
A: Provide an example of a scenario or setting in which it would be appropriate to provide a hyperlink ...
Q: Find simple connected graphs with the following vertex degrees if possible. 2 2 2 2 3 3 3 3 4 4 4 ...
A: Here in this question we have given three graph degree sequence and we have asked to find connected ...
Q: Use Multithreading and JavaFX to animate the rising of a flag.
A: The program is written in JavaFX. Check the program screenshot for the correct indentation. Please c...
Q: 23. Write a C++ program to input a positive integer n and find the difference in the number of set b...
A: Given: An integer n is taken input from the user. Requirement: Write a C++ program to input the inte...
Q: Q2:Write a row-level trigger that executes before updating a project's location in the project table...
A: The question is to write the SQL query for the given problem.
Q: Describe the benefits of using integrity constraints when designing and implementing databases.
A: Integrity Constraints are the protocols that a table data columns must follow. These are used to res...
Q: Which of the following statement is TRUE about overfitting problems? It is impossible for regressio...
A: Overfitting problems increasing the depth of tree might cause overfitting problems in decision tree ...
Q: Write a Java program to take a list of strings, print a list where each string has "hi" added at its...
A: Required:- Write a Java program to take a list of strings, print a list where each string has "hi" a...
Q: Let there be a set P of ‘m’ integers. Let there be an integer ‘n’. Write a O(mlogm) time algorithm w...
A: CPP Code: #include <iostream> using namespace std; int main(){ int m=8,n=11,stop=0,present=...
Q: C language. Design Pattern Write a description of the Factory design pattern credit card: Your as...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: Write a program that reads a list of integers, and outputs whether the list contains all multiples o...
A: Answer: Algorithms: 1.We have create the two function IsarrayMult10() and IsarrayNoMult10() and the ...
Q: 2. simple program using java, c# or phython that can compute for the mechanical advantage (or inpu...
A: Find the code in python given as below and output :
Q: Show the value that gets stored in the indicat int ans - 20, x - 50, y - 75; if (x >= y) ans + x + y...
A: Solution: Value stored in ans = 20 , x = 50, y= 75 if( x >= y) ans += x+ y else ans +=...
Q: What are some of the very first applications of cryptography that you can think of?
A: The answer is given below.
Q: When it comes to database security, what is the difference between database security and system secu...
A: Introduction: System security protects a company's networks and resources from disruption, interfere...
Q: Suppose a graph has 6 vertices of degree two, 12 vertices of degree three, and k vertices of degree ...
A: Here in this question we have given that we have 6 vertices of degree 2 12 vertices of degree 3 k ...
Q: Please make this 3d plot in python
A: Your required in the below steps. See below step for code and output.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Need help coding in Java Morgan’s Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6 shows the bonuses, which are based on full weeks worked during the season and the number of positive online customer reviews. Write a program that allows a user to continuously enter values for the number of weeks worked and the number of positive reviews received and displays the appropriate bonus until the user enter a sentinel value: 99.A variable in a program is a named placeholder that can contain any integer value. The statementz + e replaces the old value of the variable x with the result of evaluating the expression e. For example, if x initially contains 7 then the statement I + 1 +1 results in x containing 8. If the variables x, y and z initially contain the values 7, -2, and 8 respectively. What will be the value of y after the following statements are executed, in order, twice: I + I + z - y - y + z 2 O -19 35 29 21 O None of the other answers are correctAn Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance
- An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance Note: Use switch cases when you check the total number of accidents.In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73Write 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 in-patient or an out-patient. If the patient was an in-patient 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 out-patient 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 re-entered 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 in-patient data, while the other function accepts arguments for out- patient data. Both functions should return the total charges.
- Write a program that reads student scores, gets the best score, and hence assigns grades based on the following scheme: Grade is A if score is > = best - 10; Grade is B if score is > = best - 20; Grade is C if score is > = best - 30; Grade is D if score is > = best - 40; Grade is F otherwise. The program prompts the user to enter the total number of students, then prompts the user to enter all of the scores, and concludes by displaying the grades. Language: C++A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater’s gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $10.00 and a child’s ticket is $6.00.) It should display a report similar toMovie Name: “Wheels of Fury”Adult Tickets Sold: 382Child Tickets Sold: 127Gross Box Office Profit: $ 4582.00Net Box Office Profit: $ 916.40Amount Paid to Distributor: $ 3665.60NOTE:Assume the theater keeps 20 percent of the gross box office profit. make sure answer should be in c++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? What output should…
- The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value onthe third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also…Simulate the dice game of lucky sevens. The rules are: roll two dice if the sum equals 7, win $4 if the sum is not 7, lose $1 Write a program that asks the user how much they would like start the game with. The program should then: simulate the dice roll (using the random function) and show what was rolled show what the user’s funds are after each roll ask the user if they want to roll again if the user wants to roll again, repeat the three actions above if the user does not want to roll again give some response and end the game the final output should show if they won or lost money, and how many rolls they playedWrite the following statement in symbolic form: If I will go to college then I will get a job, if and only if I will not go to college or I will not get a job. La-bel any simple statements used with variables. Then construct a truth table for it and indicate the answer column.