answer.
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
vfiekz [6]
2 years ago
14

Assign courseStudent's name with Smith, age with 20, and ID with 9999. Use the PrintAll member function and a separate cout stat

ement to output courseStudents's data. End with a newline. Sample output from the given program: Name: Smith, Age: 20, ID: 9999
Computers and Technology
2 answers:
agasfer [191]2 years ago
7 0

Answer:

Following are the program in c++

;#include <iostream> // header file

#include <string>

using namespace std;

class student // class

{

   public:

   int ID,age ; // variables

   string courseStudentsname;

   student() // constructor initialize the member

   {

     courseStudentsname="Smith";

     age=20;

     ID=9999;

   }

   void PrintAll() //PrintAll()  function

   {

cout << "Name: " <<courseStudentsname;

cout << ", Age: " << age;

cout << ", ID: " << ID;

}

};

int main() // main function

{

   student e; // create object and call default constructor

   e.PrintAll(); // call the PrintAll() function

   return 0;

}

Explanation:

In the given program we create a three variable inside the class student and declared three variable  ID,age of int type and courseStudentsname of string type after that we create  a constructor and initialize them as value is given in question and finally create a  PrintAll member function which  separate cout statement to output .In the main function create a object class student and call the PrintAll function.

Output:

Name: Smith, Age: 20, ID: 9999

Elodia [21]2 years ago
6 0

Answer:

Following are the program in the C++ Programming Language:

#include <iostream> //header file

using namespace std; //namespace

class Students //define class

{public: //access modifier

 int id,a ; //set variables

 string courseStudentsname; //set variables

 Students() //set constructor

 {

   courseStudentsname="Smith"; //initialize the value

   a=20;  //initialize the value

   id=9999; //initialize the value

   cout<<endl;

 }

 void PrintAll() //define function

 {

   cout << "Name: " <<courseStudentsname<<endl; //print output

   cout << "Age: " << a<<endl; //print output

   cout << "ID: " << id; //print output

 }

};

int main() //define main function

{

 Students obj; //set object and call constructor

 obj.PrintAll(); // call function through object

 return 0;

}

<u></u>

<u>Output</u>:

Name: smith

Age: 20

ID: 9999

Explanation:

Here, we define class "Students" inside it.

  • we define two integer type variable "a" for age of the students and "id" for the id of the students and then we set a string type variable "courseStudentsname" for name of the students.
  • we set the constructor in which we assign the value to the variables.
  • we set the function 'PrintAll()' in which we print all the variables.

Finally, we define the "main()" Function in which we create the object of the class "obj" and call the the "PrintAll()" through the object of the class.

You might be interested in
Using Word, Maureen is writing an outline of a presentation she plans to give to her company. She will be showing a video during
Grace [21]
You don't need a tool to place images in Word. Simply paste them in your document.
5 0
2 years ago
Read 2 more answers
"There are no longer mature industries; rather, there are mature ways of doing business," he is referring to the high demand of
yanalaym [24]

Hi, you've asked an incomplete and unclear question. However, I provided the full text below.

Explanation:

The text reads;

<em>"When Porter says “There are no longer mature industries; rather, there are mature ways of doing business,” he is referring to the high demand for creativity and innovation in the market. Earlier we used to be more concerned about the hardware and the physical product rather than its information content, But now as a business, we need to provide more informative content with the product.</em>

<em>Like General Electric offers dedicated customer service for its line of goods which differentiates it from its rivals. Similarly, shipping companies like UPS now offer us to track the location of our package on a live map. This is what we call a mature business and how we can differentiate ourselves and stand out in the highly competitive market by using Information and Technology..."</em>

4 0
2 years ago
Which are factors that go into a project plan? Choose four answers.
USPshnik [31]

Factors that go into a project plan

  • Estimate the scope of work, based on similar projects.
  • Make sure everyone takes responsibility.
  • Creating and defining team goal
  • Working to a budget

Explanation:

Project Estimating  : Every project is different, but that doesn’t mean you have to start from zero each time. The best way to make sure you’re on the right track is to approach it from every angle. Consider similar projects, talk to your team, and understand what the client is expecting and how they’d like things to go.

Managing your team size  : A smaller team is usually preferable as it puts your project in the most ideal position to be completed on time and at the quality you expect, without burning out your team members. A smaller team also reduces the number of communication channels, which means there’s less opportunity for misinterpretation or people simply missing something.  

Planning and managing your team resources  : That said, there may be a time when you don’t have the right resources in-house to do the job. Either they are fully allocated to another project or no one has the right skill set. In this situation you have two options, either bring in freelance contractors or hire a new employee to fill the role.  

Creating and defining team goals  : The planning phase is when you’ll want to work with the team to understand what their individual goals are for the project. Is there something different they’d like to try? A test or new idea they’d like the chance to prove? Or perhaps a roadblock they want to avoid?

Scheduling Tasks to a Project Timeline  : The timeline of the project will largely be determined by the client, as they often have deadlines they need to hit to meet certain business goals that are simply out of your control. However, setting clear expectations and agreeing on the timing of key deliverables is crucial.

7 0
2 years ago
You learned that properly edited resumes are necessary for making a good impression on a university or a potential employer. Dis
Daniel [21]

Answer:

it will not be a good impression and it will be hard to look for a job

Explanation:

3 0
2 years ago
A time-saving strategy that helps define unfamiliar words involves using
yuradex [85]

The correct answer is A. Familiar words for clues

Explanation:

Finding unfamiliar words is common while reading, especially in texts that belong to a specific field such as medicine, technology, etc. This can be handled through multiple strategies such as using a dictionary, guessing the meaning of the word based on its parts, and using context clues.

In this context, one of the easiest and most time-saving strategy is the use of context clues that implies using the familiar words as clues to guess the meaning of an unfamiliar word. This is effective because in most cases the meaning of an unknown word can be determined using the context of the word or words around the unknown word. Also, this strategy takes little time because you only need to analyze the sentence or paragraph where the unknown word is. Thus, the time-saving strategy to define unfamiliar words involves using familiar words for clues.

6 0
2 years ago
Read 2 more answers
Other questions:
  • Name and summarize the four levels of administration necessary to keep human services organization operating smoothly
    9·2 answers
  • Kathy is a senior teacher in her school. She is conducting a group discussion between parents and teachers. Her role is to ensur
    12·2 answers
  • When a machine on the public network wants to reach the server at 172.30.0.10, which ip will it use?
    6·2 answers
  • Write a program that defines a type for a structure that stores information on a student in ENG EK 125. Declare two variables to
    8·1 answer
  • Write a program named SortWords that includes a method named SortAndDisplayWords that accepts any number of words, sorts them in
    10·1 answer
  • The OSI security architecture provides a systematic framework for defining security attacks, mechanisms, and services. True or F
    12·1 answer
  • Discuss the importance of following a well-integrated change control process on IT projects. What consequences can result from n
    14·1 answer
  • Write the notInVocab method. Assume that there are no duplicates in wordArray. You must call findWord and countNotInVocab approp
    10·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    9·1 answer
  • 4. Word Separator:Write a program that accepts as input a sentence in which all of thewords are run together but the first chara
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!