From d40a22f6bd52318ee6fe82c1a658721068daf6bf Mon Sep 17 00:00:00 2001 From: jsteiner207 Date: Mon, 15 Dec 2014 03:28:19 -0600 Subject: [PATCH] gf --- Ch4AppE10.cpp | 30 ++ Ch4Appe06.cpp | 29 ++ ch4AppE02.cpp | 16 + untitled4/ch4AppE02.cpp | 16 + untitled4/main.cpp | 16 + untitled4/untitled4.pro | 6 + untitled4/untitled4.pro.user | 432 ++++++++++++++++++ untitled5/Ch4Appe06.cpp | 29 ++ untitled5/main.cpp | 28 ++ .../Makefile | 193 ++++++++ .../main.o | Bin 0 -> 4112 bytes .../untitled | Bin 0 -> 9902 bytes untitled5/untitled/Ch4AppE10.cpp | 51 +++ untitled5/untitled/main.cpp | 52 +++ untitled5/untitled/untitled.pro | 6 + untitled5/untitled/untitled.pro.user | 432 ++++++++++++++++++ untitled5/untitled5.pro | 6 + untitled5/untitled5.pro.user | 432 ++++++++++++++++++ 18 files changed, 1774 insertions(+) create mode 100644 Ch4AppE10.cpp create mode 100644 Ch4Appe06.cpp create mode 100644 ch4AppE02.cpp create mode 100644 untitled4/ch4AppE02.cpp create mode 100644 untitled4/main.cpp create mode 100644 untitled4/untitled4.pro create mode 100644 untitled4/untitled4.pro.user create mode 100644 untitled5/Ch4Appe06.cpp create mode 100644 untitled5/main.cpp create mode 100644 untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/Makefile create mode 100644 untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/main.o create mode 100755 untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/untitled create mode 100644 untitled5/untitled/Ch4AppE10.cpp create mode 100644 untitled5/untitled/main.cpp create mode 100644 untitled5/untitled/untitled.pro create mode 100644 untitled5/untitled/untitled.pro.user create mode 100644 untitled5/untitled5.pro create mode 100644 untitled5/untitled5.pro.user diff --git a/Ch4AppE10.cpp b/Ch4AppE10.cpp new file mode 100644 index 0000000..8716d2b --- /dev/null +++ b/Ch4AppE10.cpp @@ -0,0 +1,30 @@ +#include + +using namespace std; + +int main ( ) +{ + float userNUmber; + float owe; + + int change, amount, quarters, dimes, nickels, pennies; // declare variables + cout <<"Enter the amount of money: "; + cin >> userNUmber; // input the amount of change + cout << "Enter how much you owe: "; + cin >> owe; + + + change = (userNUmber - owe) * 100; + quarters = change / 25; // calculate the number of quarters + change = change % 25; // calculate remaining change needed + dimes = change / 10; // calculate the number of dimes + change = change % 10; // calculate remaining change needed + nickels = change / 5; // calculate the number of nickels + pennies = change % 5; // calculate pennies + + cout << "\nQuarters: " << quarters << endl; // display # of quarters + cout << " Dimes: " << dimes << endl; // display # of dimes + cout << " Nickels: " << nickels << endl; // display # of nickels + cout <<" Pennies: " << pennies << endl; // display # of pennies + return (0); +} diff --git a/Ch4Appe06.cpp b/Ch4Appe06.cpp new file mode 100644 index 0000000..c6ffc29 --- /dev/null +++ b/Ch4Appe06.cpp @@ -0,0 +1,29 @@ +#include + +using namespace std; + +int main() +{ + double width = 0.0; + double length = 0.0; + double height = 0.0; + + + cout << "enter the width "; + cin >> width; + + cout << "enter the length "; + cin >> length; + + cout << "enter the height "; + cin >> height; + + double volume = width * length * height; + + cout << "The volume is " << + volume; + + return 0; + +} + diff --git a/ch4AppE02.cpp b/ch4AppE02.cpp new file mode 100644 index 0000000..3b28683 --- /dev/null +++ b/ch4AppE02.cpp @@ -0,0 +1,16 @@ +#include + +using namespace std; + +int main() +{ + int number = 0; + + cout << "enter a number so I can square it for you "; + cin >> number; + int sn = number * number; + cout << sn << endl + ; + return 0; +} + diff --git a/untitled4/ch4AppE02.cpp b/untitled4/ch4AppE02.cpp new file mode 100644 index 0000000..3b28683 --- /dev/null +++ b/untitled4/ch4AppE02.cpp @@ -0,0 +1,16 @@ +#include + +using namespace std; + +int main() +{ + int number = 0; + + cout << "enter a number so I can square it for you "; + cin >> number; + int sn = number * number; + cout << sn << endl + ; + return 0; +} + diff --git a/untitled4/main.cpp b/untitled4/main.cpp new file mode 100644 index 0000000..3b28683 --- /dev/null +++ b/untitled4/main.cpp @@ -0,0 +1,16 @@ +#include + +using namespace std; + +int main() +{ + int number = 0; + + cout << "enter a number so I can square it for you "; + cin >> number; + int sn = number * number; + cout << sn << endl + ; + return 0; +} + diff --git a/untitled4/untitled4.pro b/untitled4/untitled4.pro new file mode 100644 index 0000000..a5ad5d8 --- /dev/null +++ b/untitled4/untitled4.pro @@ -0,0 +1,6 @@ +TEMPLATE = app +CONFIG += console +CONFIG -= qt + +SOURCES += main.cpp + diff --git a/untitled4/untitled4.pro.user b/untitled4/untitled4.pro.user new file mode 100644 index 0000000..9addca0 --- /dev/null +++ b/untitled4/untitled4.pro.user @@ -0,0 +1,432 @@ + + + + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + System + false + 4 + false + true + 1 + true + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + Qt4ProjectManager.Target.DesktopTarget + 0 + 0 + 0 + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/jsteiner/untitled4-build-desktop-Qt_4_8_2_in_PATH__System__Release + 2 + true + + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/jsteiner/untitled4-build-desktop-Qt_4_8_2_in_PATH__System__Debug + 2 + true + + 2 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + No deployment + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + false + + %{buildDir} + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + 3768 + true + false + true + + 1 + + + + ProjectExplorer.Project.Target.1 + + Embedded Linux + Embedded Linux + RemoteLinux.EmbeddedLinuxTarget + 0 + 0 + 0 + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/jsteiner/untitled4-build-embedded-Qt_4_8_2_in_PATH__System__Release + 2 + true + + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/jsteiner/untitled4-build-embedded-Qt_4_8_2_in_PATH__System__Debug + 2 + true + + 2 + + + + true + Upload files via SFTP + + RemoteLinux.DirectUploadStep + + + + + + true + + 1 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy to Remote Linux Host + + DeployToGenericLinux + 0 + + 1 + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + false + + %{buildDir} + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + 3768 + true + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 2 + + + ProjectExplorer.Project.Updater.EnvironmentId + {61771d98-b351-44ba-998e-dd9906876cdb} + + + ProjectExplorer.Project.Updater.FileVersion + 11 + + diff --git a/untitled5/Ch4Appe06.cpp b/untitled5/Ch4Appe06.cpp new file mode 100644 index 0000000..c6ffc29 --- /dev/null +++ b/untitled5/Ch4Appe06.cpp @@ -0,0 +1,29 @@ +#include + +using namespace std; + +int main() +{ + double width = 0.0; + double length = 0.0; + double height = 0.0; + + + cout << "enter the width "; + cin >> width; + + cout << "enter the length "; + cin >> length; + + cout << "enter the height "; + cin >> height; + + double volume = width * length * height; + + cout << "The volume is " << + volume; + + return 0; + +} + diff --git a/untitled5/main.cpp b/untitled5/main.cpp new file mode 100644 index 0000000..d83a6b5 --- /dev/null +++ b/untitled5/main.cpp @@ -0,0 +1,28 @@ +#include + +using namespace std; + +int main() +{ + double width = 0.0; + double length = 0.0; + double height = 0.0; + + + cout << "enter the width "; + cin >> width; + + cout << "enter the length "; + cin >> length; + + cout << "enter the height "; + cin >> height; + + double volume = width * length * height; + + cout << "The volume is" << volume; + + return 0; + +} + diff --git a/untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/Makefile b/untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/Makefile new file mode 100644 index 0000000..5c617a6 --- /dev/null +++ b/untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/Makefile @@ -0,0 +1,193 @@ +############################################################################# +# Makefile for building: untitled +# Generated by qmake (2.01a) (Qt 4.8.2) on: Fri Dec 12 04:42:23 2014 +# Project: ../untitled/untitled.pro +# Template: app +# Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile ../untitled/untitled.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_WEBKIT +CFLAGS = -pipe -O2 -Wall -W $(DEFINES) +CXXFLAGS = -pipe -O2 -Wall -W $(DEFINES) +INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I../untitled -I../untitled -I. +LINK = g++ +LFLAGS = -Wl,-O1 +LIBS = $(SUBLIBS) +AR = ar cqs +RANLIB = +QMAKE = /usr/bin/qmake-qt4 +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = $(COPY) +COPY_DIR = $(COPY) -r +STRIP = strip +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = ../untitled/main.cpp +OBJECTS = main.o +DIST = /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/release.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + ../untitled/untitled.pro +QMAKE_TARGET = untitled +DESTDIR = +TARGET = untitled + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + +Makefile: ../untitled/untitled.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/release.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf + $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile ../untitled/untitled.pro +/usr/share/qt4/mkspecs/common/unix.conf: +/usr/share/qt4/mkspecs/common/linux.conf: +/usr/share/qt4/mkspecs/common/gcc-base.conf: +/usr/share/qt4/mkspecs/common/gcc-base-unix.conf: +/usr/share/qt4/mkspecs/common/g++-base.conf: +/usr/share/qt4/mkspecs/common/g++-unix.conf: +/usr/share/qt4/mkspecs/qconfig.pri: +/usr/share/qt4/mkspecs/modules/qt_webkit_version.pri: +/usr/share/qt4/mkspecs/features/qt_functions.prf: +/usr/share/qt4/mkspecs/features/qt_config.prf: +/usr/share/qt4/mkspecs/features/exclusive_builds.prf: +/usr/share/qt4/mkspecs/features/default_pre.prf: +/usr/share/qt4/mkspecs/features/release.prf: +/usr/share/qt4/mkspecs/features/default_post.prf: +/usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: +/usr/share/qt4/mkspecs/features/warn_on.prf: +/usr/share/qt4/mkspecs/features/resources.prf: +/usr/share/qt4/mkspecs/features/uic.prf: +/usr/share/qt4/mkspecs/features/yacc.prf: +/usr/share/qt4/mkspecs/features/lex.prf: +/usr/share/qt4/mkspecs/features/include_source_dir.prf: +qmake: FORCE + @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile ../untitled/untitled.pro + +dist: + @$(CHK_DIR_EXISTS) .tmp/untitled1.0.0 || $(MKDIR) .tmp/untitled1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/untitled1.0.0/ && (cd `dirname .tmp/untitled1.0.0` && $(TAR) untitled1.0.0.tar untitled1.0.0 && $(COMPRESS) untitled1.0.0.tar) && $(MOVE) `dirname .tmp/untitled1.0.0`/untitled1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/untitled1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +check: first + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_uic_make_all: +compiler_uic_clean: +compiler_image_collection_make_all: qmake_image_collection.cpp +compiler_image_collection_clean: + -$(DEL_FILE) qmake_image_collection.cpp +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: + +####### Compile + +main.o: ../untitled/main.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../untitled/main.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/main.o b/untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release/main.o new file mode 100644 index 0000000000000000000000000000000000000000..13a4d8608e8f2da8397298117a4ad749ae8ab42d GIT binary patch literal 4112 zcmbuCe{2**6vyX!Af=SM13`))99r>A?4<`S6cF3v?&wvIf^7+k#m)A5wHMl6bGt1C zWBlWQP$LO{@Q0e17?DJYLH{rT{6kTYUn=5X#+VpMj7kv2{^4IH^?hgO^`_gq#Kf1( z%zK}C@6GJ&?(FQ#iPY8#k4Lb0#1o=uF%{xNZ&7cNYK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hqdlx6edm6-p$PRE)}O-s-Qz7ng+xB7t>!@?CE?%>4>tA@x~(2(eE5e6!(HLm(TlW zq1s@1-(Y=f{SPU7?*AgS{}w6x4mMPj`;Xzn7JL34&EKiZSW!`H`Hxxb`&IecPH?-MR%Xw|pMG{30-*`7{xlnTD2{okQW zbC2zL|8y&RzCTdYab*5-yWWGXxqSYOoy00a^6YDXN;V4((##yGmU0Q@(ytY?jhHUz3jWDQy&``D#amzCX`53WB3`mm~g7%Qr32xsLSt+_^yIdO>YC_0cy&O1utM zfzRZ}FLlQD58YOh|2|87ZdUjO3x2!8t>@pLOaHUQ1xtN?FY&SC^}O=K=W2*Dy@sbP z!?VcV!qCx>lHKpN0Lk zF|G6o*k>}`tIj1H`iCs~i-1qVI_g#9l2YDQ0C!fvJTzEkGVQG}=S@1t+ z@qa?YeyHk84?NZPg|%P`9}OH_4;-&6?h(h3LjPDfkxI1Zi40uC>JCO~IHJ z*5iq!7VPX6IFfh7B6=k3T~@MuF+68b(&*!Wan#pvd{68Y#>athXItA&n3yEo_D1zI zRZXkiRJpE3t65)7*WR+`idSvkP+PmX1{cSbs{=Kpk>&#T*=9gqp9`(}2kR@>)l~`l zwqRTV%d2X-3itWsJ+N{2YurN975G@#xGuNg#-(y7*(uvB*tcoSvfbUw4=8l$o#Adf zVGpZ6aG%&4#MHvnq^8_+G`XuH;#j9_@EJf3cr ze>|9nM?)S@0#rl(L&4%$3n$}RYY=}opubDV>wOvtIr}vYUyyh>@Q;M7|1U`MiMxMV WMP*;vW%4}tMotFtbP*! literal 0 HcmV?d00001 diff --git a/untitled5/untitled/Ch4AppE10.cpp b/untitled5/untitled/Ch4AppE10.cpp new file mode 100644 index 0000000..1f8f716 --- /dev/null +++ b/untitled5/untitled/Ch4AppE10.cpp @@ -0,0 +1,51 @@ +#include + +using namespace std; + +int main() +{ + int dollar = 0; + int quarter = 0; + int dime = 0; + int nickel = 0; + int penny = 0; + + double due = 0.0; + cout << "How much is due "; + cin >> due; + double give = 0.0; + cout << "how much do give "; + cin >> give; + double back = give - due; + cout << back <.01) { + if (back > 1) { + dollar = dollar + 1; + back = back - 1; + } + else if (back > .24) { + quarter = quarter + 1; + back = back - .25; + } + else if (back > .09) { + dime = dime + 1; + back = back - .10; + } + else if (back > .04) { + nickel = nickel + 1 + ; + back = back - .05; + } + else if (back > .00) { + penny = penny + 1; + back = back - .01; + } + }; + + cout << dollar << quarter << dime << nickel << penny; + return 0; + + +} + diff --git a/untitled5/untitled/main.cpp b/untitled5/untitled/main.cpp new file mode 100644 index 0000000..0ac316b --- /dev/null +++ b/untitled5/untitled/main.cpp @@ -0,0 +1,52 @@ +#include + +using namespace std; + +int main() +{ + int dollar = 0; + int quarter = 0; + int dime = 0; + int nickel = 0; + int penny = 0; + + double due = 0.0; + cout << "How much is due "; + cin >> due; + double give = 0.0; + cout << "how much do give "; + cin >> give; + double back = give - due; + cout << back <.01) { + if (back > .99 + ) { + dollar = dollar + 1; + back = back - 1; + } + else if (back > .24) { + quarter = quarter + 1; + back = back - .25; + } + else if (back > .09) { + dime = dime + 1; + back = back - .10; + } + else if (back > .04) { + nickel = nickel + 1 + ; + back = back - .05; + } + else if (back > .01) { + penny = penny + 1; + back = back - .01; + } + }; + + cout << dollar << quarter << dime << nickel << penny; + return 0; + + +} + diff --git a/untitled5/untitled/untitled.pro b/untitled5/untitled/untitled.pro new file mode 100644 index 0000000..a5ad5d8 --- /dev/null +++ b/untitled5/untitled/untitled.pro @@ -0,0 +1,6 @@ +TEMPLATE = app +CONFIG += console +CONFIG -= qt + +SOURCES += main.cpp + diff --git a/untitled5/untitled/untitled.pro.user b/untitled5/untitled/untitled.pro.user new file mode 100644 index 0000000..c4800ab --- /dev/null +++ b/untitled5/untitled/untitled.pro.user @@ -0,0 +1,432 @@ + + + + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + System + false + 4 + false + true + 1 + true + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + Qt4ProjectManager.Target.DesktopTarget + 0 + 0 + 0 + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/jsteiner/untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Release + 2 + true + + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/jsteiner/untitled5/untitled-build-desktop-Qt_4_8_2_in_PATH__System__Debug + 2 + true + + 2 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + No deployment + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + false + + %{buildDir} + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + 3768 + true + false + true + + 1 + + + + ProjectExplorer.Project.Target.1 + + Embedded Linux + Embedded Linux + RemoteLinux.EmbeddedLinuxTarget + 0 + 0 + 0 + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/jsteiner/untitled5/untitled-build-embedded-Qt_4_8_2_in_PATH__System__Release + 2 + true + + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/jsteiner/untitled5/untitled-build-embedded-Qt_4_8_2_in_PATH__System__Debug + 2 + true + + 2 + + + + true + Upload files via SFTP + + RemoteLinux.DirectUploadStep + + + + + + true + + 1 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy to Remote Linux Host + + DeployToGenericLinux + 0 + + 1 + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + false + + %{buildDir} + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + 3768 + true + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 2 + + + ProjectExplorer.Project.Updater.EnvironmentId + {61771d98-b351-44ba-998e-dd9906876cdb} + + + ProjectExplorer.Project.Updater.FileVersion + 11 + + diff --git a/untitled5/untitled5.pro b/untitled5/untitled5.pro new file mode 100644 index 0000000..a5ad5d8 --- /dev/null +++ b/untitled5/untitled5.pro @@ -0,0 +1,6 @@ +TEMPLATE = app +CONFIG += console +CONFIG -= qt + +SOURCES += main.cpp + diff --git a/untitled5/untitled5.pro.user b/untitled5/untitled5.pro.user new file mode 100644 index 0000000..4d490d7 --- /dev/null +++ b/untitled5/untitled5.pro.user @@ -0,0 +1,432 @@ + + + + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + System + false + 4 + false + true + 1 + true + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + Qt4ProjectManager.Target.DesktopTarget + 0 + 0 + 0 + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/jsteiner/untitled5-build-desktop-Qt_4_8_2_in_PATH__System__Release + 2 + true + + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/jsteiner/untitled5-build-desktop-Qt_4_8_2_in_PATH__System__Debug + 2 + true + + 2 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + No deployment + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + false + + %{buildDir} + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + 3768 + true + false + true + + 1 + + + + ProjectExplorer.Project.Target.1 + + Embedded Linux + Embedded Linux + RemoteLinux.EmbeddedLinuxTarget + 0 + 0 + 0 + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/jsteiner/untitled5-build-embedded-Qt_4_8_2_in_PATH__System__Release + 2 + true + + + ProjectExplorer.ToolChain.Gcc:{1a5c71de-8110-48fb-932f-a4f71912c1d1} + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Qt 4.8.2 in PATH (System) Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/jsteiner/untitled5-build-embedded-Qt_4_8_2_in_PATH__System__Debug + 2 + true + + 2 + + + + true + Upload files via SFTP + + RemoteLinux.DirectUploadStep + + + + + + true + + 1 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy to Remote Linux Host + + DeployToGenericLinux + 0 + + 1 + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + false + + %{buildDir} + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + 3768 + true + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 2 + + + ProjectExplorer.Project.Updater.EnvironmentId + {61771d98-b351-44ba-998e-dd9906876cdb} + + + ProjectExplorer.Project.Updater.FileVersion + 11 + +