Sample Essays & Free Papers For You

A reliable academic resource for high school and college students.
Essay database with free papers will provide you with original and creative ideas.

Displaying a cue and square of a number through functions in C++

Date Submitted: 11/18/2004 01:50:16
Length: 2 pages (436 words)
Views: 101486

/*********************************************************************** * 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 …

Is this essay helpful? Join now to read this particular paper and access over 480,000 just like it!

…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; }

Need a unique paper?