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
- Enter the name of Stock: Oracle Corporation Enter the symbol of Stock: URCL Enter the previous closing price: 34.5 Enter the current price: 34.35 Stock name: Oracle Corporation Stock symbol: ORCL Stock ID: 59 Price-change percentage: - 0.434782608695648 Challenge Question - Using GregorianCalendar and Date classes: (Use the GregorianCalendar class) Java API has the Date class and GregorianCalendar class in the java.util package, which you can use to obtain the current date with specific details like current year, current month, current day of a date and so on. Write a program to perform these tasks: 1. Display the current year, month, and day. 2. Display the current date by using the to String() method from the Date class. 3. Display the current time-which is used to display the number of milliseconds- by using getTime() method from the Date class. We will use it in the step 17. 4. - Display the current year by using get(GregorianCalendar.YEAR) method from to GregorianCale class. 5-…Integer userValue is read from input. Assume userValue is greater than 1000 and less than 99999. Assign tensDigit with userValue's tens place value. Ex: If the input is 15876, then the output is: The value in the tens place is: 7 2 3 public class ValueFinder { 4 5 6 7 8 9 10 11 12 13 GHE 14 15 16} public static void main(String[] args) { new Scanner(System.in); } Scanner scnr int userValue; int tensDigit; int tempVal; userValue = scnr.nextInt(); Your code goes here */ 11 System.out.println("The value in the tens place is: + tensDigit);Object Oriented Programming: 213COMP, 214COMP (Feb-2022) Assignment- I [10 marks] Academic honesty: O Only pdf file accepted & student ID, will be your upload file. O Student who submit copied work will obtain a mark of zero. O Late work or attach file by email message not allowed. Q1: Write the signature for a method that has one parameter of type String, and does not return a value. Q2: Write the signature for a method that has two parameters, both of type Student, and returns an int value. Q3: Write the constructor's headers of the followings? new Student (202101156, “Ahmed"); new Address(51, "jazan university","CS&IT" ); new Grade(true, 505235600, 4.5); Q4: a) Write a class Student that define the following information: name, stid , age. b) Explain a mutators (setters) and accessors(getters) methods for each attributes(fields). c) Add three constructors: • with empty constructor. one parameter constructor (name of student) two parameters constructor (name and stid) d) Create two…
- java Alejandro has many emails, but only has time to read a few of them. Help him sort his inbox by checking the given email variable for his name and for the word 'project'. Use the following requirements to help Alejandro: If the email has his name and the word 'project' print: priority If the email has only his name, but not the word 'project' print: read If the email does not have his name print: don't readInstructions The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. An example of the program is shown below: Enter a radius for a circle >> 7 The radius is 7 The diameter is 14 The area is 153.93791 Task 1: The DebugPen class compiles without error. This task is dependent on completing task #2. Task 2: The DebugCircle class methods work without errors. Task 3: The DebugFour1 class compiles without error. Task 4: The DebugFour1 program accepts user input and displays the correct output.PART B: JUnit Testing Write a Java program according to the following: Create a Multiple.java class. Create the following two static methods (with return type float): SquareRoot() and CubeRoot(). SquareRoot) method should take two arguments and return the float value at the end. CubeRoot() method should take three arguments and return the float value at the end. Create a test class with the name MultipleTest.java. In this class, import the following libraries at the top of this file import org.junit. Before; import org.junit. Test; import static org.junit.Assert.assertEquals; Create an object of Calculator.java class by writing the following code in CalculatorTest.java class: private Multiple multiple; @Before public void setup() {this.multiple new Multiple():) 4. Generate the JUnit test classes for both the methods one by one. Declare and initialize the required variables to pass those to the methods. Store the expected result in one of the variables and then compare it with the…
- Help with Java Programming Create a program that simulates a meeting reservation system. This project is broken up into 4 parts. Part 1: Basic requirements: 1. The program shall allow the user to select from the following options: a. Create a new meeting b. Show meetings on the calendar c. Clear all meetings 2. Each meeting has a subject, start day/time and end day/time a. Subject is a short text description of the meeting b. Day is a date that contains month, day, and year c. Meeting times need only deal with hour and minute 3. When the user wants to create a new meeting, the program asks for the subject, start and end day/times for it and adds it to the calendar a. For the basic requirements, meetings are not allowed to overlap. If a meeting the user wants to schedule overlaps with an existing meeting, the program presents an error message showing which meeting the one the user wants to schedule overlaps with 4. When the user wants to show all meetings for the week, the report…PROGRAMMING LANGUAGE: C++ ALSO PUT SCREENSHOTS WITH EVERY TASK. TASK 1 : A class of ten students took a quiz .The grades (integers are in range 0-100) for this quiz are available to you .Determine class average on quiz . TASK 2: Write c++ code that print summery of exam result and decide either student should have makeup class or not .If more then 30% of class fails in exam it’s mean they need a makeup class otherwise they don’t need any makeup class. For class strength take input from user (Hint: take two variables pass and fail) TASK 3: write a c++ that will determine whether a department-store customer has exceeded the credit limit on the charge account .For each customer , following facts are available : Account number (an integer) Balance at beginning of month Total of all items charged by this customer this month Total of all credit applied to this customer’s account this month. Allowed credit limit You are required to use a while structure to input each of these facts ,…Course Title: Modern Programming Language Please Java Language Code Question : Create a Java Project With Your name as “MJibranAKramProjectQNo1”, add a class to this Project, Class name should be MJibranAkram with 18Arid2891 as “MJibranAkram18Arid2891” (a) Add a Method to Accept names and marks of n students from user, enter the value of n from User(b) Ensure that valid data is entered. If user enters an invalid data, then appropriate message should be displayed using Message Dialog Box e.g. ‘Name cannot be a number’ or ‘Marks must be an integer value’ (c) Add another Method, to Display this data in descending order according to marks such that name of student having maximum marks should come at the top and the name of student having minimum marks should come at the bottom.
- TOPIC: JOptionPane class Create a Java program that will compute for the total salary of an employee. Hourly rate - 168.76 Php Overtime rate - 250.00 Php Deductions > Loan - 1200.00 Php > SSS - 330.00 Php > Pag-ibig - 200.00 Php > Philhealth - 520.00 Php Prompt the user to entry the following: > Employee Name > Employee ID > Employee Position > Total hours of work > Total hours of overtime work Display the options for the deductions and provide the process. Compute for the total salary of the employee. Total salary = (total hours of work * hourly rate) + (total hours of overtime * overtime rate) - deductions. Display all the information in a one Message Dialog with a Message type of INFORMATION_MESSAGE.Java Overview In this task, you should try using the Scanner class to read data from the keyboard. This data should be stored in variables in your program and then printed on screen. Task You should write a class called Story that should include a main method. This programs should create a fairy tale for a child. The program is based on a completed story, but some words must be replaced with such as the user may enter. The fairy tale you are going to based on are the following: The little ant (1) There was once a small, small ant that lived with its (2) and its (3) siblings in an anthill, by a large (4) in the forest. The little ant is called (1). For the most part, (1) and his siblings used to work on carrying (5) and (6) to the stack, but today it was (7), so (1) was free. The words that are crossed out are the words that your program should ask the user for. In total, there are seven entries the user must make. The program must save these entries in separate variables and then…Java Programming Joyce Farrell 14-10: Create an application for Paula’s Portraits, a photography studio. The application allows users to compute the price of a photography session. Paula’s base price is $40 for an in-studio photo session with one person. The in-studio fee is $75 for a session with two or more subjects, and $95 for a session with a pet. A $90 fee is added to take photos on location instead of in the studio. Include a set of mutually exclusive check boxes to select the portrait subject and another set for the session location. Include labels as appropriate to explain the application’s functionality. An example of the program is shown below: