SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 2 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 09 Nov 2017 My Price 7.00

Rectangle that has two double-precision data members named length and width.

Can some one help be construct this program,

Construct a class named Rectangle that has two double-precision data members named length and width.

The class should have the following class functions:

a) A constructor with the default values of 1 for both length and width data members

b) An accessor function named showData() to set a rectangle's length and width

c) A mutator function named setData() to set the rectangle's length and width

d) A class function named perimeter() that calculates and displays the rectangle's perimeter

e) A class function named area() that calculates and displays the rectangle's area

Include the Rectangle class constructed in a working C++ program and exercise all functions. 

 

This is what i have so far,

#include "stdafx.h"

#include<iostream>

using namespace std;

class Rectangle

{

private:

double length;

double width;

 

public:

Rectangle(double = 1, double = 1);

void SetData();

void perimeter();

void Area();

void ShowData();

Answers

(5)
Status NEW Posted 09 Nov 2017 01:11 PM My Price 7.00

----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r y-----------our----------- in-----------ter-----------est----------- an-----------d b-----------uyi-----------ng -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll -----------be -----------qui-----------ckl-----------y

Not Rated(0)