Displaying a cue and square of a number through functions in C++
Title: Displaying a cue and square of a number through functions in C++
Category: /Science & Technology/Computers and Cybernetics
Details: Words: 436 | Pages: 2 (approximately 235 words/page)
Displaying a cue and square of a number through functions in C++
Category: /Science & Technology/Computers and Cybernetics
Details: Words: 436 | Pages: 2 (approximately 235 words/page)
/***********************************************************************
* file: 3-14.cpp *
* desc: C++ assignment *
* Author: Syed R Fayyaz *
* Date: September 26, 2003 *
* *
* Comment: Homework assignment # 7 *
**********************************************************************/
//Assigning header files that will be used in this program.
#include<conio.h>
#include<iostream.h>
#include<iomanip.h>
//Program began
int main()
{
//variable decleration section
intnw_pcqty,
mem_cardqty,
dsk_driveqty,
softqty;
double total,
nw_pc,
mem_card,
dsk_drive,
soft;
//constant section
const double NW_PCPRICE = 675.00,
MEM_CARDPRICE = 69.95,
DSK_DRIVEPRICE = 198.50,
SOFTPRICE = 34.98;
//Input …showed first 75 words of 436 total…
You are viewing only a small portion of the paper.
Please login or register to access the full copy.
Please login or register to access the full copy.
…showed last 75 words of 436 total…lt; "n";
cout << dsk_driveqty << "t" << "Disk Drive "
<< "tt" << " " << setw(7) << dsk_drive
<< "n";
cout << softqty << "t" << "Software "
<< "tt" << " "
<< setw(7) << soft << "n";
cout << "nn" << "tt" << "TOTAL"
<< "tt" << "$" << setw(6) << total;
return 0;
}