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

View Paper
ESSAY DETAILS Words: 436
Pages: 2
(approximately 235 words/page)

Essay Database > Science & Technology > Computers and Cybernetics
/*********************************************************************** * 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
Sign up for EssayTask and enjoy a huge collection of student essays, term papers and research papers. Improve your grade with our unique database!
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; }