Write, compile, and test the moviequoteinfo class so that it displays your favorite movie quote, the movie it comes from, the character who said it, and the year of the movie.

Answers

Answer 1

The program that writes, compiles, and tests the moviequoteinfo class so that it displays your favorite movie quote,  the movie it comes from, the character who said it, and the year of the movie is given below:

The Program

public class MovieQuoteInfo { //definition of MovieQuoteInfo class

//All the instance variables marked as private

private String quote;

private String saidBy;

private String movieName;

private int year;

public MovieQuoteInfo(String quote, String saidBy, String movieName, int year) { //parameterized constructor

super();

this.quote = quote;

this.saidBy = saidBy;

this.movieName = movieName;

this.year = year;

}

//getters and setters

public String getQuote() {

return quote;

}

public void setQuote(String quote) {

this.quote = quote;

}

public String getSaidBy() {

return saidBy;

}

public void setSaidBy(String saidBy) {

this.saidBy = saidBy;

}

public String getMovieName() {

return movieName;

}

public void setMovieName(String movieName) {

this.movieName = movieName;

}

public int getYear() {

return year;

}

public void setYear(int year) {

this.year = year;

}

//overriden toString() to print the formatted data

public String toString() {

String s = quote+",\n";

s+="said by "+this.saidBy+"\n";

s+="in the movie "+this.movieName+"\n";

s+="in "+this.year+".";

return s;

}

}

Driver.java

public class Driver {

public static void main(String[] args) {

MovieQuoteInfo quote1 = new MovieQuoteInfo("Rosebud", "Charles Foster Kane", "Citizen Kane", 1941);

System.out.println(quote1);

}

}

Read more about programming here:
https://brainly.com/question/23275071
#SPJ1


Related Questions

(a) which algorithm is used to digitize a voice signal for transmission in a digital circuit-switched network? (b) at which data rate is the voice signal transmitted?

Answers

Pulse code modulation (PCM) algorithm is used to digitize a voice signal for transmission in a digital circuit-switched network

An average voice channel in a circuit switched digital telecommunications network uses a 64 kbit/s timeslot. For the purpose of digital transmission, an analogue voice signal is transformed using the pulse code modulation (PCM) technique.

In order to represent sampled analogue signals digitally, one technique is pulse-code modulation (PCM). It serves as the industry standard for digital audio in applications such as digital telephony, compact discs, and computers.

Sampling, quantization, and coding are the three processes in the Pulse Code Modulation process.

The telephone network (POTS) uses PCM (Pulse Code Modulation), a standardised technique, to convert an analogue signal to a digital one. First, an 8-kHz sampling rate is used to sample the analogue signal.

Learn more about voice signal:

https://brainly.com/question/28544369

#SPJ4

exercise 1.11 convert the following unsigned binary numbers to decimal. a) 10102 b) 1101102 c) 111100002 d) 00011000101001112 exercise 1.12 repeat exercise 1.11, but convert to hexadecimal.

Answers

1.11 will be converted into 0001100010100111₂ unsigned binary numbers to decimal. Thus, option D is correct.

What is binary numbers?

The base-2 notation, often known as the binary representation, is a way of expressing numbers in mathematics that employs simply two values, mainly "0" and "1."

The  1.11  will be The binary number that can be repeated in the form of 1 and 0 these numbers can be in any coding or any form but there are only two numbers that are being used to create  0001100010100111₂ in the unsigned binary numbers to decimal.

Therefore, option D is the correct option.

Learn more about binary numbers, here:

https://brainly.com/question/28222245

#SPJ1

The systems such as computers and telecommunications, used for storing, retrieving, and exchanging information is information technology.
true or false

Answers

The systems such as computers and telecommunications, used for storing, retrieving, and exchanging information is information technology is a true statement.

What is information technology meaning?

Information technology (IT) is known to be a broad professional form or group that tend to cover some areas of  functions such as:

Building communications networkssafeguarding data and informationTroubleshooting computer problems, etc.

Therefore, The systems such as computers and telecommunications, used for storing, retrieving, and exchanging information is information technology is a true statement.

Learn more about information technology  from

https://brainly.com/question/14688347
#SPJ1

write a program that is given two integers representing a speed limit and driving speed in miles per hour (mph), calls the function calculate ticket cost() and outputs the traffic ticket amount.

Answers

The program that is given two integers representing a speed limit and driving speed in miles per hour is given below:

The Program

def ask_limit():

  limit = float(input ("What was the speed limit? "))

   return limit

def ask_speed():

   speed = float(input ("What was your clocked speed? "))

   return speed

def findfine(speed, limit):

   if speed > 90:

       bigfine = ((speed - limit) * 5 + 250)

       print "your fine is", bigfine

   elif speed <= limit:

       print "you were traveling a legal speed"

   else:

       fine = ((speed - limit) * 5 + 50)

       print "your fine is", fine

def main():

  limit = ask_limit()

   speed = ask_speed()

   findfine(speed, limit)

main()

Read more about computer programs here:

https://brainly.com/question/23275071

#SPJ1

The _____ was created to give a standardization to the linux filesystem structure.

Answers

The Filesystem Hierarchy Standard was created to give a standardization to the linux filesystem structure. The term "Filesystem Hierarchy Standard" refers to a convention that is applied to the UNIX operating system.

Even if they are stored on several physical or virtual media, all files and directories in the FHS are found under the root directory, which is /. Some of these folders are installed with specific subsystems, such the X Window System, in order to function on a specific system. All operating systems that resemble Unix have the majority of these directories, and they are typically utilized in very similar ways.

Learn more about linux filesystem structure https://brainly.com/question/9711472

#SPJ4

If you're running a server, which one of the follow operating systems would be best suited for your server?

Answers

If you're running a server, the operating system that would be best suited for your server is Ubuntu server.

What is Ubuntu Server used for?

Ubuntu Server is known to be a type of a server operating system, that is known to have been created  by Canonical and open source programmers all over the world.

It is known to be one that works with almost any hardware or virtualization platform and as such, one can say that If you're running a server, the operating system that would be best suited for your server is Ubuntu server.

Learn more about operating system  from

https://brainly.com/question/22811693

#SPJ1

use a web browser connected to the internet to explore the career options in cybersecurity at the u.s. national security agency. for what kind of infosec jobs does the nsa recruit? what qualifications do the jobs you found call for?

Answers

Infosec jobs does the NSA recruit are:

Exploitation AnalystCyber Network ProcessionalForensic AnalystTechnology Acceleration FieldLanguage AnalystQuantum ResearcherCryogenic EngineerSystem ArchitectFabricationResearch PhysicistCyber Security (for internship program)

Job qualifications that I found call for is the National Security Agency Cybersecurity (for internship program) are:

Have U.S. citizenship;Be qualified for a TS/SCI/TK security clearance after passing a background check that includes a Full-Scope Polygraph and a Psychological Evaluation;Have a preferred cumulative GPA of 3.0 or better for all previously completed college work;At the time of application, be enrolled in an undergraduate, graduate, or doctoral program in college;Be available and present in the United States between November 2022 and March 2023 for operational and technical interviews as well as other relevant processes, both in person and over the phone/internet;Pursue a major in cybersecurity or a field that is closely related to it.

Cybersecurity is the process of protecting systems, data, networks, and programs from digital threats or attacks. Usually, these attacks are carried out by irresponsible parties for various things.

Learn more about cybersecurity https://brainly.com/question/24856293

#SPJ4

Why would the network designers include fragmentation (segmentation) as a function instead of just requiring all packets to be a certain size? be specific.

Answers

The reason why network designers include fragmentation (segmentation) as a function  instead of just requiring all packets to be a certain size is the fact that it helps to improve security as well as make a predictable traffic flows.

An Internet Protocol (IP) process known as IP fragmentation tends to split up packets into little parts (fragments), allowing the result of those pieces to flow through a link with a smaller maximum transmission unit (MTU) than when compared to original packet size.

It is important to keep in mind that by fragmenting data packets and delivering several packets, which tend to have shorter transmission frames, there is a decreased chance that a transmission may collide with a Bluetooth packet.

The fraction of overhead bits used in the transmission tends to rise as the frame size is decreased.

Thus, rather to only requiring that all packets be a specific size, network designers incorporate fragmentation (segmentation) as a function since it enhances security and creates predictable traffic patterns.

Learn more about fragmentation:

https://brainly.com/question/26260432

#SPJ4

The explosion that forces the piston downward which supplies power to a machine is ignited by the ??
A pilot light
B compression chamber
C ignition manger
D none

Answers

Answer:

Explanation:

The air and fuel in the combustion chamber is compressed as the piston moves upward. The spark plug that ignites the fuel and air results in an explosion that pushes the piston back down again.

The word ____ is used to indicate that a program is permanently held in rom (read only memory), as opposed to being held in secondary storage.

Answers

The word firmware is used to indicate that a program is permanently held in ROM (read only memory), as opposed to being held in secondary storage.

What is a software?

A software can be defined as a set of executable instructions that is typically used to instruct a computer system on how to perform a specific task (function) and proffer solutions to a particular problem.

Types of computer memory.

In Computer technology, there are two (2) main types of memory or storage location for software program (application) that are being used on a computer and these include;

Read only memory (ROM)Random access memory (RAM)

Generally, firmware is a terminology which is used to indicate that a software program is permanently held in read only memory (ROM), as opposed to being held in the secondary storage of a computer.

Read more on firmware here: https://brainly.com/question/10875640

#SPJ1

Complete Question:

The word _____ is used to indicate that a program is permanently held in ROM (read only memory), as opposed to being held in secondary storage.

a. firmware

b. shareware

c. hardware

d. software

Constructor methods should always be defined with what access? a. private b. protected c. public d. common

Answers

Constructor methods should always be defined with private access. Thus, option A is correct.

Who is Constructor?

The information elements of a specific element are often initialized by constructors, which share a same namespace as the subclass or struct.

A person who is the constructor usually have a design which is being made by him of all the amenities that he has installed with a full roof plan and floor planning.

This document is frequently considered as private as the people may misuse the information of the data that is being presented to them. Therefore, option A is the correct option.

Learn more about Constructor, here:

https://brainly.com/question/12997980

#SPJ1

Which protocol enables you to control a remote computer from a local computer over a network?

Answers

Answer:

RDP

Explanation:

RDP is a secure, interoperable protocol that creates secure connections between clients, servers and virtual machines. RDP works across different Windows OSes and devices and provides strong physical security through remote data storage.

please make my answer as brainelist

what is the output from the following java program? (assume that a tab is expanded into eight spaces.) public class letter {

Answers

The output from the following java program is given below:

public class Letter {

   public static void main(String[] args) {

       System.out.println("Dear \"DoubleSlash\" magazine,");

       System.out.println();

       System.out.println("\tYour publication confuses me.  Is it");

       System.out.println("a \\\\ slash or a //// slash?");

       System.out.println("\nSincerely,");

      System.out.println("Susan \"Suzy\" Smith");

   }

}

The Output

Dear "DoubleSlash" magazine,

       Your publication confuses me.  Is it

a \\ slash or a //// slash?

Sincerely,

Susan "Suzy" Smith

The given code declares variables, defines a method and gives commands..

It creates a public class and then uses print commands to tell the compiler the output to give and the output is given above.

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

A computer that has a parallel architecture uses multiple central processing units. True or false

Answers

Answer:

This is true.

Explanation:

Mystring is declared as a string and is the only variable declared. which is a valid assignment?

Answers

Since myString is declared as a string and is the only variable declared. the  valid assignment is myString = "H";

What is myString?

The term  MyString(int currentSize) is known to be a kind of a constructor that is known to be used for an empty string of the currentSize elements.

What is an Object?

The "objects" is know to be a tool that is used to make a C++ program and they are known to be called classes.

Note that  a class is said to be organized such as or the same as a data structure in C and A class is one that is made up any number of variables just similar to  a data structure, but it also has  all of the functions that work on that data.

Therefore, Since myString is declared as a string and is the only variable declared. the  valid assignment is myString = "H";

Learn more about myString from

https://brainly.com/question/27812580

#SPJ1

myString is declared as a string and is the only variable declared. Which is a valid assignment?

myString = 'Hello';

myString = Hey;

myString = "H";

myString = [Hoy];

a memory location whose content is not allowed to change during program execution is known as a .

Answers

A memory location whose content is not allowed to change during program execution is known as a: D. Named Constant.

What is a variable?

A variable can be defined as a specific name which refers to a location in computer memory and it is typically used for storing a value such as an integer.

This ultimately implies that, a variable refers to a named location that is used to store data in the memory of a computer. Also, it is helpful to think of variables as a container which holds data that can be changed in the future.

In Computer technology, a named constant can be defined as a memory location in a software whose content must not change during program execution.

Read more on named constant here: https://brainly.com/question/9016384

#SPJ1

Complete Question:

A memory location whose content is not allowed to change during program execution is known as a

answer choices

Modulus

Null (empty)

Newline Escape

Named Constant

a technician is configuring a new cisco 2960 switch. what is the effect of issuing the branchsw(config-if)

Answers

When you issue the BranchSw shutdown command, a physical or virtual switch interface is disabled.

Almost all Cisco devices operate on Cisco IOS and are managed using Cisco CLI. Cisco device management is made simpler by the fact that the fundamental CLI commands are the same for all of them.

The American international technological conglomerate firm Cisco Systems, Inc., also known as Cisco, has its corporate headquarters in San Jose, California. Cisco creates, produces, and markets networking tools, computer software, telecommunications gear, and other high-tech services and goods.

With industry-leading technologies like Webex, OpenDNS, and others, Cisco focuses in particular tech areas like the Internet of Things (IoT), domain security, videoconferencing, and energy management.

Learn more about Cisco https://brainly.com/question/8986399?

#SPJ4

you are attempting to boot a new system. the boot fails, and the system sounds a beep code. which of the following describes the most likely cause of this error?

Answers

The factor that describes the most likely cause of this error is:

Either no memory is installed or the memory was not detected.

What is the above case about?

A Boot Missing is known to be called a Boot Failed error and this is said to be a kind of  a Windows startup error that often shows up if  a PC or laptop fails to see or load the Windows boot files.

Note that in the case above, If the system boot fails and there is a sounds such as a beep code, the main reason for this issue will be due to absence of  memory that is installed or the memory was not seen.

If a card or memory module is said to  not been seated, or the system is one that has some  unsupported memory, the system will boots, but the display will  not show.

Hence, The factor that describes the most likely cause of this error is:

Either no memory is installed or the memory was not detected.

Learn more about boot fails from

https://brainly.com/question/10811580

#SPJ 1

See the options below

Either no memory is installed or the memory was not detected.

After a memory upgrade-ensure that the memory is compatible and was installed and configured properly.

the display will remain blank. If good fails to recognize all of the memory, the system will boot.

Answer:

Either no memory is installed or the memory was not detected.

What is the process of ensuring anti-malware software and data is up to date. mandate daily updates.

Answers

Assuring by checking

one of the ways web mining improves web experiences is through site visibility. site visibility includes how and the website appears when queries are executed in a search engine.

Answers

Site visibility includes how and when the website appears when queries are executed in a search engine.

What is site visibility?

The term Site visibility is known to be called Website Visibility and this is said to be regarded as a kind of the process of obtaining your website that is said to be found on the internet if  your prospects are said to be searching for any linked or  related products and services.

Note that one of the best ways to be able to boast or increase your site visibility is to get your site to be one that is ranked first in the main search engines.

Therefore, since one of the ways web mining improves web experiences is through site visibility, Site visibility includes how and when the website appears when queries are executed in a search engine.

Learn more about visibility from

https://brainly.com/question/24029870
#SPJ1

Critical thinking: why would the network designers include fragmentation (segmentation) as a function instead of just requiring all packets to be a certain size? be specific.

Answers

The reason why  network designers include fragmentation (segmentation) as a function  instead of just requiring all packets to be a certain size is the fact that it helps to improve security as well as make a predictable traffic flows.

What is Packet fragmentation?

IP fragmentation is known to called an Internet Protocol (IP) process that tends to breaks down packets into little  pieces (fragments), so that the outcome of those pieces can be able to pass through a link with a little maximum transmission unit (MTU) than when compared to original packet size.

Note that by the act of fragmenting data packets and also sending a lot of packet, it is one that tends to have shorter transmission frames, all of the transmission will also be made up a lower probability of having a collision with a Bluetooth packet.

The reducing of the frame size tends to increases the percentage of overhead bits that is used in the transmission.

Therefore, The reason why  network designers include fragmentation (segmentation) as a function  instead of just requiring all packets to be a certain size is the fact that it helps to improve security as well as make a predictable traffic flows.

Learn more about fragmentation from

https://brainly.com/question/26260432

#SPJ1

Which wi-fi standard uses beamforming to allow an app to send data to multiple devices simultaneously?

Answers

Answer: 802.11n

Explanation: uses only MIMO technology. In this, signal send by separate antennas and sends multipath signals. The signals slightly goes out of the range. So we cannot send data in multiple devices simultaneously.

In order to connect to the internet via the web you will need communications hardware, browser software and a(n)_____,

Answers

In order to connect to the internet via the web you will need communications hardware, browser software and a(n) Internet Service Provider.

What does internet service provider mean?

An ISP (internet service provider) is known to be called any firm or a company that tend to carry out or give people and organizations access to the internet as well as  other linked services.

Note that an ISP is said to possess the equipment as well as the telecommunication line access that is known to be needed to have a  place of presence on the internet.

Therefore, In order to connect to the internet via the web you will need communications hardware, browser software and a(n) Internet Service Provider.

Learn more about Internet Service Provider from

https://brainly.com/question/23902843

#SPJ1

Which switch is used with the windows netstat utility to show name of a running program?

Answers

Answer:

-b

Explanation:

What is a CMOS Battery slot

Answers

What is a CMOS battery?
(complementary metal-oxide-semiconductor)

It is a chip on the motherboard that contains BIOS configuration, date, time and other information that the computer needs during startup. Normally, this information would be lost when the computer is shut down or loses power for some reason (dead battery, power failure, etc.). The CMOS battery supplies power to the CMOS chip, even when the computer is shut down. This battery is usually a watch type battery which can supply power for a year or more.
_____________________________________________________
Learn more about CMOS battery's:
https://brainly.com/question/14767803

Have a WONDERFUL day! (:

Which of the following statements is true about personality
tests?
Personality tests can guide you towards the options
that may be the best fit for you.
Personality tests can predict how successful you'll be
in a specific career or field of study.

Answers

The true statement is true about personality tests is that Personality tests can guide you towards the options that may be the best fit for you.

What is meant by personality test?

Personality tests are known to be a kind of a test that has been set up to systematically bring out information about a person in regards to their motivations, preferences as well as their interests, emotional make-up, and style of communicating with people and issues.

Therefore, The true statement is true about personality tests is that Personality tests can guide you towards the options that may be the best fit for you.

Learn more about personality tests from

https://brainly.com/question/1360758

#SPJ1

Examine the following code segment:

data = 3. 16

new_data = CAST (data)

print("Length of Data:", len())

What data type (if any) should replace the word CAST on line 2 to ensure the code segment runs

without error?

O

str

O int

float

O Nothing should be changed

Answers

Answer:

float

Explanation:

I'm in python and i have a A

bring your own devices is a general term for a set of standards governing the collection and use of personal data and addressing issues of privacy and accuracy.

Answers

Fair information practices is a broad word for a set of guidelines that control the gathering and use of personal data and address concerns about accuracy and privacy. The Fair Information Practice Principles are the outcome of the Commission's investigation of the methods.

Here are the five fundamental tenets of fair information practices. First, notice should be given to customers. Second, choices should be offered and consent required. Third, data should be accessible to and modifiable by consumers. Fourth, data should be accurate and secure. Fifth, mechanisms for enforcement and redress are necessary

Learn more about code of fair information practices https://brainly.com/question/15685630

#SPJ4

why is technology bad for you

Answers

Answer: Constant device use might strain your eyes. It can cause a headache, focus issues, itching, blurred or double vision, and light sensitivity. This is one of the main arguments against technology that we may make.

Explanation:

consider the following two implementations of the same algorithm, each written in a different language. language a: calculate the average daily rainfall for the week (averagerainfall) by adding together the rainfall totals for each of the 7 days of the week (sun, mon, tue, wed, thu, fri, and sat) and dividing the sum by 7. language b: take the total amount of rain from each day of the week (sunday, monday, tuesday, wednesday, thursday, friday and saturday) and then average them together to get the average daily rainfall for the week (averagerainfall). which of the following statements about these two implementations is true?

Answers

The statement about these two implementations that is true is 3. Language B is ambiguous because the process of "average" is not explained well enough for someone to computationally be able to solve the problem.

What is an Algorithm?

This refers to the well defined steps and sequences that are used to solve a problem.

Hence, we can see that The statement about these two implementations that is true is 3. Language B is ambiguous because the process of "average" is not explained well enough for someone to computationally be able to solve the problem.

This is because it requires that cumulative number for rain per day of the following weeks and also the averages collectively that provide an overall total rainfall during the week.

Read more about algorithm here:

https://brainly.com/question/24953880

#SPJ1

Other Questions
Why would a high unemployment rate make a strong centralized government more attractive? Is (2,-1) a solution of 2x-y=5? Explaihow your work. Whcih charecteristics are observable of vascular injury and inflammation? redness coolness warmth to touch increased swelling The most well developed scientific area at the beginning of the academic-discipline movement was? Cunto es 154(n2)=27 If you restrict private internet use entirely, employees may just withdraw in another way, according to which model(s)? Draw an irregular 14-sided polyhedron which has two congruent bases. What is NOT a benefit of having a good credit score? pablo picasso worked on in response to the brutalities of the spanish civil war. built for rulers, were tombs to aid the buried in the afterlife. showing the ideal of philosopher-king, is one of the finest examples of roman works. eugne delacroix's is an example of an artist who was free to express the social events of his day.\ an evidence based review of pathophysiology treatment and prevention of exercise induced muscle cramps is this proportion or not a meal delivery service cost $10 to sign up ,plus $24.99 each month ASAP Can someone help me get the points Ill make u brilliant the points are S T R U What are the classical traits of the epic setting? pls take this seriously jelly roll morton is remembered as one of the earliest pianists to record jazz and the first celebrated composer in jazz. In a paragraph of three to four sentences, explain who you think was most responsible for the fall of the Soviet Union. Provide specific examples to support your points. express the following statement in if-then form. fix my ceiling or i won't pay my rent. if you don't fix my ceiling, then i will pay my rent. if i pay my rent, then you won't fix my ceiling. if you don't fix my ceiling, then i won't pay my rent. if you fix my ceiling, then i won't pay my rent. if i won't pay my rent, then you won't fix my ceiling. Verb forms to make sentence in their nominalized forms What are the specific threats to independence when a cpa accepts gifts or entertainment from an attest client? does it matter whether the amount of the gift or entertainment was significant? Which emotional competency can be classified as intrapersonal? a. empathy b. resilience c. self-actualization d. happiness The width of a rectangle is five less than three times the length of the rectangle. If the perimeter of the rectangle is 70 inches what are the dimensions of the rectangle?