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++
/*********************************************************************** * 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
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; }