This website uses cookies to ensure you have the best experience. Learn more

Displaying A Cue And Square Of A Number Through Functions In C++

672 words - 3 pages

/************************************************************************ 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#include#include//Program beganint main(){//variable decleration sectionintnw_pcqty,mem_cardqty,dsk_driveqty,softqty;double total,nw_pc,mem_card,dsk_drive,soft;//constant sectionconst double NW_PCPRICE = 675.00,MEM_CARDPRICE = 69.95,DSK_DRIVEPRICE = 198.50,SOFTPRICE = 34.98;//Input sectioncout << "\t" << ...view middle of the document...

d ";cin >> softqty;//input closing sectioncout << "\n\n" << "\t\t"<< "*****************" << "\n";cout << "Thank you for shopping" << "\n"<< "Your sale reciept will be ready in a moment" << "\n";cout << "Please press any key to continue";getch();//calculation section//NW-PC calculationnw_pc = nw_pcqty * NW_PCPRICE ;//Memory Card calculationmem_card = mem_cardqty * MEM_CARDPRICE;//Disk drive calculationdsk_drive = dsk_driveqty * DSK_DRIVEPRICE;//Software calculationsoft = softqty * SOFTPRICE;//getting totaltotal = nw_pc + mem_card +dsk_drive + soft;// Setting the flagscout << setiosflags ( ios::fixed | ios::showpoint | ios::right )<< setprecision(2);//output sectionclrscr();cout << "\t"<< "*********************************"<< "\n";cout << "\t\t" << "New Wave Computers"<< "\n\n";cout << "Qty" << "\t" << " ITEM" << "\t\t\t"<< "COST" << "\n\n";cout << nw_pcqty << "\t" << "NW-PC"<< "\t\t\t" << "$"<< setw(7) << nw_pc << "\n";cout << mem_cardqty << "\t" << "Memory card "<< "\t\t" << " " << setw(7) << mem_card<< "\n";cout << dsk_driveqty << "\t" << "Disk Drive "<< "\t\t" << " " << setw(7) << dsk_drive<< "\n";cout << softqty << "\t" << "Software "<< "\t\t" << " "<< setw(7) << soft << "\n";cout << "\n\n" << "\t\t" << "TOTAL"<< "\t\t" << "$" << setw(6) << total;return 0;}

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

A Formal Analysis On Beethoven's Piano Concerto No.3 In C Minor , Op. 37

4434 words - 18 pages in his letters to his editors. Especially, the symphonic idiom that he would adopt can be traced through how he treats this piano concerto's first theme-looking forward to the Eroica Symphony a few years later.This concerto, also important because it is the only minor mode concerto of Beethoven, has got its expressiveness Don Giovanni and D minor Concerto of Mozart-that Beethoven regarded very higly. C Minor first movement in concerto form, will

A Comparative Study Of Greek And Celtic Pagan Religions, The Variations Between Them And Their Demise Through The Christian Movement

3023 words - 13 pages Variations exist within all religions. These variations are formed as a result of a number of influences experienced by not only individuals but the society as a whole. Throughout history religions have developed, diminished as well as formed the basis for many contempory religions, notably Christianity. It is the latter however which caused the downfall of Paganism, in particular ancient Celtic and Greek belief and which resulted in the church

Functions Of Organs In The Digestive System,(BASIC)

607 words - 3 pages floor of the mouth on both sides. The sublingual gland process several small sublingual ducts that are released onto the floor of the mouth in an area posterior to the submandibular ducts.EsophagusThe esophagus is a muscular tube, which carries food and liquids from the throat to the stomach for digestion after it has been chewed. The food then travels downward toward the stomach by strong waves of muscles that are contracting through the walls of

A Historical Analysis On The Study Of Optics From Pre-Socratic Times Through The Age Of Newton. By Adam R

4219 words - 17 pages infinite number of directions, and that light's intensity varies inversely with the square of the distance of the light source. In addition, Kepler proposed that light rays in the path of an eye will pass through the convex lens of the eye and then the rays are refracted and diverge upon a single point on the retina of the eye, displaying an inverted image. Kepler's theory is the first of many that uses a lens to project an image, and he is the first to

Leadership And Decision Making Style Of George C. Halvorson CEO And President Of Kaiser Permanente

2727 words - 11 pages process whereby an individual influences a group of individuals to achieve a common goal." (Northouse, 2004 p.3) What can be more vital to a company's long-term health than the choice and development of its leader? In this paper I will analyze the leadership and decision making styles of the Chief Executive Officer (CEO) of Kaiser Permanente organization George C. Halvorson. I will also discuss how the culture, goals and structure of Kaiser may

Who works in the shop? Job title and description of staff members in a average shop

583 words - 3 pages There are various workers in the shop which are needed; here below is a list of all the workers which a shop like "Keep on Reading" should have.Stock managers- There is one of this worker who handles all the stocks, what goes in, and what goes out, he also calls the suppliers if need of more stock. Is helped by the database and spreadsheet maintainer and also the stock workers* Stock worker- they stock all the books on the shelf and help the

Shoe-Horn Sonota And A Mother In A Refugee Camp

1048 words - 5 pages forces them to visualise the world that the composer is creating. In the Shoe-Horn Sonata by John Misto, through the struggles of war the relationships that are/have been formed are increased and allow for greater connection between one another. Misto uses the distinctively visual arrangements techniques in a way that creates a image that allows the audience to see the spiritual connection between the women in the choir. The vivid imagery used by

Applying Adult Learning Theory Through A Character Analysis

1277 words - 6 pages Mentor: (Include when assigned) Applying Adult Learning Theory through a Character AnalysisIn Alice Walker's (1982) novel The Color Purple, many of the characters transform from one type of character to another. The protagonist, Miss Celie, morphs from what her husband's mistress declares that Miss Celie, "show is ugly" (p. 46) to a woman defined by her son as "beautiful", as portrayed in the film adaptation of the novel. Moreover, Celie

Violence And Alex's Reclamation In "A Clockwork Orange" General Overview Of A Clockwork Orange, Covering Most Important Factors

2171 words - 9 pages respect for this man and the fact that this respected person spits in his face destroys Alex's identity.In the second third of the narrative, the character is in the State Jail. He has been there for two years. The paragraph opens with:"What's it going to be then, eh?"This one sentence that has been present in all of the Parts shows the start of another chapter in the characters life. By now he is no longer a name he is a number, 6655321. This

A Comparison Of The Imagery And Language In "The Handmaid's Tale" And Judith Wright's Poems

1021 words - 5 pages growth like a tree, becoming "wild" as in gaining more experiences in life.In "the handmaid's tale", a tree is also used as well. In chapter 13, when Offred's daughter is taken away from her own arms, she sees her daughter going away through trees turning "red and yellow", which are not natural colours of trees, these weird colours of trees may represent the artificial environment, everything natural is destructed by human. This may be an irony when

General Electric Company is a diversified industrial corporation engaged in developing, manufacturing and marketing a wide variety of products

508 words - 3 pages General Electric Company is a diversified industrial corporation engaged in developing, manufacturing and marketing a wide variety of products for the generation, transmission, distribution, control and utilization of electricity. Over the years, GE has developed or acquired new technologies and services that have considerably broadened the scope of its activities. These activities will ensure continuous growth for the future. The Company's

Similar Papers

Competition There Are A Number Of Weight Loss Products And Services In The U.S. Market Today

567 words - 3 pages COMPETITIONThere are a number of weight loss products and services in the U.S. market today, ranging from chemical and herbal treatments to various kinds of programs and equipment that people can use. However, for our product our main competitors are other non-prescription tablets such as; Metabolife, Trimspa Fat Blocker, Xenadrine, Cortislim, Curb Your Cravings, Thermo-Burn and many more ( Other competitors include

This Paper Is About Racism And How It Is Portrayed In The Following Poems: "Jasper Texas 1998," "A Party Down At The Square," And "Night, Death, Mississippi."

1112 words - 5 pages implies a belief in the superiority of one's own race" (Internet). While reading Ellison's "A Party Down at the Square", Hayden's "Night, Death, Mississippi" and Clifton's "Jasper Texas 1998", I noticed that this disease is the theme of all three.A white boy who witnesses his uncle's friends set fire to a black man narrates Ralph Ellison's "A Party Down at the Square". This is a horrible short story of how a community gets together to have a "party

In What Ways Has Globalisation Helped Multinational Corporations Coordinate And Control Their Business Functions On A Global Scale

779 words - 4 pages In what ways has globalisation helped multinational corporations coordinate and control their business functions on a global scale.'Globalization' is commonly used as a shorthand way of describing the spread and connectedness of production, communication and technologies across the world. That spread has involved the linking of economic and cultural activity. Globalization in the sense of connectivity in economic and cultural life across the

The Five Stages Of A Tragic Hero And Oedipus' Going Through Them

619 words - 3 pages The True Tragic HeroIn Sophocles' play Oedipus Rex, every reader is riding a roller coaster of his life. Aristotle's definition of a tragic hero is one person who goes through five stages which in Sophocles' play the main character Oedipus does. The five stages that he goes through are pre-eminence, flaw, fall, gaining of insight, and rise.Pre-eminent is one who surpasses all the others or should be looked up to. Oedipus at the beginning of the