1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Aleonysh [2.5K]
2 years ago
13

Write a class "Dog" with a private int field called months and two public member functions setAge and GetStage. setAge takes as

argument monthsToSet and sets the member field months. setAge returns void. getStage is a const member function that takes no argument and returns a string "Puppy" if the dog is less than 9 months old, "Adolescence" if more than 9 and less than 13 months, "Adulthood" if more than 13 and less than 60 months and "Senior" otherwise. The main should create a Dog called Buddy, set its age to 14 and cout the string returned by GetStage.

Computers and Technology
1 answer:
expeople1 [14]2 years ago
3 0

Answer:

see explaination

Explanation:

#include <iostream>

using namespace std;

class Dog {

int months;

public:

void SetAge(int mnths);

string GetStage() const;

//FIXME: Add declarations of member functions and fields

};

//FIXME: Add definitions of member functions

void Dog::SetAge(int mnths)

{

months = mnths;

}

string Dog::GetStage() const

{

if(months<9)

return string("Puppy");

else if(months<13)

return string("Adolescence");

else if(months<60)

return string("Adulthood");

else

return string("Senior");

}

int main() {

Dog buddy;

buddy.SetAge(14);

cout << buddy.GetStage();

return 0;

}

See attachment for screenshot and output.

You might be interested in
When completing an application what color ink do you use
tankabanditka [31]

Black or blue pen would be appropriate.

5 0
3 years ago
Read 2 more answers
Write two sentences but each one having either computer in it or technology in it. You can use a word more than once in a senten
Ksju [112]

Answer:

Sentences:

1.My computer has a virus

2.Technology may take over the world someday

Explanation:

7 0
2 years ago
Read 2 more answers
The best time to visit a college is: A. during spring break. B. on a weekend. C. when the college is in session. D. during winte
GaryK [48]
When the college is in session
5 0
3 years ago
Read 2 more answers
A database program helps to ____________.
Juliette [100K]
D. A database is software which is designed to store massive amounts of data and organize them in such a way that information can easily be worked on (added, deleted, moved, etc...).
8 0
3 years ago
Read 2 more answers
HELP ASAP!!! 100 POINTS
malfutka [58]

Answer:

Below.

Explanation:

Up until a few weeks ago, I too was not aware of the extremely rich and entertaining variety of anime that existed. My first encounter with anime (outside Saturday morning cartoons) was when I was about nine years old. My mom took my siblings and I to see the Hayao Miyazaki film “Spirited Away.” At the time, I didn’t enjoy it at all. I thought it was boring, confusing, weird and creepy. Why? Because I was a child, and “Spirited Away” is not really a children’s film. Like many anime feature films, it is an experience better appreciated by mature viewers.

That isn’t to say that anime shouldn’t be viewed by children at all. If kids grow up watching anime, that’s fine. The problem for many kids is that they are raised on American animation with simple plots, flat characters and cheap comic relief. Then, when they encounter a Japanese animation with complex character development, deep themes, subtle dialogue and thought-provoking stories, they find it boring, as I did with “Spirited Away.”

In the course of the last several weeks, however, I have gone on a journey to discover some of the best that anime has to offer. As a student, I don’t have time to devote to an ongoing anime series, so this article will deal exclusively with feature films.

Going into this movie marathon, I predicted that I would gain a better appreciation for anime. But I had no idea how powerful and entertaining these films would be. There wasn’t one that I disliked, and many of them instantly joined my list of all-time favorite movies as soon as the credits rolled. All these movies featured not only beautiful animation, but also interesting and authentic characters, as well as expertly crafted narratives.

One of the misconceptions about anime is that it all looks the same. This couldn’t be further from the truth. Although anime as a genre is easily recognizable, there is a wide variety of styles and techniques that can give each film a unique look and feel.

Take, for example, “The Tale of the Princess Kaguya.” The film is an adaptation of a Japanese folktale. The studio opted to go with a raw animation style, with lots of watercolors and negative space, in order to invoke the aesthetic of an ancient scroll. It’s a very minimalist style, but it works beautifully, and it allows the director to portray the story in a way that wouldn’t be possible with CGI animation.

In one scene, a character grows increasingly upset, and as she does, the animation itself becomes more and more wild and untamed until it eventually devolves into a mess of scribbles. Very few films are able to so successfully intertwine the content of their film with the form in which they present it.

A lot of people might say they prefer American animation because “it looks more realistic.” In Japanese animation, they say, the characters all have silly, exaggerated faces and features. Really? Let’s do a side-by-side comparison.

These two films, “When Marnie Was There” and “Frozen,” came out within one year of each other. Frozen was one of the most popular American animated films in years. “When Marnie Was There” is (maybe) the last film to be produced by anime legends Studio Ghibli.

Looking at the two, which is more realistic? Well, it depends on what you mean by the word ‘realistic.’ If realistic to you means how close an image comes to being photo-realistic (indistinguishable from real life) then obviously “Frozen” is the more realistic of the two. On the other hand, I look at this and see one image that was made by a computer program (with some human help) and another image that appears to have been drawn by hand. For me, at least, the image on the right has a human quality to it that makes it much more “real” than the image on the left, which can easily be reduced to a bunch of ones and zeroes.

Don’t get me wrong. I enjoy Disney and Pixar movies as much as the next guy. But to dismiss anime for not “keeping up” with American animation just doesn’t make sense. Japan hasn’t undertaken the quest for the unattainable photo-realism, not because they’re incapable, but because they know that traditional animation as an art form doesn’t need to wholly rely on computers to be beautiful and engaging.

A common trend amongst all the anime films I watched is that the characters are believable. They do things that normal, everyday people would do. They say things that real people do. Their actions and choices make sense. And because they are so believable, they become relatable. As the movies progress, you really feel a connection with these characters.

7 0
3 years ago
Read 2 more answers
Other questions:
  • A car with a 20-gallon gas tank averages 23.5 miles per gallon when driven in town and 28.9 miles per gallon when driven on the
    9·1 answer
  • It is okay to use a dust rag when cleaning the inside of a computer.
    9·2 answers
  • What command limits structural changes, such as adding, deleting, or moving sheets, that can be made in a workbook?
    13·1 answer
  • The person in charge of recording the sound should always
    15·1 answer
  • 1. Extract title Write a function extract_title that takes one parameter, the filename of a GenBank formatted file, and returns
    14·1 answer
  • Technologies can offer safety and protection for people
    11·1 answer
  • Combining two or more cells to make one is called​
    8·1 answer
  • im past 1000 pts and it still hasnt up my rank from VIRTUOSO to EXPERT can someone explain and yes i have brainly plus
    7·2 answers
  • A rectangle indicates a single process.true or false​
    7·2 answers
  • In Python, the data structure that stores elements of the same data type is called an array.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!