Modify the CharacterInfo class shown in Figure 7-3 so that the tested character is retrieved from user input.

Answers

Answer 1

The tested character is modified as given below. See the definition of tested character below.

What is characterization testing?

Michael Feathers created the phrase "characterization testing."

A characterization test (also known as Golden Master Testing) in computer programming.

It is a method of describing (characterizing) the actual behavior of an existing piece of software and thereby protecting legacy code against unwanted modifications through automated testing.

What is the modified characterInfo class?

Run on java, the modified characterInfo class is given as follows:

//import packages

import java.util.Scanner;

//Java class

public class InputCharacterInfo {

   //entry point of the program , main method

   public static void main(String[] args) {

       //creating object of Scanner class

       Scanner sc=new Scanner(System.in);

       //asking user to enter character

       System.out.print("Enter a character : ");

       //reading character

       char aChar=sc.next().charAt(0);

       System.out.println("The character is "+aChar);

       if(Character.isUpperCase(aChar))

           System.out.println(aChar+" is uppercase");

       else

           System.out.println(aChar+" is not uppercase");

       if(Character.isLowerCase(aChar))

           System.out.println(aChar+" is lowercase");

       else

           System.out.println(aChar+" is not lowercase");

       aChar=Character.toLowerCase(aChar);

           System.out.println("After toLowerCase(), aChar is "+aChar);

       aChar=Character.toUpperCase(aChar);

           System.out.println("After toUpperCase(), aChar is "+aChar);        

   }

}

Learn more about characterization testing in programming at;
https://brainly.com/question/13142406
#SPJ1

Modify The CharacterInfo Class Shown In Figure 7-3 So That The Tested Character Is Retrieved From User

Related Questions

the computer stores the data and information on the ______​

Answers

Answer:

Primary memory, it might be cpu but i think its primary memory

Explanation:

Please help!!
The following are two different images that are encoded using the same algorithm. The images are each in a 5 by 5 grid of pixels where each pixel is black, white, red, green or blue.

The image on the left gets encoded and compressed down to 21 digits while the image on the right gets compressed down to 25 digits. Although the same algorithm was used to encode and compress these images, why are the end results a different length?


The algorithm was probably used improperly in the image on the right, causing it to be a longer length than it should have been.

Because this is a lossy compression, sometimes information is lost during the compression.

The amount of size reduction from compression depends on the amount of redundancy in the original data.

The image on the right uses more colored squares and therefore requires more digits to represent the pixels.

Answers

Answer: The amount of size reduction from compression depends on the amount of redundancy in the original data.

The reason why the end results have a different length is because: C. The amount of size reduction from compression depends on the amount of redundancy in the original data.

What is a lossy compression?

A lossy compression is also referred to as irreversible compression and it can be defined as a type of data encoding (data compression algorithm) in which the data in a file such as an image, is removed by using inexact approximations, in order to reduce the amount of size of a file after decompression.

Since the same algorithm was used to encode and compress these images, the reason why the resulting images have a different length is simply because the amount of size reduction from compression depends on the amount of redundancy in the original image file (data).

Read more on lossy compression here: https://brainly.com/question/17542014

Which letter shows the ball when it has the maximum kinetic energy

Answers

Answer:

D.

Explanation:

Kinetic energy can be defined as an energy possessed by an object or body due to its motion.

Mathematically, kinetic energy is given by the formula;

[tex] K.E = \frac{1}{2}MV^{2}[/tex]

Where;

K.E represents kinetic energy measured in Joules. M represents mass measured in kilograms. V represents velocity measured in metres per seconds square.

Generally, when the final velocity at which a physical object moves is equal to zero (0), then it possess maximum kinetic energy.

Hence, the letter which shows the ball when it has the maximum kinetic energy in the graph attached is D.

Which language gives instructions on how text should appear on a web page?
__Blank__ language gives instruction on how text should appear on a web page.

Answers

Answer:

HTML

HTML stands for HyperText Markup Language, so HTML gives you a way to “mark up” your text with tags that tell the browser how your text is structured.

Answer:

Markup language

Explanation:

Why is computer literacy is important.

Answers

Cause it’s a important  skill process and they want there employees to have basic skill on pc or computers. They come depending on computers and it’s most likely to be more successful on education with the use of computers

create html code showing heading tags​

Answers

Answer:

Assuming you mean the HTML5 head tag, then this may work for you:

<!DOCTYPE HTML>

<html lang="en">

<head>

<title>My Very Awesome Website</title>

<link href="./css/main.css" rel="stylesheet"  />

<meta name="viewport" content="width=device-width, initial-scale=1" />

</head>

<body>

<h1>Hey look</h1>

<p>This is my awesome website!</p>

<h3>Note</h3>

<p>This website is supposed to be 100% awesome!</p>

</body>

</html>


1. Light of wavelength 900x10-9 m is emitted by a source. What is its frequency?​

Answers

therefore the frequency = 6×10^14

The frequency of the light is "[tex]6\times 10^{14}[/tex]".

Given values:

Wavelength,

[tex]\lambda = 900\times 10^{-9} \ m[/tex]

As we know the formula,

→ [tex]Frequency = \frac{C}{\lambda}[/tex]

By substituting the values, we get

→                   [tex]= \frac{3\times 10^8}{900\times 10^{-9}}[/tex]

→                   [tex]= \frac{10^8}{300\times 10^{-9}}[/tex]

→                   [tex]= 6\times 10^{14}[/tex]

Thus the above response is correct.  

Learn more about frequency here:

https://brainly.com/question/14459326

PLS HELP
1. You can tape a movie off Showtime.
a. if you use it for educational purposes.
b. only if you have written permission from the company.
c. so that it may be archived.
d. to use as an entertainment for your great students.

2. You may photocopy parts of the encyclopedia:
a. if it is for your use only.
b. only if your copy is of the subject you are researching.
c. if you don’t have a copy at home.
d. to pass out to all your students.

3. You may record a local symphony concert to share with your class:
a. as long as you don’t sell tickets to hear it.
b. as long as you use it at a listening center in your room.
c. if you relate it to your lessons.
d. you may not record a public performance of any kind.

4. You may make a copy of a computer program:
a. if you are giving it to a friend.
b. as long as you purchased it and are using it for a back-up copy.
c. as long as you downloaded it from the internet.
d. you may not copy software.

5. You may use any image from the Internet or clip art software:
a. if you know that no one will know.
b. if you save it as an “image” and give it a new name.
c. as long as it is confirmed to be “royalty free”.
d. you cannot copy any photograph, artwork, or image without permission.

Answers

Answer:

1. so that it may be archived

2.to pass out to all your students

3.if you relate it to your lessons

4.as long as you've purchased it and you are using it for back up copy

5.C

Describe some common types of charts.​

Answers

Bar chart.
Pie chart.
Line chart.

Answer:

The four most common are probably line graphs, bar graphs and histograms, pie charts, and Cartesian graphs. They are generally used for, and are best for, quite different things.

Explanation:

Line chart- A graph with points connected by lines to show how something changes in value: • as time goes by, • or as something else changes.

Example: how you are improving at a quiz each day.

Bar chart- A graph drawn using rectangular bars to show how large each value is. The bars can be horizontal or vertical. It is a really good way to show relative sizes. We can use bar graphs to show the relative sizes of many things, such as what type of car people have, how many customers a shop has on different days and so on.

Histogram- a graphical display of data using bars of different heights. It is similar to a Bar Chart, but a histogram groups numbers into ranges . The height of each bar shows how many fall into each range.

Pie chart- a special chart that uses "pie slices" to show relative sizes of data. It is a really good way to show relative sizes.

Cartesian chart- This is a type of chart that uses coordinates to pinpoint where something is on a map or graph. Using Cartesian Coordinates we mark a point on a graph by how far along and how far up it is.

Which activity is performed during high-level design in the V-model?
A. gathering user requirements
B. understanding system design
C. understanding component interaction
D. evaluate individual components
E. design acceptance test cases

Answers

Answer:

B or E don't sure which one

Which item would not generate a desktop alert by default in Outlook 2016?

new contact created
meeting request received
email received
task assignment received
i couldn't find this awnser and my teacher is extending our test period for another 20 minutes. please help

Answers

Answer:

New contact created does not generate a desktop alert by default.

Explanation:

edg.2021

Answer:

A

Explanation:

Can you all help me with this?

Answers

Answer:

(1)mobile smart phone.

(2)server computer.

(3)desktop computer

(4)laptop computer

(5)all in one computer

What's wrong with these codes in code HS Karel challenges(7.1.2. Racing Karel) Codes: //Below is the program that have Karel move around the race track 8 times, and end in his starting location. Everytime Karel hits a corner, he will put a ball down. At the end there should be 8 balls on each corner. function start(){ for(var i = 0; i < 5; i++){ ballSet(); wallRun(); turnLeft(); } function wallRun(){ while(frontIsClear()){ move(); } } function ballSet(){ putBall(); } }

Answers

Answer:

The program only runs 5 five since the for loop statement is limited to loop only five times.

Explanation:

In programming, a for-loop statement is used to repeat a collection of events a definite number of times. The number of loops is specified and compared with a variable to execute a block of code.

The for-loop statement in the code above declares and initializes a variable "i" to zero, runs the block of code, and increments by one if it is less than 5.

To make it run eight times, the value five should be changed to 8 instead.

Answer: you have to change the 5 to 8 since its telling you to do it 8 times

Explanation: for(var i = 0; i < 5; i++) should be for(var i = 0; i < 8; i++)

Do all careers or professions need computer science?

Answers

Answer:

no computer science is only needed for coders and engineers not for all is needed ok or one thing is that you study for your knowledge ok

Explanation:

hope it helps you

please mark me as brainlist

Pls help I’m not trying to fail this

Answers

Answer:

B makes the most sense to me

Explanation:

What was the biggest challenge you faced in getting to where you are today and how did you overcome it? Peer counseling

Answers

The biggest challenge I still am faced with today is loosing weight, it can be different for everyone but that is mine. I overcomed it by eating a lot better and not so much junk food.

In a series circuit, resistance is?

Answers

Answer:

In a series circuit, the total resistance is equal to the sum of all resistances.

Explanation:

The same current passes through each resistor, so each resistor does its job as you would expect.

For Example:

a series circuit has a 2 Ω (ohm) resistor, a 5 Ω resistor, and a 7 Ω resistor. The total resistance of the circuit is 2 + 5 + 7 = 14 Ω.

Larry has created a web page using HTML 4.01. He hasn’t included the declaration in the file. When he opens the page in a browser, Larry sees a page load error. Why does Larry need to use the declaration in an HTML file?
A.
to define the HTML version in which the page is written
B.
to define the web language in which the page is written
C.
to tell the browser what the content is
D.
to check whether the code is error-free

Answers

Answer:

To define the html version in which the page is written.

A type of topology in which all the systems a connected a main cable ​

Answers

Answer:

Bus topology uses one main cable to which all nodes are directly connected. The main cable acts as a backbone for the network. One of the computers in the network typically acts as the computer server. The first advantage of bus topology is that it is easy to connect a computer or peripheral device.

Sam works in a real estate office. An offer comes in on a house but the homeowners are on vacation. He needs the homeowners to sign a document to accept the offer. What should Sam do?

Answers

Answer:

Sam should send a digital document and request a signature. The could be fax or even an image printed out, if neither is possible get in contact with eh owner and his lawyer for more help.

Explanation:

Answer:

Sam should call the homeowners’ cell phone to inform them of the offer and fax a copy of the document using the office fax machine. The homeowner should sign the document and fax it back. Sam may also conduct an Internet search to find the fax machine closest to the client.

Explanation:

got it right on edge

A loan of $12000 was borrowed from the bank at 14% per annum calculate the interest on the loan at the end of the first year ?​

Answers

Answer:

lmasjsjsjssjjssjjssjsjjsksakkalaaooaa

Loan borrowed = $12,000

Percentage of interest on the loan per annum = 14%

We know that :

[tex]\color{hotpink}\tt \: Simple \: interest = \color{plum}\frac{principal \times rate \times time}{100} [/tex]

In this case :

principal = $12000rate = 14%time = 1 year

Simple interest at the end of the first year :

[tex] = \tt \frac{12000 \times 14 \times 1}{100} [/tex]

[tex] = \tt \frac{168000}{100} [/tex]

[tex]\color{plum}\tt = \$1680[/tex]

Thus, interest = $1680

Therefore, total interest on the loan at the end of one year = $1680

What is Binary



A part of a computer


A base 2 number system


A computer program


Software for a computer

Answers

The answer to your question would be B. A base 2 number system.

characteristics of the printer​

Answers

Important printer characteristics include resolution, speed, color, and cache memory.

1. Visual design and font/background are both essential and considered vital for the success of a web. If you are the developer, which of the two will you be focused on?

Answers

Answer:

As a developer, I'd be focused on the two starting with the front end.

Explanation:

A front-end developer simply is a user-end or client-side developer. A front-end person in web design is responsible for how a website looks and feels like, essentially, the websites' users first impression.

This is a huge task and can be very daunting even for the best developers. Whilst the back-end or the engine of a website is critical and indispensable, it is important for a developer to master the principles of front-end development first as that gives him a better perspective as to how they can better create and configure a matching or suitable back end.

Most if not all are designed to achieve a particular purpose e.g.

Increase salescommunicate informationtrainingelicit information etc

The ease with which the user is able to interact with the website will determine the extent to which the purpose of the website is achieved.

Some of the qualities of a great user interface the front end developer must keep in mind are:

Clarity Conciseness Familiarity  EfficiencyConsistency Attractiveness

Back-end has to do with the part of the website called the server.

In addition to the server, there are two other critical components of the back-end of the website:

Application and Database.

Together, these three contribute to ensuring that you have a functional website. The server, application and database, all control what happens on the front end and results in what the user will see via the browser.

There are many high-functioning websites today that have very poor interfaces.  A poor interface is a guarantee that people will spend less time on the website.

Conclusively, both ends are indispensable, as with most things, however, one should seek to understand how the user thinks and feels in relation to how they like to use a website before doing into the back-end to make that possible.

Cheers

There are different kinds of designs. As a developer, my Visual design would focus more on background.

Visual design is known to be a kind of design that strike equality between unity and variety. The use of design elements to work on the background and when done properly, gives users a nice experience.

Visual design is one that act to improve the design's or the product's aesthetic feeling.

Learn more about Visual design from

https://brainly.com/question/1332211

What is the result of the following code fragment?
BigInteger a = new BigInteger ("10");
BigInteger b = new BigInteger ("25");
a.multiply(b);
a.add(b);
System.out.println(a);


A. 10
B. 35
C. 250
D. 275

Answers

Answer:

D

Explanation:

I don't know the language, but it is clear what is going on.

It looks like you are defining a value for a in both commands.

a.multiply(b); looks like you take the value in a (which is 10) multiply it by 25 and put the result back in a. So so far we have 10 * 25 = 250

Note the next command

a.add(b)

looks like you take the current value in a(which is now 250)

and put the value of b (which has not been changed. It is still 25) and put that in a (which is 250).

The result is 250 + 25 = 275

The answer is D. Since I only understand the logic, if this answer is wrong, I wish you'd leave a note.

Whats the difference between Input and Output? Give and example of an example on a M:B​

Answers

Answer:

Entrar en algún lugar no es como irse de algún lugar, o qué tipo de pregunta significa para mi acción

HELLLP PLEASEEEEEEEEE

Answers

Answer:

torque

a twisting or turning force.

Hope it will help :)

Mediante el contacto de las ruedas dentadas un engranaje transmite un movimiento a. Rectilíneo b. Circular c. Ondulatorio

Answers

Answer:

La respuesta es b: circular

Explanation:

Las ruedas dentadas tienen dientes que rodean a todo el perímetro de la rueda , esto logra que las ruedas dentadas entren en contacto entre ellas sin causar fricción,el movimiento que realizan es circular.

Reading a news release about a product is an example of
research.

Answers

Answer:

Yes, it is true, because it informs you

Explanation:

Which actions changed the look of the following word?

A. The Spelling & Grammar function marked the word as an error.
B. The style of the word was set to underline.
C. The user changed the font size.
D. The word was set in italics, and then underlined.

Answers

Answer:

D

Explanation:

The actions applied to change the look of the word are:

1. It was set to italics. This can be done easily by highlighting the word => press Ctrl + I together on the keyboard.

2. Next is to set to underline. While still highlighted => press Ctrl + U together in the keyboard.

Answer:

D

Explanation:

Other Questions
when determining whether to invest in a taxable or nontaxable security, which of the following statements is correct? Determine the TAYLORS EXPANSION of the following function:9z3(1 + z3)2 .HINT: Use the basic Taylors Expansion 11+u = [infinity]n=0 (1)nun to expand 11+z3 and thendifferentiate all the terms of the series and multiply by 3z.3 Research on the life-span development of self-esteem suggests that___O older men are less accepting of the shortcomings of their bodies than young men areO older women express less body esteem than older men doO the self-esteem of males tends to be higher than that of femalesO an inflated self-esteem is most often seen in adolescents In Database.cpp:You do not have to implement the destructor.Implement the function addStatePark(), which should dynamically create a new StatePark object and add a pointer to the object to the member vector stateParkList.Implement the function addPassport(), which should dynamically create a new Passport object and add a pointer to the object to the member vector camperList.Implement the function addParkToPassport(), which takes in two parameters camperName and parkName. The function should search the member vectors of the database for a match for both, then use the addParkVisited() function to add the park to the campers list of visited parks. If one and or both of the parameters are not found, do not make any changes to the database. a firm's implicit cost is defined as the ___________ cost of nonpurchased inputs, such as the entrepreneur's time and personal funds. Species such as the dusky seaside sparrow, the passenger pigeon, and the woolly mammoth are extinct. Populations of other species have declined to the point where they are designated as threatened or endangered. Identify one threatened or endangered species and explain why its population has declined. Describe three characteristics of organisms that would make them particularly vulnerable to extinction. Present three arguments in favor of the maintenance of biodiversity. Name and describe one United States federal law or one international treaty that is intended to prevent the extinction of species An unfavorable direct labor rate variance may be caused by all of the following excepta. None of these choices are correct. b. improper use of employees. c. improper scheduling of employees. d. shortage of skilled employees. Is there evidence of hinging present here? [46]. O A Yes o B No. CSM Tech Publishing has four buildings connected by fiber-optic cabling and 12 subnets connected by several routers running RIPv2. One building has flooded, so employees and their equipment have moved to a temporary building on the same site. A router with three interfaces in the flooded building was also damaged. There are no spare routers, and the router can't be replaced for several days. Five servers running Windows Server 2016 have been moved to the temporary building. One of these servers is available as a spare or for other purposes. What can you do to solve your routing problem? Be specific about how you would carry out your solution, and state whether you would use static or dynamic routing Why did colonists feel the Articles of Confederation were necessary even though the Declaration ofIndependence was already written?O The Declaration of Independence outlined a system of government but did not specify how much power thatgovernment could have.O The Declaration of Independence determined individual rights but did not discuss how those rightsinfluenced others.O The Declaration of Independence called for a federal system of government but did not plan for the role ofindividual states.O The Declaration of Independence outlined a relationship between individuals and the government but didnot detail the power and control of that government. The exchange rate is .7639 U.S. dollars per Brazilian real. How many U.S. dollars are needed to purchase 7,000 Brazilian reals?a. $8,330.46 b. $9.163.50 c. $7,255.40 d. $5,347.30 e. $5,617.30 All of the following are among ethical issues of AI except:a. AI biasb. AI mistakesc. Wealth inequalityd. All of the above 1. like most economists, keynes studied the great depression by studying markets. True or false? A solid cylinder of mass 2.50 kg and radius 50.0 cm rotates at 2750 rpm about its cylindrical axis. What is the angular momentum of the cylinder?90.0 kg m2/s1.72x102 kg m2/s180 kg m2/s1.30x104 kg m2/s The angle of repose for fine sand is [x] degrees. Insert a number. You need to be accurate to within 2 degrees (no partial degrees please - only whole numbers 90, 91 etc.).The ground motion in a Richter magnitude 7 earthquake is [x] times larger than in a Richter magnitude 4 earthquake. an iterator of the iterator type that gives you read/write access to the element to which the iterator points is known as a(n) TRUE/FALSE. Depreciation is a reduction in value of an asset which reflects its actual usage during ownership. Answer these 3 questions if not able to answer all try question 10 thank you In the factory where you work, the specified diameter of an iron dowel is 0.345 inches, with a tolerance of 0.01 inches. What would be an appropriate range of values for the diameter of the iron dowel?between 0.245 and 0.445between 0.33 and 0.36between 0.335 and 0.355between 0.344 and 0.346between 0.345 and 0.365 An exponential random variable has an expected value of 0.5.a. Write the PDF of .b. Sketch the PDF of .c. Write the CDF of .d. Sketch the CDF of .