Chap 5 In Class Exercise • Create a Java Project called C.5EX • Create a driver program called Order that prompts the user for: 1. Price 2. Quantity • Calculate the total amount. However, if the quantity is 50 or more, apply a 10% discount. • Be sure to place the discount rate in a defined constant Sample output: Enter price > 15.00 Enter quantity >> 100 Price: $15.00 Quantity: 100 Total: $1,350.00 Enter price » 25 Enter quantity >> 6 Price: $25.00 Quantity: 6 Total: $150.00
Q: Calculate the Average turn around time and Average Waiting time of SRTF and SJF Process Queue Burst ...
A: SRTF - It is a preemptive version of SJF. SRTF stands for Shortest Remaining Job First. In this algo...
Q: Specify the architecture of a computed unified device.
A: Introduction: Compute Unified Device Architecture (CUDA) is an acronym for Compute Unified Device Ar...
Q: Flash-disk we used now,DRAM or SRAM OR others?
A: The Answer is
Q: Most people agree that developing appropriate security policies and putting them into effect on a co...
A: Introduction: Policies Concerning Security: It enables the business to safeguard its information ass...
Q: If the size of each 4-bit memory component is 4 x n cells
A: The answer is
Q: An HDD disk head is initially positioned over track 100 and is moving in the direction of decreasing...
A: #include <bits/stdc++.h>using namespace std; int size = 8;int disk_size = 200; void CSCAN(int ...
Q: hello! can you please help me with my code? i need to get the same expected output. the instructions...
A: INTRODUCTION: Here we need to fill the function in c programming language.
Q: Hello, I have to Design a class name Rectangle to represent a rectangle. The class contains: Two da...
A: We need to write a program for given scenarios with uml diagram. The code has been written in Python...
Q: One of the benefits of a close :command is
A: C<R> refers to the close option. One of the benfits of a close command is Only close the squar...
Q: Why are watchdog timers required in such a large number of embedded systems?
A: The answer of this question is as follows:
Q: Write a Java program to search an element in an sorted array. You have to take the sorted array from...
A: ALGORITHM:- 1. Take input from the user for the sorted array and the number to be searched. 2. Use b...
Q: Is one twisted pair equivalent to one telephone outlet?
A: Let's see the solution
Q: 1. What is Failover-Clustering and why do you think it is so widely used?
A: Failover Clustering A failover cluster is a collection of computer servers that cooperate to offer ...
Q: Instructions: 1. In the code editor, you are provided with a main() function that asks the user for ...
A: // C programming #include<stdio.h> int main(void) { int a, b; printf("Enter integer 1:...
Q: What steps should be followed in order to assure the stability and availability of a local area netw...
A: Introduction: A local area network (LAN) is a collection of computers and peripheral devices that co...
Q: What is an Entity Relationship Diagram? Can you show me an example.
A: An ER diagram shows the relationship among entity sets. An entity set is a group of similar entities...
Q: true/false There is only one end state in one activity diagram ( )
A: Activity diagrams are graphical representations of workflows of stepwise activities and actions with...
Q: A car showroom manager has prepared the half yearly sales budget with the following details. Each ro...
A: Use two one dimensional arrays one to store each care sales over the half year and other to store ca...
Q: NOTE: Dear students, you are required to write the temporal logic formulas of an ATM and also model ...
A: Need to write temporal logic formula of an ATM and also model it on state transition for functionali...
Q: Suppose Professor X claims to have written a program that can read a function f written in Java and ...
A: ans is given below
Q: applications. Why? Could you explain this statement with valid reasons.
A: The answer is
Q: In what circumstances did the RISC architectural idea come to be developed?
A: Introduction: RISC- (reduced instruction set computer) is a microprocessor designed to run a smaller...
Q: What are the differences between the dynamic systems development method and the Rapid Application De...
A: In the early 1990s, the RAD methodology was widely used as a systems development method for software...
Q: What is data warehousing, and how does it vary from a data warehouse in terms of functionality
A: Introduction: Data warehousing must be defined. After that, we must explain how data warehousing dif...
Q: ?++What is the correct syntax of accessing a static member of a class in C class A public: static in...
A: A::value
Q: Define the concept of a unified memory architecture.
A: There are many types of memory architectures present.
Q: Typically, a BUS consists of multiple communication paths or lines. Each line is capable of transmit...
A: A bus is collection of wires that connects computer components. Buses carries information in form of...
Q: You have decided to duplicate your product database over many servers in order to improve speed and ...
A: Introduction: Product data management (PDM) is when a company uses a centra...
Q: Specify the architecture of a computed unified device.
A: Introduction: The acronym for Compute Unified Device Architecture (CUDA) is Compute Unified Device A...
Q: What is the main idea of pseudoreplication in a mensurative experiment? GIve an example and explain.
A: Pseudo replication occurs when the observations are not statistically independent and this pseudo re...
Q: Consider if you believe that employing error correction with wireless applications makes them more s...
A: Introduction Consider if you believe that employing error correction with wireless applications ...
Q: Read n'n matrix. Inter change upper, lower triangle elements. Impiement it in C language
A: To interchange upper and lower triangular elements, arrays concept in C is used.
Q: What additional components can be modified to maintain the same page size (and eliminate the need to...
A: Introduction: Recompilation is an excellent approach to rapidly get your business up to speed on man...
Q: For example, consider the possibility that your firm is planning to build a self-contained server ro...
A: Introduction: We must offer some physical security measures for an automated server room in response...
Q: Define the concept of a unified memory architecture.
A: The goal of unified memory is to reduce data redundancy by copying data between separate areas of me...
Q: Differentiate between manually matching transactions and Advanced Mode transactions in QuickBooks De...
A: Introduction: Bank feeds can be set up and managed in a variety of ways. After obtaining your electr...
Q: What is the definition of decision structure?
A: Decision structure Decision structure are the computer programs that evaluate the multiple expressio...
Q: Write a Pyihon function called add_daily_temp that is given a (possib!y empty) dictionary meant to h...
A: Explanation 1) Below is program that defines a function add_daily_temp which accept a dictionary co...
Q: Architecture in terms of the followings 1) Registers 2) Program Structuure Data and Code declaration...
A: The answer is
Q: What is it about virtual memory that prevents it from being employed more often in embedded systems?
A: Introduction: As the name implies, virtual memory is a segment of volatile memory that is created on...
Q: Write a recursive method toNumber that forms the integer sum of all digit characters in a string. Fo...
A: Recursion is a process in which a method calls itself continuously.
Q: Please write a c program where the user will type in a text at the command line and the program will...
A: There are two types of comments in C A comment that starts with a slash asterisk /* and finishes wit...
Q: e of the benefits and downsides of caching disk write operations, and how do they differ from one an...
A: Benefit: The most obvious benefit of caching disc write operations is that the hard disc will not ha...
Q: Write a complete C++ program that asks the user to input information for at least 10 students. Use s...
A: The question is to write C++ code for the given problem.
Q: Take the two numbers from the user and try to multiply both of them using lambda function in python.
A: We are going to write a Python code which will find the product of two numbers using lambda function...
Q: Explain or draw a diagram demonstrating which packets (IP datagrams, Ethernet frames, TCP segments) ...
A: Protocol Internet: In an IP packet, a header and payload are included inside the same packet. There ...
Q: What exactly does the term "reduced" imply in the context of a computer with a restricted instructio...
A: The word "reduced" was applied to RISC computers since their instruction set was smaller than that o...
Q: Write a Java program to take a list of integers from the user and print that list where each integer...
A: Writing java program for the given senario.
Q: What is distributed data processing, and how does it work, and what does it entail?
A: answer is
Q: Write a CSS rule that changes the appearance of all headings at level one (h1) in your page to the f...
A: The heading uses an Arial font face: ---The font-family property specifies the font for an element. ...
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- IN JAVA PLEASE In the course menu of the final project, don't delete class if a student is enrolled in it. That is: when the user chooses the option to delete a class, print something like: "Student(s) are enrolled in that class...Sorry class can't be deleted" when there is a least one student in that class. --------------------------------------------------- Main Menu 1 : Student Management 2 : Course Management 0 : Exit Enter your selection: 1 ----------------- Student Management Menu: Choose one of: A - Search add a student B - Delete a Student C – Print Fee Invoice D – Print List of Students X – Back to Main Menu Enter your selection: D PhD Students ------------ - Zydoun BenSellam - Erica Belksiri MS Students ------------ - Caleb Sidi Kacem - Erika Jones - Walid Wali Undergraduate Students ------------ - Ed Johnson - Willian Jones - Kirby Sons Student Management Menu: Choose one of: A - Search add a student B - Delete a Student C – Print Fee Invoice D – Print List of Students X –…JAVA PROGRAM Lab #1 Enhancements:1. For the maximum and minimum rainfall amount, also display the month where that happened. For example:a. Maximum rainfall: January, 88.2 inchesb. Minimum rainfall: July, 12.3 inches2. Format all numbers with 1 decimal pointsMain class name: RainFall2 (no package name) HERE IS A WORKING CODE, PLEASE MODIFY THIS CODE SO WHEN I UPLOAD IT TO HYPERGRADE IT PASSES ALL THE TEST CASSES. IT HAS TO PASS ALL THE TEST CASSES BECAUSE RIGHT KNOW IT DOES NOT PASS THE TEST CASES. THANK YOU import java.util.*;public class Main{ public static void main(String[] args) { String maxRainfallMonth = "",minRainfallMonth = ""; double maxRainfall,minRainfall,rainFall,avg,tot=0; Scanner sc = new Scanner(System.in); System.out.println("Enter the rainfall for month 1: "); double rainfall = sc.nextDouble(); maxRainfall = rainfall; minRainfall = rainfall; tot = rainfall; String[] months =…In Java, create a program that asks the user for their first name, last name, address, city, zip, phone number, email, hourly rate, start date, end date, and number of hours worked. The program must consist of three classes, each one as its own .java file. Classes named Employee, PayPeriod, and Payroll Manager. Employee gathers the info about the employee. PayPeriod gathers the payment info. PayrollManager computes and displays the info. PayrollManager should also use methods such as: double CalculateGrossPay(Employee, PayPeriod), double CalculateRegularPay(Employee, PayPeriod), double CalculateOvertimePay(Employee, PayPeriod), and void PrintPaystub(Employee, PayPeriod). output: ------------------------------------------Employee ID: 123456 Last Name: last First Name: first Hours Worked: 50 Hourly Rate: $10.00 Regular Pay: 40 hours at $10/hr: $400.00 Overtime Pay: 10 hours at $15/hr: $150.00 Gross Total: $550.00 ------------------------------------------
- JAVA PPROGRAM ASAP Please Modify this program ASAP BECAUSE IT IS HOMEWORK ASSIGNMENT so it passes all the test cases. It does not pass the test cases when I upload it to Hypergrade. Because RIGHT NOW IT PASSES 0 OUT OF 1 TEST CASES. I have provided the failed the test cases and the inputs as a screenshot. The program must pass the test case when uploaded to Hypergrade. import java.io.File;import java.io.FileNotFoundException;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); String fileName; System.out.println("Please enter the file name or type QUIT to exit:"); fileName = keyboard.nextLine().trim(); while (!fileName.equalsIgnoreCase("QUIT")) { File file = new File(fileName); if (file.exists()) { int wordCount = countWords(file); System.out.println("Total number of words: " + wordCount + "\n);…USE THE PROGRAM CODE BELOW TO CODE 1. COMMAND LINE ARGS CODE IN JAVA 1. Command Line Args Modify problem # 1 from Lab 8 to accept the values for the key as command line arguments. Your program may assume the arguments given at the command line are integers. If there are no arguments, print a message. If there is at least one argument, compute and print the average of the arguments. Note that you will need to use the parseInt method of the Integer class to extract integer values from the strings that are passed in. If any non-integer values are passed in, your program will produce an error, which is unavoidable at this point. Test your program in NetBeans using the data for problem # 1 Lab 8 as command line arguments. import java.util.Scanner;import java.text.NumberFormat; public class Quizzes{ //---------------------------------------------- // Read in the number of questions followed by // the key, then read in each student's answers // and calculate the number…JAVA PROGRAM Lab #1 Enhancements:1. For the maximum and minimum rainfall amount, also display the month where that happened. For example:a. Maximum rainfall: January, 88.2 inchesb. Minimum rainfall: July, 12.3 inches2. Format all numbers with 1 decimal pointsMain class name: RainFall2 (no package name) HERE IS A WORKING CODE, PLEASE MODIFY THIS CODE SO WHEN I UPLOAD IT TO HYPERGRADE IT PASSES ALL THE TEST CASSES. IT HAS TO PASS ALL THE TEST CASSES. THANK YOU import java.util.*;public class Main{ public static void main(String[] args) { String maxRainfallMonth = "",minRainfallMonth = ""; double maxRainfall,minRainfall,rainFall,avg,tot=0; Scanner sc = new Scanner(System.in); System.out.println("Enter the rainfall for month 1: "); double rainfall = sc.nextDouble(); maxRainfall = rainfall; minRainfall = rainfall; tot = rainfall; String[] months = {"January","February","March","April",…
- Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orders have been sorted. using System; using static System.Console; using System.Globalization; class JobDemo4 { static void Main() { RushJob[] jobs = new RushJob[5]; int x, y; double grandTotal = 0; bool goodNum; for(x = 0 ; x < jobs.Length; ++x) { jobs[x] = new RushJob(); Write("Enter job number "); jobs[x].JobNumber = Convert.ToInt32(ReadLine()); goodNum = true; for(y = 0; y < x; ++y) { if(jobs[x].Equals(jobs[y])) goodNum = false; } while(!goodNum) { Write("Sorry, the job number " + jobs[x].JobNumber + " is a duplicate. " + "\nPlease reenter "); jobs[x].JobNumber = Convert.ToInt32(ReadLine()); goodNum = true;…JAVA PPROGRAM ASAP Please Modify this program ASAP BECAUSE IT IS HOMEWORK ASSIGNMENT so it passes all the test cases. It does not pass the test cases when I upload it to Hypergrade. Because RIGHT NOW IT PASSES 1 OUT OF 7 TEST CASES. I have provided the failed the test cases as a screenshot. The program must pass the test case when uploaded to Hypergrade. import java.io.File;import java.io.FileNotFoundException;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); String fileName; while (true) { System.out.println("Please enter the file name or type QUIT to exit:"); fileName = keyboard.nextLine().trim(); if (fileName.equalsIgnoreCase("QUIT")) { break; // Exit the loop when "QUIT" is entered } File file = new File(fileName); if (file.exists()) { int wordCount = countWords(file);…JAVA PROGRAM ASAP *********** THIS PROGRAM MUST WORK IN HYPERGRADE AND PASS ALL THE TEST CASES. Please create a program BECAUSE IT IS. MY HOMEWORK ASSIGNMENT with the following parts which are down below: The left index is inclusive and the right index is exclusive. 1. public static void bubbleSort(int[] array, int left, int right) { // your code here } 2. public static void insertionSort(int[] array, int left, int right) { // your code here } 3. public static void selectionSort(int[] array, int left, int right) { // your code here } Test Case 1 Please enter a space separated list of numbers to sort or type QUIT to exit:\n4 3 2 1ENTERSorting first half of the array using Bubble Sort algorithm:\n3 4 2 1\nSorting second half of the array using Bubble Sort algorithm:\n4 3 1 2\nSorting the array using Bubble Sort algorithm:\n1 2 3 4\nSorting first half of the array using Insertion Sort algorithm:\n3 4 2 1\nSorting second half of the array using Insertion…
- JAVA PPROGRAM ASAP Please Modify this program ASAP BECAUSE IT IS HOMEWORK ASSIGNMENT so it passes all the test cases. It does not pass the test cases when I upload it to Hypergrade. Because RIGHT NOW IT PASSES 2 OUT OF 7 TEST CASES. I have provided the failed the test cases as a screenshot. The program must pass the test case when uploaded to Hypergrade. import java.io.File;import java.io.FileNotFoundException;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); String fileName; System.out.println("Please enter the file name or type QUIT to exit:"); fileName = keyboard.nextLine().trim(); while (!fileName.equalsIgnoreCase("QUIT")) { File file = new File(fileName); if (file.exists()) { int wordCount = countWords(file); System.out.println("Total number of words: " + wordCount + "\n); break; // Exit…In java, create a program that gathers user input and prints a paystub. This assignment requires one class per .java file, total of three classes. The first one is employee.java which gathers the user's id (fixed value), first name, last name, address, city, zip, phone, email, and hourly rate. The second one is payperiod.java, which gathers the user's hours worked (taking overtime into account), start date (fixed), end date (fixed), and paystub id (fixed). The third one is payrollmanager.java, which calculates and displays the data gathered from the first two. This class/file should also use methods such as: doubleCalculateGrossPay(Employee, PayPeriod), double CalculateRegularPay(Employee, PayPeriod), double CalculateOvertimePay(Employee, PayPeriod), and void PrintPaystub(Employee, PayPeriod).In Java, create a program that asks the user for their first name, last name, address, city, zip, phone number, email, hourly rate, start date, end date, and number of hours worked. The program must consist of three classes, each one in its own file (I.e. Employee.java, PayPeriod.java) and called back to a main.java file. Classes named Employee, PayPeriod, and Payroll Manager. Employee gathers the info about the employee. PayPeriod gathers the payment info. PayrollManager computes and displays the info. PayrollManager should also use methods such as: double CalculateGrossPay(Employee, PayPeriod), double CalculateRegularPay(Employee, PayPeriod), double CalculateOvertimePay(Employee, PayPeriod), and void PrintPaystub(Employee, PayPeriod). output: ------------------------------------------Employee ID: 123456 Last Name: last First Name: first Hours Worked: 50 Hourly Rate: $10.00 Regular Pay: 40 hours at $10/hr: $400.00 Overtime Pay: 10 hours at $15/hr: $150.00 Gross…