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.
Answer: False
Explanation:
Registers are not optimized for capacity they are for speed. Registers are small storage space which is used to hold the value required by the cpu for processing. For making the value available immediately to the processor we have registers. There are many different types of registers.
They can study what the video game consoles are made up of and how they work so that way the can implement them into their work.
Answer:
The very first command contains an error.
Explanation:
The create query is used to create the table in the database. The syntax of the create query is :
create table tablename(column1 datatype,column2 datatype ........columnn datatype);
So there is a keyword table is missing in the given query.
so it is incorrect query.
INSERT INTO vehicletype VALUES (1,"truck","Ford",2000); This query is correct.
SELECT * FROM vehicletype; This query is also correct.