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

world war 1 research paper of a soldier by the name of Alvin C. York. - World history - Research paper

420 words - 2 pages Coach Carnline Michael Juarez Alvin C. York Alvin C. York Alvin Cullum York was an American war hero in WWI. He was born on December 13, 1887, in Pall Mall, Tennessee. Being the eldest Alvin learned how to be a crack shot and a good woodsman in order to take care of his siblings. By 1911 his father died leaving his responsibilities to Alvin. There was a period in which he developed into a heavy drinker and started getting into frequent bar

Gender Through the eyes of a woman - University of Alabama CJ 304 - Gender crime

1097 words - 5 pages Thompson 2 Jessica Thompson Ms. Jessica Trull CJ 304 February 26, 2019 Through the Eyes of a Woman For thousands of years women have had to live in a male driven world. Women were always labeled as kind, nurturing, and generous when it comes to others. A woman’s sole responsibility was to stay at home and take care of her husband and family, but over time women have decided to become more independent and self-proficient. In the 20th and 21st

Through the eyes of a Deaf community - American Sign Language - Essay

436 words - 2 pages the experience of hearing impairment. It exhibits interviews conducted of deaf individuals, displaying individual personalities, and personal insights and reflections into the condition of deafness. The narrator also explores a number of important events that have shaped deaf culture; examples include: the creation of the first deaf school founded April 15, 1817, in Hartford, Connecticut, by Thomas Hopkins Gallaudet, Dr. Mason Cogswell, and

Hero Essay: A Story about a mother and daughter who goes through cancer - Hampton University- English - Essay

835 words - 4 pages Khrystiana Howell Dr. Cannady Written Communication 1 10/09/18 Only for A Season As I sat there patiently waiting for my mother to come out of the doctor’s office, I heard a loud scream. I sat up abruptly and listened closely. It was a horrific scream to the one heard in multiple horror movies. I looked up at my grandmother who had tears rolling down her face. Nothing could prepare me for what was about to come. It was a rainy afternoon as my

reformation of copper through the copper cycle - texas a&m university; Chem lab 111 - essay

1073 words - 5 pages Reformation of Copper Through the Copper Cycle Authors: Lauren Yarborough* and Alex Farish; Chemistry 112 Section 505. Introduction: Copper is a very important element due to both its chemical and physical properties but has its down sides when it comes to being earth-friendly. Since copper isn’t biodegradable, it just accumulates over time. In this experiment, both my lab partner and I looked at the chemical reactions of copper as it underwent

This essay describes the reformists of the 1900s through becoming a modern muckraker. - U.S. History - Essay

679 words - 3 pages diets. According to research from Cornell University, 800 million people could be fed with the grain that livestock eat. There are 325.7 million people in the United States, as of 2017. Now, obviously the primary issue in the United States is more economically correlated, but due to the mass availability and cheaper farming of plant based foods, nutritious diets could be provided to more people for cheaper, based on supply and demand. A large

A Study of South East Asian Politics Through the 20th Century - Politics - Politics

1923 words - 8 pages 15469418 POL30380 Question 1 Asian Politics The Cold War had a major influence on the politics of Asia in the 20th Century. I will discuss three ways in which this was the case by illustrating my answer with specific examples, such as the influence of the cold war on the Korean peninsula, Vietnam and Japan. I will also discuss in what ways the Cold war has influenced not only 20th Century politics but also its influence is still present in the

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

Compare and Contrast of symbols in Death of a Salesman and A Streetcar named Desire - IB LIT - Literature paper

1360 words - 6 pages Giovanna Amodio IB LIT 2 Mrs.Marusevich 4/5/2018 “Paper 2” Assessment: Tennessee Williams’ A Streetcar Named Desire Arthur Miller’s Death of a Salesman Façade: an outward appearance that is maintained to conceal a less pleasant or creditable reality. In both works of A Streetcar Named Desire by Tennessee Williams’ and Death of a Salesman by Arthur Miller, the main characters’ of each play put up what is known as a Façade throughout the entirety

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 (www.healthy4life.com). 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