Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. Use overloaded methods to implement seat allocation: When a user specifies a seat (row, column), make sure it is available. When a user specifies a price, find any seat with that price. Write appropriate responses to the user if the seat is already taken, if their seat is available, or the seat number of the assigned seat if they just specified a price, etc.
A theater seating chart is implemented as a two-dimensional array of ticket prices, like this:_______.
10 10 10 10 10 10 10 10 10 10
10 10 10 10 10 10 10 10 10 10
10 10 10 10 10 10 10 10 10 10
10 10 20 20 20 20 20 20 10 10
10 10 20 20 20 20 20 20 10 10
10 10 20 20 20 20 20 20 10 10
20 20 30 30 40 40 30 30 20 20
20 30 30 40 50 50 40 30 30 20
30 40 50 50 50 50 50 50 40 30

Answers

Answer 1

Answer:

Answer is given in the attached document.

Explanation:

Explanation is given in the attached document.

Write A Program That Prompts Users To Pick Either A Seat Or A Price. Mark Sold Seats By Changing The
Answer 2

Answer:

i do not know

Explanation:


Related Questions

Which of the following is a technology designed for use in manufacturing?

A) electronic monitoring bracelets

B) machine-to-machine (M2M) communications

C) bring your own device (BYOD)

D) web analytics

Answers

Answer:

B) machine-to-machine (M2M) communications

Explanation:

Manufacturing technology refers to the technological advancement that enables the production of the tools that further helps in the manufacturing of the other goods. The quality, quantity, and production are enhanced with these manufacturing technologies. Machine-to-machine communications are designed for manufacturing technologies. In this technology, the information and data can be easily transferred from one device to another either by the help of wires or without wires.

The technology designed for use in manufacturing among the options listed is machine-to-machine (M2M) communications.

Machine-to-machine (M2M) communications involve the exchange of data or information between devices or machines without human intervention.

In the context of manufacturing, M2M technology can be used to connect and communicate between various machines, equipment, sensors, and systems involved in the manufacturing process.

This allows for automation, real-time monitoring, data collection, and coordination, ultimately improving efficiency and productivity in manufacturing operations.

To learn more on Technology click:

https://brainly.com/question/15059972

#SPJ6

Which of these statements is true?
A. Cognitive systems can only translate small volumes of audio data into their literal text translations at massive speeds
B. Cognitive systems can only process neatly organized structured data
C. Cognitive systems can derive mathematically precise answers following a rigid decision tree approach
D. Cognitive systems can learn from their successes and failures

Answers

Answer:

D. Cognitive systems can learn from their successes and failures

Explanation:

Cognitive System is a term used in Computer Science to describe an advanced computer in which it was built to think and behave like humans. In other words, it is a form of artificial intelligence, which has the ability to assess activities before taking them.

Hence, in this case, the right answer is "Cognitive systems can learn from their successes and failures," because this is an attribute of human being, in which cognitive computing is created to behave or have human reasoning.

Write a program that contains the following two methods: /** Convert from feet to meters */ public static double footToMeter (double foot) /** Convert from meters to feet */ public static double meterToFoot (double meter) The formula for the conversion is : meter

Answers

Complete Question:

Write a program that contains the following two methods:

/** Convert from feet to meters */

public static double footToMeter(double foot)

/** Convert from meters to feet */

public static double meterToFoot(double meter)

The formula for the conversion is: meter = 0.305 * foot and foot = 3.279 * meter Write a test program that invokes these methods. PLEASE WRITE IN JAVA.

Answer:

//Declare the class

public class Converter{

   

    //method footToMeter that receives the foot as parameter

    public static double footToMeter(double foot){

        //declare a double variable called meter,

        //to hold the result of the conversion

        double meter;

       

        //using the given formula, conver the foot to meter and

        //store the result in the meter variable

        meter = 0.305 * foot;

       

        //return the result stored in meter

        return meter;

    }

   

   

    //method meterToFoot that receives the meter as parameter

    public static double meterToFoot(double meter){

        //declare a double variable called foot,

        //to hold the result of the conversion

        double foot;

       

        //using the given formula, convert the meter to foot and

        //store the result in the foot variable.

        foot = 3.279 * meter;

       

        //return the result stored in foot.

        return foot;

    }

   

   

    //Test program to invoke those methods

    public static void main(String []args){

           

           //Convert 120 feet to meter

           System.out.println("120 feet to meter is " + footToMeter(120));

           

           //Convert 36 meters to foot

           System.out.println("36 meters to feet is " + meterToFoot(36));

    }

   

   

}  //End of class declaration

Sample Output:

120 feet to meter is 36.6

36 meters to feet is 118.044

Explanation:

The above code has been written in Java and it contains comments explaining each line of the code. Please go through the comments.

There is also a sample output from the run of the code.

An screenshot containing the program and the output has also been attached to this response.

Timeliness is an important goal of any access control monitoring system.
A. True
B. False

Answers

The answer for this question is true

Describe and define each of the following tkinter widgets:
a) Label
b) Entry
c) Button
d) Frame

Answers

Answer:

Tkinter in Python comes with a lot of good widgets. Widgets are standard graphical user interface (GUI) elements, like different kinds of buttons and menus.   Ttk comes with 17 widgets, eleven of which already existed in tkinter:

Button Checkbutton Entry Frame Label LabelFrame Menubutton PanedWindow Radiobutton Scale and Scrollbar

The other six are new: Combobox, Notebook, Progressbar, Separator, Sizegrip and Treeview. And all them are subclasses of Widget.

Explanation:

The Label widget is a standard Tkinter widget used to display a text or image on the screen. The label can only display text in a single font, but the text may span more than one line. In addition, one of the characters can be underlined, for example to mark a keyboard shortcut.Entry widgets are the basic widgets of Tkinter used to get input, i.e. text strings, from the user of an application. This widget allows the user to enter a single line of text. If the user enters a string, which is longer than the available display space of the widget, the content will be scrolled.The Button widget is a standard Tkinter widget used to implement various kinds of buttons. Buttons can contain text or images, and you can associate a Python function or method with each button. When the button is pressed, Tkinter automatically calls that function or method.A frame is rectangular region on the screen. The frame widget is mainly used as a geometry master for other widgets, or to provide padding between other widgets.

The definition of widgets is given:

a) Label - It is a common Tkinter widget that displays text or an image on the screen.

b) Entry - They are the fundamental Tkinter widgets used to collect input, i.e. text strings, from an application's user.

c) Button - it is a Tkinter standard that is used to implement various types of buttons.

d) Frame - it is a rectangle on the screen. The frame widget is primarily used as a geometry master for other widgets or as padding between other widgets.

What are Tkinter widgets?

Tkinter in Python includes a plethora of useful widgets. Widgets are graphical user interface (GUI) elements that include various types of buttons and menus.

The label can only display text in one font, but the text can span multiple lines. Furthermore, one of the characters can be highlighted, for example, to indicate a keyboard shortcut.

Therefore, the definitions of the widgets are given above.

To learn more about Tkinter widgets, refer to the below link:

https://brainly.com/question/17438804

#SPJ2

Which are examples of normative goals

Answers

Answer:

Goal-based decision making is goal generation together with goal-based planning

This decomposition of decision making in goal generation and planning raises several

questions, such as:

– How to represent beliefs? How to represent obligations? In this paper we represent

beliefs and obligations by rules, following the dominant tradition in deontic logic

(see e.g. [26,27]).

– How to develop a normative decision theory based on belief and obligation rules?

In this paper we introduce a qualitative decision theory, based on belief (B) and

obligation (O) rules.

Research is much concerned with proper fact finding, analysis and evaluation.” Do you agree with this statement? Give reasons in support of your answer.​

Answers

Answer:

Yes, I agree.

Explanation:

Research is basically trying to find out new ways of doing things or challenging an already established claim or theory, with the aim of disproving or improving on it.

So, research is much concerned with proper fact-finding, which would ensure that the results and samples are accurate, analysis and evaluation which would make sure that the new data gotten is properly investigated.

I agree that Research is much concerned with proper fact finding, analysis because research increases the stock of knowledge and requires different analysis and facts base on past research.

What is Research?

Research can be regarded as reactive and systematic work which is been carried out to bring about improvement in knowledge of the reseacher.

In research, findings needs to be done, it could requires experiments and field work, evaluation of the results is also needed to compare with past results of the past scholars.

Learn more about Research at:

https://brainly.com/question/968894

Study the sentence below. Highlighting a word, phrase, or a sentence is used to emphasize or CALL ATTENTION to the text Which word is highlighted?​

Answers

Answer: Emphasize

Explanation:

Answer: Emphasize

Explanation: gl hope this helps

propose and implement a test for autocorrelated error terms. What is the name of the test, and are OLS errors autocorrelated from the test

Answers

Answer:

This value of k is the time gap being considered and is called the lag. These relationships are being absorbed into the error term of our multiple linear , If we suspect first-order auto-correlation with the errors, then a formal test does exist regarding the parameter .  A simple linear regression analysis was implemented.

The best way to share criticism is to ______. a. write it in the break room b. talk it about with all your coworkers c. talk about it privately d. discuss it at meetings

Answers

Answer:

C.

Explanation:

Answer:

The correct answer is C. hope this helps

Explanation:

I also got a %100 one the test so its right.

how many bits long is a autonomous system number?

Answers

Answer:

There are two different formats to represent ASNs: 2-byte and 4-byte. A 2-byte ASN is a 16-bit number. This format provides for 65,536 ASNs (0 to 65535).

Explanation:

"A loosely coupled group of volunteer programmers that contribute code to develop and maintain software are called:"

Answers

Answer:

Open Source Community

Explanation:

What is the purpose of a Peer-to-Peer architecture? Describe the two methods we learned for finding the peer with a desired resource.

Answers

Answer:

peer to peer connections in a network prevents drop-down of connection when a cable fails

Explanation:

A peer to peer computer network is a connection is a network between computers that connects one device to every other device in the network. A computer is connected to its neighbors and to another computer physically with an ethernet cable.

When a cable is disconnected, the computer can still communicate with other computers in the network, preventing network drop-down and continuity.

_______ can be used to prevent busy waiting when implementing a semaphore.
A) Spinlocks
B) Waiting queues.
C) Mutex lock.
D) Allowing the wait

Answers

Answer:

b) waiting queues

Explanation:

The use of encryption and authentication protocols is the standard method of countering attempts to alter or insert transmissions.a) trueb) false

Answers

Answer:

a) true.

Explanation:

Encryption is a form of cryptography and typically involves the process of converting or encoding informations in plaintext into a code, known as a ciphertext. Once, an information or data has been encrypted it can only be accessed and deciphered by an authorized user.

Some examples of encryption algorithms are 3DES, AES, RC4, RC5, and RSA.

On the other hand, authentication can be defined as the process of verifying the identity of an individual or electronic device. Authentication work based on the principle of matching an incoming request from a user or electronic device to a set of uniquely defined credentials.

Basically, authentication ensures a user is truly who he or she claims to be, as well as confirm that an electronic device is valid through the process of verification.

Digital certificates, smart cards, picture passwords, and biometrics are used to perform an authentication.

Hence, in cybersecurity the use of encryption and authentication protocols is the standard method of countering attempts to alter or insert transmissions.

Comments are used to write pseudocode outlines. How do you indicate that a line is a comment? You start the line with a _________

Answers

Answer:

#

Explanation:

A more common way to plan a program is with pseudocode, an outline composed of comments. Comments are indicated by a pound sign (#) at the beginning of the line.

Depending on the programming language, there are several ways we can comments our statements or codes that are not needed in our programmes

In Kotlin and Java Languages we can us the double slash "//" symbol to express single line comment

Example

//This is a comments

We can also us the "/***/" to express multi line comments

Example

/**This is a comment

also*/

Hence we have the

Inline Comments Multiline Comments

For more information on comments in programming language kindly visit

https://brainly.com/question/15068446

function of internet security​

Answers

Answer:

Explanation:

Hola friend!!!!!

The job of internet security is implement rules and measures to prevent internet attacks. It also protects from fraud, viruses etc...

Hope this helps

plz mark as brainliest!!!!!

If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used?a. Using private access specifier for data membersb. Using class concept with both data members and member functionsc. Using public member functions to access and manipulate the data membersd. Data is not sufficient to decide what is being used

Answers

Answer:

c. Using public member functions to access and manipulate the data members

Explanation:

In object oriented programming, abstraction is used in order to lessen the complexity and hiding non essential details about how a program is actually working in the background. In order to achieve abstraction, classes are defined in such a way that the data members are hidden and the member functions form public interface. The public member functions here are used to access and manipulate these hidden or private data members. So the use of public member functions shows the abstraction here. These members functions are public so they can be directly accessed and the hidden or private data members can be accessed indirectly with the help of these member functions. So internal details of the classes and its data members are hidden from the outside world. Thus abstraction used here ensures security of data members of two classes and protects them from any accidental alterations by other parts of program.

According to the text, the three IT trends that are having the greatest impact on the IT environment are:

Answers

Answer:

B. GRID COMPUTING , ON - DEMAND COMPUTING AND REAL TIME COMPUTING

Explanation:

Grid computing, on-demand computing and real time computing are currently the most impactful information technology processes. The Grid computing from example entails distributed computing whereby computing resources are distributed across different systems for a computing task. This is seen in server systems where a super virtual computer composed of a network of computers are connected to share resources and perform large tasks. This form of computing has majorly affected and improved complex computing tasks today.

On demand and real time computing are also other notable trends in IT with real time computing bringing the power of live and direct coverage of information to our screens and on demand making it possible for the average user to access computing resources as needed such as in the services of cloud computing providers

Main Difference between Excel and word application
programs​

Answers

Answer:

See explanation

Explanation:

Word documents are mainly for typing papers and documents. This is useful for writing a report or making a book.

Excel is for writing spreadsheets and doing math equations within the program. This is useful for having budget calculators and math equations.

Hope this helped!

Workspace How do the following technologies help you in your quest to become a digital citizen: kiosks, enterprise computing, natural language processing, robotics, and virtual reality?

Answers

Answer:

1) A kiosk are small platforms that can be used for obtaining information and programming relate to entertainment, transportation, commerce, applications, and other areas. A kiosk is located in busy business areas. With Kiosks, one is able to get answers to important information such as service locations.

2) Enterprise computing is the use of information technologies and computing in organizational setting. Enterprise computing provides improved data security

3) Natural language processing is the artificial intelligence concept that deals with the interaction between man and computer by use of natural language. With natural language processing, it is possible to interact with artificial intelligence application in the same manner we interact with a real person

4) Robotics is concerned with the design construction, and operation of robots. It involves the collaboration of computer science and engineering fields. Robotics provide 24 hours assistance including in inhuman conditions such as low oxygen

5) Virtual Reality (VR) is the creation of easily believable simulation of real life by means of computer technology. With virtual reality, one is able to practice practical  trade skills in their living room

Explanation:

The instructions tha tell the computer how to carry out the processing tasks are refered to as........

Answers

Answer:

Code

Explanation:

Code are basically instructions in the computers language to tell the computer “what to do.” If you want to, say, open and edit a file, you’d tell the computer to do that by:

Opening the file

Finding where to edit

Adding the line of your choice

Hope this helped!

Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250

Answers

Answer:

Soory! I can't tell please tell clearly

Answer:

user_num = int(input("Number: "))

x = int(input("x: "))

for i in range(1,4):

    user_num = user_num/x

    print(user_num," ")

Explanation:

a rule that states each foreign key value must match a primary key value in the other relation is called the

Answers

Answer:

Referencial Integrity Contraint

Explanation:

The referential integrity constraint states that the customer ID i.e (CustID) in the Order table must match a valid CustID in the Customer table. Most relational databases have declarative referential integrity. That is to say, when the tables are created the referential integrity constraints are set up so as to maintain the quality of information.

list five application of personal computers. is there a limit to the application of computers? Do you envision any radically different and exciting application in the near future? if so, what?

Answers

Answer:

Word processing,

Book keeping,

Digital image editing,

Creating/writing music,

Graphics design,

Gaming,

Coding,

Mapping.

Design an application for the Sublime Sandwich Shop. The user makes sandwich order choices from list boxes, and the application displays the price. The user can choose from three main sandwich ingredients of your choice (for example, chicken) at three different prices. The user also can choose from three different bread types (for example, rye) from a list of at least three options. Save the file as JSandwich.java.

Answers

Answer: Provided in the explanation section

Explanation:

Using Code :-

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

public class SandwichShop

{

String sandwichIngredients [] = {"Chicken", "Mutton", "Veg"};

String breadTypes[] = {"Bloomer", "Cob", "Plait"};

JFrame jf;

JPanel p1, p2, p3, p4, mainP;

JList ingredient, bread;

JLabel ingL, breadL, amountL;

JTextField amountT;

JButton amountB, exitB;

SandwichShop()

{

jf = new JFrame("Sandwich Shop");

p1 = new JPanel();

p2 = new JPanel();

p3 = new JPanel();

p4 = new JPanel();

mainP = new JPanel();

ingredient = new JList<String>(sandwichIngredients);

bread = new JList<String>(breadTypes);

ingL = new JLabel("Select Sandwich Ingredients");

breadL = new JLabel("Select Bread Types");

amountL = new JLabel("Amount: ");

amountT = new JTextField(5);

amountB = new JButton("Check Amount");

exitB = new JButton("Exit");

p1.add(ingL);

p1.add(ingredient);

p2.add(breadL);

p2.add(bread);

p3.add(amountL);

p3.add(amountT);

p4.add(amountB);

p4.add(exitB);

mainP.add(p1);

mainP.add(p2);

mainP.add(p3);

mainP.add(p4);

mainP.setLayout(new GridLayout(4, 1));

jf.add(mainP);

jf.setVisible(true);

jf.setSize(400, 300);

exitB.addActionListener(new ActionListener()

{

public void actionPerformed(ActionEvent ae)

{

System.exit(0);

}

});

amountB.addActionListener(new ActionListener()

{

public void actionPerformed(ActionEvent ae)

{

int indexIngredient = ingredient.getSelectedIndex();

int indexBread = bread.getSelectedIndex();

if(indexIngredient == 0 && indexBread == 0)

amountT.setText("100");

if(indexIngredient == 0 && indexBread == 1)

amountT.setText("120");

if(indexIngredient == 0 && indexBread == 2)

amountT.setText("160");

if(indexIngredient == 1 && indexBread == 0)

amountT.setText("190");

if(indexIngredient == 1 && indexBread == 1)

amountT.setText("205");

if(indexIngredient == 1 && indexBread == 2)

amountT.setText("210");

if(indexIngredient == 2 && indexBread == 0)

amountT.setText("97");

if(indexIngredient == 2 && indexBread == 1)

amountT.setText("85");

if(indexIngredient == 2 && indexBread == 2)

amountT.setText("70");

}

});

}

public static void main(String[] args)

{

new SandwichShop();

}

}

The following are a set of named spreadsheets with the indicated column headings. Use these spreadsheets to answer exercises 1.30 through 1.32.
A. Name of Spreadsheet: EQUIPMENT Column Headings: (Number; Description, AcquisitionDate, AcquisitionPrice)
B. Name of Spreadsheet: COMPANY Columns Headings: (Name, IndustrvCode, Gross Sales, OfficerName, OfficerTitle)
C. Name of Spreadsheet: COMPANY Columns Headings: (Name, IndustrvCode, Gross Sales, NameOfPresident)
D. Name of Spreadsheet: COMPUTER Columns Headings: (SerialNumber, Make, Model, DiskTpe, DiskCapacityj
E. Name of Spreadsheet: PERSON Columns Headings: (Name, DateOfHire, DeptName. DeptManager, ProjectlD, NumHours, ProjecthManager)

Answers

Answer:

There are five work sheets in this excel file, they are equipment, company, company, person and computer. Excel worksheets are made up of cells, with the columns labelled alphabetically and the rows numbered.

Explanation:

The columns of a worksheet is called a field while row are called records. They are used to locate a cell in the worksheet. There are so many statistical, mathematical and engineering functions in excel. It is used to display the analysis of data.

Which quality of service (QoS) mechanism provided by the network does real-time transport protocol (RTP) rely on to guarantee a certain QoS for the data streams it carries

Answers

Answer:

The real-time transport protocol (RTP) carries the audio and video data for streaming and uses the real-time control Protocol to analyse the quality of service and synchronisation. The RTP uses the user datagram protocol ( UDP) to transmit media data and has a recommended Voice over IP configuration.

Explanation:

RTP is a network protocol used alongside RTCP to transmit video and audio file over IP networks and to synchronise and maintain its quality of service.

___________ allows users to share and collaborate the data relevant to groups, individuals or organizations. qlikview

Answers

Answer:

Business Intelligence

Explanation:

Business Intelligence refers to all the methods and technologies applied towards obtaining, computing, and analyzing business data which would serve the purpose of informing better decision making. Business Intelligence analyzes huge amounts of business data and breaks them down for easy comprehension. They help to provide insight into the current and past market situations that would help managers in making better predictions.  

Some of such decisions could be the effect of breaking into new markets or increasing the prices of products and services. The data obtained during business intelligence should come from the market where the products are sold as well as data compiled by the organization, so as to provide holistic information.

What is an efficiency target? Give an example of setting an efficiency target

Answers

Answer:

Goals help provide our everyday lives with structure, and operate similarly at the institutional level, offering organizations a low cost method of encouraging motivation, communication and accountability. In short, goals help organizations to achieve a variety of ends—including the reduction of energy waste.

Energy efficiency improvement goals, also known as energy efficiency targets, are intended reductions in energy over a specified time frame that have been defined in a SMART manner. Targets are useful because they can encourage decision makers to improve the use of energy in their communities and operations. Moreover, energy efficiency targets can have short or long term timeframes and can be implemented on various scales, ranging from the national level down to individual buildings. Cities should explore both mandatory public sector targets and voluntary private sector targets to forge energy-efficient communities.

Other Questions
Classify the groups below. Do they list repeating decimals, terminating decimals, or irrational numbers? 12,1/2, 34.2, and 4/5 Hong Kong Clothiers reported revenue of $5,000,000 for its year ended December 31, 2018. Accounts receivable at December 31, 2017 and 2018, were $320,000 and $355,000, respectively. Using the direct method for reporting cash flows from operating activities, Hong Kong Clothiers would report cash collected from customers of: Write an expression to represent the area of the following figure.X - 12Your answer:4x - 484x - 24x - 12 Gratifications refer to activities in which people are optimally challenged and that result in personal growth. True False What is the most likely source of the money for the pigs whiskey at the end of the chapter A sharing arrangement in which only deductible costs are apportioned to the investor, with the sponsor bearing all capitalized costs is called Which event happened first? Group of answer choices 395 A.D The Roman Empire is divided into the Eastern and Western empires 750 B.C. Greek city states flourish with shared Greek identity 476 A.D. Invasions bring about the fall of the Western Roman Empire. 27 B.C. Rome becomes an empire and Augustus becomes its first emperor. Consider the following facts for health haven?Requirements 1. How much are cash dividends? 2. What was the amount of the cash receipt from the sale of plant assets? Requirement 1. How much are cash dividends?Cash dividends are $______. Requirement 2. What was the amount of the cash receipt from the sale of plant assets? The cash receipt from the sale plant assets is $:_________. How can Art have an influence on you in moulding your character ? What is the product?5-2-62 if |x|=6 then x=-6 true or false solve the product of : 0.017 and 10(( TYPE the STEPS you used to set up the problem and type your steps to solve. )) THANK YOU!! Roughly, how many people lived in the Aztec capital when it was at the height of its culture? Which sentences correctly use parentheses? Select two options.A beWe went to the state fair (held in the state capital) for the first time this year.For my birthday, my parents got me tickets to Hamilton (my favorite musical!).My sister has homework for three classes tonight (math, English, and biology).The student body voted to select (the person) who would get the Best Teacher award.(When he made the hot chocolate) my brother left out the most important ingredient. write the point-slope equation of the line that contains the point (1, -4) and has slope - 1/3. The 14th amendment does all of the following except WHAT? 1+x^2-3+2y+7x^2+3+3y What usual purposes does a parallel character serve? Select all that apply.to provide a contrast to key character, to illuminate another character, to point out the strengths and weaknesses of another character, to develop a secondary theme, to balance the storys focus on the main character As humans began to farm, they were then able to produce . This allowed them to free members of their community to do other jobs, which is called . In addition, people began to live in settlements. Eventually, around 4000 BCE, this would lead to the development of . Why might prevention costs be referred to as an investment while failure costs might be referred to as true costs