Write a Java program for a Play-House Manager, who would like to calculate the total profit from selling tickets of the Drama. There are 3 types of tickets: Balcony (120 AED), VIP (70 AED) and Basic (40 AED). The manager has bills and salaries to pay. Therefore, the profit is equal to (incomes – expenses).
Q: IN JAVA SCRIPT Create a function whose argument is the time in 12 hour format (hh:mm:ss). The…
A: In this problem, we need to design a function, which will take time as input in hh:mm:ss format.…
Q: Describe the most popular wireless Internet access technologies today. Compare and Contrast them.
A: Introduction: A wireless network alludes to a PC network that utilizes Radio Frequency associations…
Q: 4. An ISP is granted the block 80.70.56.0/21. The ISP needs to allocate addresses for two…
A: ANSWER:-
Q: Explain why program inspections are an effective technique for discovering errors in a program. What…
A: Program inspections make sure that any code that might contain errors is reviewed by new eyes. When…
Q: How many triggers can be made on the same object? Show some best practices as well
A: Introduction to Trigger Any Apex code that before or follows the following operations: insert,…
Q: Use the Java coding language to code a chess game.
A: The program is written in step 2
Q: The word protocol is often used to describe diplomatic relations. How does Wikipedia describe…
A:
Q: Arundel is writing a quick lookup system for the SuperMall's touchscreen directory which helps…
A: Sorted Linked list: In a Linked list every node stores the data and address of the next node. The…
Q: (7 points) Write a function that can find the largest item in the array and returns it. The function…
A: MASM code given below : [org 0x0100]jmp start array_nums: dw 10, 34, 2, 56, 67, -1, 9, 45, 0, 11 ;…
Q: What is an abstract class?
A: The question is to define abstract class.
Q: How does the NAT router differentiate two simultaneous connections which are initiated from PC1 to…
A:
Q: R6. Suppose you wanted to do a transaction from a remote client to a server as fast as possible.…
A:
Q: You have to create a program in C language in which the user enters the mass m and radius R of a…
A: I give the code in C along with the output screenshot and code screenshot.
Q: Create a simple text-based console game that implements at least three (3) interfaces. Below is a…
A: The java code is given in the below step with an output screen shot
Q: Is a term for a system development strategy aimed at reducing the time required to construct and…
A: Please note: The context is not provided in this question. As a result, I employ the broad method…
Q: What is meant by the "match plus action" operation of a router or switch? In the case of…
A:
Q: In JAVA, how do you create a program that checks if a matrix is transitive or not
A: Code is given below public static boolean CheckTransitive(int array[][]) { boolean…
Q: write c++ code for Design a class named Computer that holds the make, model, and amount of memory…
A: The class diagram and the runner code of the given program is provided in the next step.
Q: 1C. Consider the grammar E → TE' E' → + TE' | E T → FT' T' → *FT' | E F→ (E) | digit For the given…
A: ANSWER:-
Q: Implement a Java FX application that fetches data from an external REST API. You either need to be…
A: The code above creates a JavaFX application that retrieves data from the messaging API. The…
Q: is Failover-Clustering k it is so widely used?
A: Failover cluster: A failover cluster is a bunch of PC servers that cooperate to give either high…
Q: c. subnet mask d. 1st, 2nd, xth subnet addresses (where x is the requested number of e. beginning…
A: The answer is
Q: SOQL / Salesforce Shyam is new to salesforce and he want to understand where he can find all the…
A: In this problem we need to show the user how we can navigate to fetch the salesforce limits. Below…
Q: Q2: Write a row-level trigger that executes before updating a project's location in the project…
A: The question is to write the SQL query for the given problem.
Q: Type the program's output my_list = [-3, -2, -1, 0, 1, 2, 3] new_list = = [ number for number in my…
A: Lists can also contain lists, they are called nested lists.
Q: The singaporean bus has 7 rows (lettered from A to G) with 8 seats each row(numbered 1 through 8)…
A: Algorithm: Define a seat matrix with values 0 Set count to 0 Set total_price to 0.0 Set ch to 'y'…
Q: will be the impact of the internet of things (IoT) on our ever e example of a smart gadget or…
A: Introduction: IoT is a network of networked, internet-connected devices that can gather and transmit…
Q: 1. Do you think that Sony's response to the attack was appropriate? Why or why not? 2. What…
A: Here we have given solution for the multiple question asked. you can find the solution in step 2.
Q: 2. (a) (b) (c) Write the commands for each of the following operations: Create a row vector x of 5…
A: The package NumPy is the package for scientific computing in python programming.
Q: Write an SQL query to fetch the EmpId and FullName of all the employees working under Manager with…
A: SQL stands for Structured Query Language. It is used for storing and managing data in relational…
Q: Having trouble when I run this python program. I'm being told that the "Test Failed: 'Employee'…
A: Python: Python is a general purpose high level programming language. It uses indentation instead of…
Q: IN JAVA SCRIPT Create a function whose argument is the time in 12 hour format (hh:mm:ss). The…
A: Input - Time as string Output - angle In this problem, we need to design a function, which will…
Q: Question 10 Given a list containing 32 elements, indicate whether a linear or a binary search would…
A: The above question is solved in step 2 :-
Q: What is the difference between constant and read only in c#?
A:
Q: What is today's Situation of Computing Department Knowledge Management System (KMS)
A: The question has been answered in step2
Q: Assume that a computer system is having 4-page frames for holding process pages in the main memory.…
A: In FIFO algorithm, frame which has been occupied first will be first choosen for replacement. In…
Q: using java (Use the Date class) Write a program that creates a Date object, sets its elapsed…
A: Complete Answer in Java Programming language is below:
Q: components should be mentioned and briefly characterised.
A: Introduction: It is a digital circuit that processes data from an external source, such as memory or…
Q: In a royal casino, there is a lottery at 134 number card. If a person is playing that game, find the…
A: Here I have created an array and then used a loop to traverse each element of the array. Inside the…
Q: List minimal cover and identify all possible candidate keys. A → BC IG → B C → DE ED → GJF HD →…
A: Answers:
Q: Which command is used to install software from a repository on Enterprise Linux/Centos? Group of…
A: The command used to install software from a repository on Enterprise Linux/CentOS is yum. YUM…
Q: Assume an 8088 is executing a program in which the probability of a program jump is 0.1. For…
A:
Q: Consider the relations Courses1, Courses2, _Enrollment and Students. Courses cid ename Al Calculus…
A: Write the following query in Relational Algebra. a) Find the sids of students who have enrolled in…
Q: Consider a processor with a 3.4 GHz clock rate and a CPI of 2.2. If the processor execute a program…
A: Introduction
Q: Create a Java program that asks the user to enter three (3) first names then display the following:…
A: Answer the above program are as follows:
Q: Show IP EIGRP topology P 4.4.4.0/24, 1 successors, FD is 158720 FD is the feasible distance to reach…
A: Situation: You and a partner network director were discussing the versatility and fluttering network…
Q: 4. Using the 16 bit (half precision) representation of floating-point numbers, with 5 bits for the…
A:
Q: IN JAVA SCRIPT Create a function that returns the thickness (in meters) of a piece of paper after…
A: In this problem we need to design the JAVA Script program. Input - two argument Output - string…
Q: What does it mean that a method or class is abstract?
A:
Q: Using Data Encapsulation in Python, give the output of the Pseudocode: class Computer: def…
A: Given code: class Computer: def __init__(self): self.__maxprice = 900 def sell(self):…
Write a Java program for a Play-House Manager, who would like to calculate the total profit from selling tickets of the Drama. There are 3 types of tickets: Balcony (120 AED), VIP (70 AED) and Basic (40 AED). The manager has bills and salaries to pay. Therefore, the profit is equal to (incomes – expenses).
last time it was wrong code
Step by step
Solved in 4 steps with 2 images
- WRITE A JAVA PROGRAM. Telco is a cellular telephone company that offers two types of service: standard and premium. Its rates vary, depending on the type of service. The rates are computed as follows: Calculate the amount due if given a service code (s or S means standard service; a service code of p or P means premium service), and the number of minutes the service was used. For the premium service, the customer may be using the service during the day and the night. Therefore, to calculate the bill, you must ask the user to input the number of minutes the service was used during the day and the number of minutes the service was used during the night. Input Description: There are service code (s, S, p or P) and usage amount u (u≥0). If the service code is p or P, then the usage has two types; day usage du(du≥0) and night usage nu(nu≥0). Output Description: The format is RMt where t is the amount due in Malaysia currency format as shown in the sample output. Hint: Use the…In this java project, you are asked to write a program for a Pizza store to process pizza orders. Suppose that they receive 10 orders in one hour, each order includes the following information: Name of the customer, size of the pizza, topping of the pizza, and distance for delivery. The charge information on a order: 1. There are 3 sizes of pizza: small, medium and large. Basic price of a pizza is: small - $8, medium-$12; large-$16. 2. No additional charge for Cheese topping. For pepperoni topping, the additional charge is $1. For sausage topping, the additional charge is $2. Note that the additional charge is same for different sizes of pizzas. 3. If the distance is 0 (i.e. self-pickup), no delivery fee. If it is between 0 and 1 mile, the delivery fee is $2. If it is more than 1 mile, it is $2 plus $0.50/mile for mileage over 1 (i.e. if it is 1.5 miles , the total charge is 2 + 0.5*(1.5 -1) = 2.25). Requirements on your programs: 1. Create and define a PizzaOrder class. Basic…Write a program in Java language to manage a hotel with 25 rooms, 10 rooms are executive, with price 2500 Gh cedis, 7 rooms are charlet, with amount 1500 Gh cedis, 7 rooms are normal, with amount 500 Gh cedis, The program should allow customers to book rooms for a number of nights and update the number of empty rooms available for each category when a customer has fully paid and has checked- in, also update the number of empty rooms when the customer has checks-out Customers should make bookings with their first name and telephone number A customer should be prompted to know if a room has been booked ( meaning another customer has booked it but not fully paid or not checked-in ) A customer should be prompted to know if a room has been occupied ( meaning another customer has fully paid or checked-in) A customer should be prompted to know if a room is available ( meaning the room is neither been booked nor checked in) A customer should be able to know if an available room from…
- Write a java program to simulate a car insurance We have a problem, which is calculating the insurance price at a unified price for all categories.to solve this problem I want to calculate the insurance price in addition to the factors in the uml. For example, if the individual's age is from 18-25, the insurance rate will increase by 1% over the basic price, as well as the type of car and the gender of the person who wants insurance, for example, if a man also increases 1 % and so are all the factors. If you cannot write the entire program, it is not a problem. Write at least the equations for calculating the insurance or half of the program also You can put random numbers and random prices.Write a JAVA program to generate two cards randomly and display the bigger card between them. The cards contain of two characteristic, color (Red, Blue, Green and Yellow) and value (1-10). The rules to identify the bigger card as below: a. The bigger the value, the bigger the card is, except 1 is bigger than 10. b. If the card is the same value, the color will be used to get the bigger card. Red > Blue > Green > Yellow Sample Input Card 1 : Blue 6 Card 2 : Yellow 8 Output :Card 2 is bigger Sample input Card 1 : Red 4 Card 2 : Green 4 Output:Card 1 is bigger (You are not allowed to use array)UOWD Library is asking you to write a Java program that manages all the items in the Library. The library has books, journals, and media (DVD for example). All items have a name, author(s), and year of publication. A journal also has a volume number, while a media has a type (audio/video/interactive). The user of your program should be able to add an item, delete an item, change information of an item, list all items in a specific category (book, journal, or media), and print all items (from all categories). A menu asks the user which operation s/he wants to perform. Important: make use of collections, inheritance, interfaces, and exception handling wherever appropriate.
- Hi, how do we go about solving this problem in Java programming language? Input The input begins with an integer 1 ≤ ? ≤ 10000, the number of frosh. For each frosh, a line follows containing the course numbers of five distinct courses selected by the frosh. Each course number is an integer between 100 and 499. Output The popularity of a combination is the number of frosh selecting exactly the same combination of courses. A combination of courses is considered most popular if no other combination has higher popularity. Output a single line giving the total number of students taking some combination of courses that is most popular.In this lab work, you will implement a coffee shop example. In this coffee shop, everything must progress as if it does in real life. It means that the program should ask a person for body temperature in Celsius, and grant or reject access to a coffee shop. When a customer orders a coffee, they have to choose a size such as Small, Medium, and Large then, depending on the order, the price has to change. The price also has to change depending on the type of coffee. For example, for coffees that are similar to espresso, you also need to take every shot of espresso into account. The actual prices of the coffees depend on your imagination however, they should be realistic. Some hints: • Focus on dividing your program into multiple functions. • You can also return double or integer types of values from your functions, so use them if you can. • Don't just code a function every possible type of, and try to make it generic as much as possible. • Be creative. Fill the gaps using your…Starting Out with Java From Control Structures through Objects 6th Edition 4. Paint Job Estimator A painting company has determined that for every 115 square feet of wall space, one gallonof paint and eight hours of labor will be required. The company charges $18.00 per hourfor labor. Write a program that allows the user to enter the number of rooms to be paintedand the price of the paint per gallon. It should also ask for the square feet of wall space ineach room. The program should have methods that return the following data: • The number of gallons of paint required• The hours of labor required• The cost of the paint• The labor charges• The total cost of the paint jobThen it should display the data on the screen.
- Write a FULL Java procedural program for one human player to play a “Higher or Lower” card game. In this game, each card has a value from 1..10 inclusive. There are 4 of each value in the deck, i.e., 40 cards in total. Cards are not replaced in the deck once drawn, i.e., no more than 4 of each value will be drawn. The program starts by asking the player for a target score. The game proceeds in a series of rounds with the program repeatedly drawing and showing a card from the deck to the player one at a time. Each time, it asks the player to enter "h" (higher) or "l" (lower) to guess whether the next card drawn will be higher or lower in value. The player gains a point if they guess correctly. The game continues until the player guesses incorrectly or the target score is reached. When the game ends, it prints either a "You win!" or a "Nice try, you scored …” message as illustrated below. The image provided shows two examples of the required program behaviour: (bold is keyboard input…Write a Java program to simulate a blackjack game of cards. The computer will play the role of the dealer. The program will randomly generate the cards dealt to the player and dealer during the game. Cards in this game will be represented by numbers 1 to 13 with Ace being represented by a 1. Remember, that face cards (i.e. Jack, Queen, and King) are worth 10 points to a hand while an Ace can be worth 1 or 11 points depending on the user’s choice. The numbered cards are worth their number value to the hand. Here are the details of how to play the game: To start the game, the player is given two randomly chosen cards and told their values. The dealer is then given two cards randomly. The human player should only be told the value of the first card given to the dealer. The other card in the dealer's hand is "hidden" until the end of the game. The player is then asked if they want to draw another card for their hand. While the player wishes to draw another card and neither hand has gone…Write a Java program to simulate a blackjack game of cards. The computer will play the role of the dealer. The program will randomly generate the cards dealt to the player and dealer during the game. Cards in this game will be represented by numbers 1 to 13 with Ace being represented by a 1. Remember, that face cards (i.e. Jack, Queen, and King) are worth 10 points to a hand while an Ace can be worth 1 or 11 points depending on the user’s choice. The numbered cards are worth their number value to the hand. Here are the details of how to play the game: To start the game, the player is given two randomly chosen cards and told their values. The dealer is then given two cards randomly. The human player should only be told the value of the first card given to the dealer. The other card in the dealer's hand is "hidden" until the end of the game. The player is then asked if they want to draw another card for their hand. While the player wishes to draw another card and neither hand has gone…