Essay Database

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

Date Submitted: 11/18/2004 01:50:16
Category: / Science & Technology / Computers and Cybernetics
Length: 2 pages (436 words)
/*********************************************************************** * 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 800,000 just like this GET BETTER GRADES
…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 custom written paper? Let our professional writers save your time.