Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 1 Day Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 27 May 2017 My Price 6.00

Create a class template for a class that holds an object and the number of data elements

Create a class template for a class that holds an object and the number of data elements in the object. For example, if an Employee class has two data elements, an ID number and a salary, then the class template holds the number 2 and an Employee object; if a Student class contains 12 data elements, then the class template holds 12 and a Student. Code a standard input function for the object that displays a message on the screen— “You will be asked to enter X items”—where X is the number of data elements. Write a main()function that tests your template class with an integer and two programmerdesigned classes. Save the file as NumberOfFields.cpp.

 

 

Answers

(8)
Status NEW Posted 27 May 2017 02:05 PM My Price 6.00

-----------

Attachments

file 1495896286-Answer.docx preview (309 words )
C-----------rea-----------te -----------a c-----------las-----------s t-----------emp-----------lat-----------e f-----------or -----------a c-----------las-----------s t-----------hat----------- ho-----------lds----------- an----------- ob-----------jec-----------t a-----------nd -----------the----------- nu-----------mbe-----------r o-----------f d-----------ata----------- el-----------eme-----------nts----------- in----------- th-----------e o-----------bje-----------ct.----------- Fo-----------r e-----------xam-----------ple-----------, i-----------f a-----------n E-----------mpl-----------oye-----------e c-----------las-----------s h-----------as -----------two----------- da-----------ta -----------ele-----------men-----------ts,----------- an----------- ID----------- nu-----------mbe-----------r a-----------nd -----------a s-----------ala-----------ry,----------- th-----------en -----------the----------- cl-----------ass----------- te-----------mpl-----------ate----------- ho-----------lds----------- th-----------e n-----------umb-----------er -----------2 a-----------nd -----------an -----------Emp-----------loy-----------ee -----------obj-----------ect-----------; i-----------f a----------- St-----------ude-----------nt -----------cla-----------ss -----------con-----------tai-----------ns -----------12 -----------dat-----------a e-----------lem-----------ent-----------s, -----------the-----------n t-----------he -----------cla-----------ss -----------tem-----------pla-----------te -----------hol-----------ds -----------12 -----------and----------- a -----------Stu-----------den-----------t. -----------Cod-----------e a----------- st-----------and-----------ard----------- in-----------put----------- fu-----------nct-----------ion----------- fo-----------r t-----------he -----------obj-----------ect----------- th-----------at -----------dis-----------pla-----------ys -----------a m-----------ess-----------age----------- on----------- th-----------e s-----------cre-----------en-----------
Not Rated(0)