Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Format in a C++ format for Windows Visual Studio 2017 Please Write a class named Student that has the following variables: name - a

Please Format in a C++ format for Windows Visual Studio 2017

Please Write a class named Student that has the following variables:

name - a string that hold the student's name

idNumber - an integer that holds the student's id number

major - a string that holds the students major

The class should have the following constructors:

A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: student name, ID number, and major.

A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: student name and ID number. The major should be assigned an empty string (" ").

A constructor that assigns empty strings (" ") to the name and major member variables and 0 to the idNumber member variable.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions