For this assignment your are to implement the Pet Class described in Programming Exercise 1, starting on page 494 in our textbook. Additionally your program will allow users to enter the pet's information until the user enters in the string "quit". Once the user enters quit the program will print out a summary of all the information that has been entered. Your program should not assume any maximum number of pets that can be added. Items in blue designate output. Items in red designate computer input. Example Test Case: Enter name, type and age of your pet: Name: Momo Type: Bird Age: 33 Enter "quit" to stop entering. Anything else to continue. a Enter name, type and age of your pet: Name: Pooh Type: Dog Age: 8 Enter "quit" to stop entering. Anything else to continue. quit SUMMARY: Name: Momo, Type: Bird, Age: 33. Name: Pooh, Type: Dog, Age: 8.

Answers

Answer 1

Answer:

ohhhvhhffifyuddfuiicfdguc


Related Questions

When developing an algorithm to solve a problem, which of these steps can help you design the solution for the problem?

Answers

Answer:

3 is the answer please mark me brainlist

Explanation:

ok

what is a web client​

Answers

Answer:

A Web client typically refers to the Web browser in the user's machine or mobile device. It may also refer to extensions and helper applications that enhance the browser to support special services from the site.

hope this helps

have a good day :)

Explanation:

A Web client typically refers to the Web browser in the user's machine or mobile device. It may also refer to extensions and helper applications that enhance the browser to support special services from the site.

Here's an example:

Your web browser is an example of a web client. The remote machine containing the document you requested is called a web server. The client and server communicate using a special language (a "protocol") called HTTP.

Good luck!

First one who answers gets brainiest

Answers

Answer:

thank for the point anyway

Why is it important to isolate evidence-containing devices from the internet?
To save the battery
To hide their location
Devices can be remotely locked or wiped if connected
It is not important to isolate the devices

Answers

Answer:

C.

Devices can be remotely locked or wiped if connected

Explanation:

Write a function template that accepts an argument and returns its absolute value. The absolute value of a number is its value with no sign. For example, the absolute value of -5 is 5, and the absolute value of 2 is 2. Test the template in a simple driver program being sure to send the template short, int, double, float, and long data values.

Answers

Answer:

The function in Java is as follows:

public static double func(double num){

       num = Math.abs(num);

       return num;

   }

Explanation:

This defines the function

public static double func(double num){

This determines the absolute function of num

       num = Math.abs(num);

This returns the calculated absolute value

       return num;

   }

write a object oriented c++ program

Answers

Answer:

I don't know how to code C++

Explanation:

Who is MrBeast?
Answer the question correctly and get 10 points!

Answers

Answer: MrBeast is a y0utuber who has lots of money

Explanation:

Answer:

He is a You tuber who likes to donate do stunts and best of all spend money.

It's like he never runs out of money.

Explanation:

PLEASE HELP ME ASAP ITS IMPORTANT

Answers

I’m 80% sure it’s the last one, I’ve studied this last year I cant quite grasp the memorie
The answer is E. Data encryption ensures the validity of the website and inserts blocks that prevent hackers and viruses from messing with the website.

A "Pythagorean Triple" is a set of integers which will make the sides of a right triangle when used in the calculation of Pythagoras’ Theorem. For example, "3, 4, 5" is a Pythagorean Triple. Write a short "C" function that takes three decimal integers and determines if they are a "Pythagorean Triple". The function should return a boolean which is true if the three numbers fit the pattern, and false otherwise. DO NOT write a "main()" method in this code! [15 pts.]

Answers

Answer:

The function in C is as follows:

bool checkPythagoras(int a, int b, int c ){

  bool chk = false;

  if(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){

      chk = true;

  }

  return chk;

}

Explanation:

This defines the function. It receives three integer parameters a, b and c

bool checkPythagoras(int a, int b, int c ){

This initializes the return value to false

  bool chk = false;

This checks if the three integers are Pythagorean Triple

  if(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){

If yes, the return value is updated to true

      chk = true;

  }

This returns true or false

  return chk;

}

Write a Java program named Problem 3 that prompts the user to enter two integers, a start value and end value ( you may assume that the start value is less than the end value). As output, the program is to display the odd values from the start value to the end value. For example, if the user enters 2 and 14, the output would be 3, 5, 7, 9, 11, 13 and if the user enters 14 and 3, the output would be 3, 5, 7, 9, 11, 13.

Answers

Answer:

hope this helps

Explanation:

import java.util.Scanner;

public class Problem3 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter start value: ");

       int start = in.nextInt();

       System.out.print("Enter end value: ");

       int end = in.nextInt();

       if (start > end) {

           int temp = start;

           start = end;

           end = temp;

       }

       for (int i = start; i <= end; i++) {

           if (i % 2 == 1) {

               System.out.print(i);

               if (i == end || i + 1 == end) {

                   System.out.println();

               } else {

                   System.out.print(", ");

               }

           }

       }

   }

}

Suppose that a minus sign in the input indicates pop the stack and write the return value to standard output, and any other string indicates push the string onto the stack. Further suppose that following input is processed:
this parrot - wouldn't voom - if i put -- four thousand --- volts - through it -
What are the contents (top to bottom) left on the stack?
a. through wouldn't this.
b. this wouldn't through.
c. it through wouldn't.
d. it through volta.
e. volts through it.

Answers

Answer:

e. volts through it

Explanation:

volts through it

The contents (top to bottom) left on the stack is volts through it. Thus, option E is correct.

What is standard output?

When a computer program begins execution, standard streams are interconnected input and output channels of communication between the program and its surroundings. The three I/O connections are known as standard input (stdin), standard output (stdout), and standard error (stderr).

A negative sign in the input indicates that the stack should be popped, and the return value should be sent to standard output, whereas any other string means that the string should be pushed into the stack. Assume that the following input is processed: this parrot would not voom if I pushed — four thousand —- volts - through it.

The contents of the stack (from top to bottom) are volts via it. As a result, option E is correct.

Learn more about standard output here:

https://brainly.com/question/30054426

#SPJ5

Java 2D Drawing Application. The application will contain the following elements:
a) an Undo button to undo the last shape drawn.
b) a Clear button to clear all shapes from the drawing.
c) a combo box for selecting the shape to draw, a line, oval, or rectangle.
d) a checkbox which specifies if the shape should be filled or unfilled.
e) a checkbox to specify whether to paint using a gradient.
f) two JButtons that each show a JColorChooser dialog to allow the user to choose the first and second color in the gradient.
g) a text field for entering the Stroke width.
h) a text field for entering the Stroke dash length.
I) a checkbox for specifying whether to draw a dashed or solid line.
j) a JPanel on which the shapes are drawn.
k) a status bar JLabel at the bottom of the frame that displays the current location of the mouse on the draw panel.
If the user selects to draw with a gradient, set the Paint on the shape to be a gradient of the two colors chosen by the user. If the user does not chosen to draw with a gradient, the Paint with a solid color of the 1st Color.
Note: When dragging the mouse to create a new shape, the shape should be drawn as the mouse is dragged.

Answers

Answer:

sadness and depression is my answer

Explanation:

The speed density fuel injection system uses the blank sensor as the primary sensor as the primary sensor to determine base pulse width

A. Map
B TP
C Maf
D baro

Answers

Answer:

A) Map

Explanation:

All gasoline (petrol) fuel systems need ways or method that will be calculating amount of the air that is entering the engine.This is true as regards mechanical fuel injection, carburetors and electronic fuel injection.Speed density system fall under one of this method. "Speed" in this context means the speed of the engine while "density" means density of the air. The Speed is been measured using the distributor, crankshaft position sensor could be used here. The Density emerge from from measuring of the air pressure which is inside the induction system, using a typical "manifold absolute pressure" (MAP) sensor as well as air temperature sensor. Using pieces of information above, we can calculate

mass flow rate of air entering the engine as well as the correct amount of fuel can be supplied. With this system,

the mass of air can be calculated. One of the drawback if this system is that

Any modification will result to incorrect calculations. Speed-Density can be regarded as method use in estimation of airflow into an engine so that appropriate amount of fuel can be supplied as well as. adequate spark timing. The logic behind Speed-Density is to give prediction of the amount of air ingested by an engine accurately during the induction stroke. Then this information could now be used in calculating how much fuel is required to be provided, This information as well can be used in determining appropriate amount of ignition advance. It should be noted The speed density fuel injection system uses the Map sensor as the primary sensor to determine base pulse width

Rideshare companies like Uber or Lyft track the x,y coordinates of drivers and customers on a map. If a customer requests a ride, the company's app estimates the minutes until the nearest driver can arrive. Write a method that, given the x and y coordinates of a customer and the three nearest drivers, returns the estimated pickup time. Assume drivers can only drive in the x or y directions (not diagonal), and each mile takes 3.5 minutes to drive. All values are doubles; the coordinates of the user and of the drivers are stored as arrays of length 2. 289222.1780078.qx3zqy7

Answers

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

 public static void main (String[]args){

   Scanner input = new Scanner(System.in);

   double user[] = new double[2];    double dr1[] = new double[2];

   double dr2[] = new double[2];    double dr3[] = new double[2];    

   System.out.print("Enter user coordinates: ");

   for(int i =0;i<2;i++){        user[i] = input.nextDouble();    }

   System.out.print("Enter driver 1 coordinates: ");

   for(int i =0;i<2;i++){        dr1[i] = input.nextDouble();    }

   System.out.print("Enter driver 2 coordinates: ");

   for(int i =0;i<2;i++){        dr2[i] = input.nextDouble();    }

   System.out.print("Enter driver 3 coordinates: ");

   for(int i =0;i<2;i++){        dr3[i] = input.nextDouble();    }

   double dr1dist = Math.abs(user[0] - dr1[0]) + Math.abs(user[1] - dr1[1]);

   double dr2dist = Math.abs(user[0] - dr2[0]) + Math.abs(user[1] - dr2[1]);

   double dr3dist = Math.abs(user[0] - dr3[0]) + Math.abs(user[1] - dr3[1]);

   System.out.println("Estimated pickup time of driver 1 "+(3.5 * dr1dist)+" minutes");

   System.out.println("Estimated pickup time of driver 2 "+(3.5 * dr2dist)+" minutes");

   System.out.println("Estimated pickup time of driver 3 "+(3.5 * dr3dist)+" minutes");

 }

}

Explanation:

The following array declarations are for the customer and the three drivers

   double user[] = new double[2];    double dr1[] = new double[2];

   double dr2[] = new double[2];    double dr3[] = new double[2];    

This prompts the user for the customer's coordinates

   System.out.print("Enter user coordinates: ");

This gets the customer's coordinate

   for(int i =0;i<2;i++){        user[i] = input.nextDouble();    }

This prompts the user for the driver 1 coordinates

   System.out.print("Enter driver 1 coordinates: ");

This gets the driver 1's coordinate

   for(int i =0;i<2;i++){        dr1[i] = input.nextDouble();    }

This prompts the user for the driver 2 coordinates

   System.out.print("Enter driver 2 coordinates: ");

This gets the driver 2's coordinate

   for(int i =0;i<2;i++){        dr2[i] = input.nextDouble();    }

This prompts the user for the driver 3 coordinates

   System.out.print("Enter driver 3 coordinates: ");

This gets the driver 3's coordinate

   for(int i =0;i<2;i++){        dr3[i] = input.nextDouble();    }

This calculates the distance between driver 1 and the customer

   double dr1dist = Math.abs(user[0] - dr1[0]) + Math.abs(user[1] - dr1[1]);

This calculates the distance between driver 2 and the customer

   double dr2dist = Math.abs(user[0] - dr2[0]) + Math.abs(user[1] - dr2[1]);

This calculates the distance between driver 3 and the customer

   double dr3dist = Math.abs(user[0] - dr3[0]) + Math.abs(user[1] - dr3[1]);

The following print statements print the estimated pickup time of each driver

  System.out.println("Estimated pickup time of driver 1 "+(3.5 * dr1dist)+" minutes");

   System.out.println("Estimated pickup time of driver 2 "+(3.5 * dr2dist)+" minutes");

   System.out.println("Estimated pickup time of driver 3 "+(3.5 * dr3dist)+" minutes");

Which security measure provides protection from IP spoofing?

A ______ provides protection from IP spoofing.

PLEASE HELP I need to finish 2 assignments to pass this school year pleasee im giving my only 30 points please

Answers

Answer:

An SSL also provides protection from IP spoofing.


List any two programs that are required to play multimedia products
List any two programs that are required to create multimedia products​

Answers

Answer:

the two programs to play multimedia products are;windows media player and VLC media player and the two programs to create multimedia products are;photoshop and PowerPoint

Other Questions
WILL MARK BRAINLIEST What is the radius, Diameter, Area, and Circumference of a 12 feet circle? (No links or fake answers, actually give me a right answer) The owner of the stand pays $8 for each hat , $0.10 for each post card, and $0.50 for each magnet. Write and expression for the total cost of the items. Which of these subjects is Adams best known for? Cityscapes Landscapes Oceanscapes Seascapes On a standardized exam, the scores are normally distributed with a mean of 250 anda standard deviation of 50. Find the 2-score of a person who scored 375 on the exam. NEED HELP ASAP 10 POINTSThe production, purchase, and sale of goods in a world-wide market is known as the _____. Huron has provided the following year-end balances: Cash, $29,000 Patents, $7,400 Accounts receivable, $9,400 Property, plant, and equipment, $98,400 Prepaid insurance, $4,100 Accumulated depreciation, $15,000 Inventory, $39,000 Retained earnings, 15,500 Trademarks, $13,100 Accounts payable, $8,000 Goodwill, $16,000 How much are Huron's current assets The Kings HawkA Even the worlds greatest leaders sometimes learn things the hard way. Eight hundred years ago a powerful king named Genghis Khan ruled an empire that stretched from eastern Europe to the Sea of Japan and included all of China. His armies marched on China and Persia, and Khan was known as the greatest king since Alexander the Great.B According to legend, one day Khan gathered some friends and servants and rode into the countryside to search for game. Everyone in the party had high hopes of bringing home enough meat for a great feast that night. In those days it was customary to bring a trained hawk along on hunting trips. On command, the hawk would leave its masters wrist and fly high into the sky. Then, using its exceptional eyesight, the hawk would spot its prey and swoop down on it, so the hunters would know where to follow.C On this trip the king had brought his favorite hawk. It was a hot summer day, and although the hunting party rode for hours, they had no luck finding game. At dusk they gave up and turned toward home. The king knew the area well, and while the hunting party took the fastest way home, the king rode off on his own between two large mountains, determined to have a successful hunt. In the valley, his hawk flew off.D As the king rode farther, he became parched and started looking for a spring of water. His thirst was growing, but the hot summer had dried up all the brooks that usually ran by the path. Finally, he spotted a trickle of water running over the edge of a steep rock. Quickly, he jumped from his horse, taking a small silver cup from his bag. He held the cup under the trickle of water until there was enough to drink.E However, as he raised the cup to his lips, there was a whooshing sound, and the cup was knocked from his hand to the ground. The king turned to see who could be responsible. Spotting his pet hawk, he wondered why the bird would do such a thing. Angrily, the king picked up the cup and again held it under the trickling water. This time he held the cup for just a few seconds before he began to raise it to his mouth. Just as the cup touched his lips, the hawk flew down again, rushed past the king, and again knocked the cup to the ground.F The king was very angry now. Again he filled the cup, and again the hawk kept him from having even the smallest drink. You awful bird! the king shouted. If you were near me I would kill you in an instant! As the king filled the cup for the fourth time, he spoke to the hawk. Now, you arrogant hawk, I warn you. If you value your life, let me drink. As he spoke, he held his sword ready. Again the bird flew down, knocking the cup from the kings hand; but this time, the king was ready. His sword flashed and the bird fell. The hawk dropped at his masters feet and died quickly.G That will teach you, said the king. Then Genghis Khan turned and looked for the cup, but it was nowhere to be found. I will drink now anyway, he said, and started climbing the steep rock toward the source of the water. It was a long climb, and the kings thirst grew and grew.H Finally, he reached the top and could see the water. As he walked closer, he could see something in the water. With one more step the king could see now that the huge thing was a dead snake, one of the most poisonous in his entire kingdom.I Now, the king stopped walking. He forgot his thirst, and his heart ached as he thought dismally of the dead hawk he had left lying on the ground below. He dropped his head and said, You were a true friend, Sir Hawk. You saved my life, and yet in anger I killed you. I will honor your memory and never forget the lesson you taught me.In paragraph A, the author most likely compares the king with Alexander the Great inorder to show that the kingA. was enormously powerfulB. hoped to become famousC. came from noble blood linesD. was humble despite his high position What is the area of khaptad lake Here is to gone as smile is to HELP PLEASE!! I WILL FAIL WITHOUT THIS please help like waaa everywhere it comes up that its impossible THIS IS ALSO PAST DUE PLEASE ANYONE HELP Explain how limiting growth is advantageous for the goldfishs survival in a home aquarium what are the most appealing parts of traveling into territory that, for your culture, is uncharted or unexplored Can you help me?? 3. Think of some famous spokespeople. Do you think they help sell products? Have anyof them done things that could actually hurt sales?4. Think about a kind of product (e.g., running shoes, an electric car, a smart phone,yogurt). What kind of mascot could help sell the product? Which function is the inverse of F(x) = b^x?HELP FAST If the age of person A is 7 years more than that of person B and the sum of there ages is 25 years old how old is person A ? (Brainlest) This is not addition by the way number 2regulating labor practices, improving housing and prison conditions, and equal rights for women and ethic minorities are objectives of which progressive platform?A. Efficiency and sanitationB. Fair Treatment of citizensC. State RightsD. Regulation of Wealth 1.Complete each sentence with the correct form of the Regular Verbs in parenthesesNosotros ________________ en la cafetera ( hablar)Single choice.(0.5 Points)hablohablashablamoshablas2.Complete each sentence with the correct form of the Regular Verbs in parenthesesUstedes __________________ bicicleta el sbado en el parque. ( montar)Single choice.(0.5 Points)montomontasmontamontan3.Complete each sentence with the correct form of the Regular Verbs in parenthesesMis amigos __________________ en la biblioteca. ( estudiar)Single choice.(0.5 Points)estudiasestudiaestudianestudiamos4.Complete each sentence with the correct form of the Regular Verbs in parenthesesYo _____________ hamburgueas con mis amigos. ( comer)Single choice.(0.5 Points)comocomescomecomen5.Complete each sentence with the correct form of the Regular Verbs in parenthesesMaria y yo ______________ espaol cada dia. ( aprender)Single choice.(0.5 Points)aprendoaprendemosaprendeaprendes6.Complete each sentence with the correct form of the Regular Verbs in parenthesesLos chicos ______________ en el estadio todos los domingos. ( correr)Single choice.(0.5 Points)corrocorrescorrecorren7.Complete each sentence with the correct form of the Regular Verbs in parenthesesT ____________ en Tucson? (vivir)Single choice.(0.5 Points)vivovivesvivevivimos8.Complete each sentence with the correct form of the Regular Verbs in parenthesesLos estudiantes ___________________ mucho en la clase de historia.( escribir)Single choice.(0.5 Points)escribioescribesescribenescribimos9.Complete each sentence with the correct form of the Regular Verbs in parenthesesYo _________________ la pizza con mi hermano. ( compartir)Single choice.(0.5 Points)compartocompartecompartscompartimos10.Complete the sentence with the correct form of SERElla _____________ muy estudiosa.Single choice.(0.5 Points)soyeresessomossois11.Complete the sentence with the correct form of ESTARMi hermana _______________ enferma hoy.Single choice.(0.5 Points)estoyestsestestamosestn12.Choose the correct translation of SER vs. ESTARHe is bored.Single choice.(0.5 Points)l est aburridol es aburrido13.Choose the correct translation of SER vs. ESTARThe boys are big.Single choice.(0.5 Points)los chicos son grandeslos chicos estn grandes14.Choose the correct conjugation to answer. Ella _____________ a la escuela.Single choice.(0.5 Points)voyvasvavanvais15.Choose the correct conjugation to answer. Mis amigos y yo ________________ al parque los domingosSingle choice.(0.5 Points)voyvasvamosvan16.Write the correct form of "IR"Las chicas ____________ al cine.Single line text.(1 Point)17.Write the correct form of "IR"T __________ a viajar con tus padres?Single line text.(1 Point)18.Choose the correct conjugationEllas ______Single choice.(0.5 Points)tengotienestienetenemostienen19.Choose the correct conjugationnosotros ______Single choice.(0.5 Points)vengovienesvenimosvens20.Write the correct form of "Tener"T _____________ muchos zapatos?Single line text.(1 Point)21.Write the correct form of "Tener"Nosotras _____________ mucho dinero.Single line text.(1 Point)22.Write the correct form of "Tener"Armando y Jos ___________ muchos libros.Single line text.(1 Point)23.What this expression means in Spanish" to be hungry"Single line text.(1 Point)24.What this expression means in Spanish" to be lucky"Single line text.(1 Point)25.What this expression means in Spanish" to be thirsty"Single line text.(1 Point) Explain why C graded neighborhoods are graded better then D neighborhoods.