New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

CS 124 Week 1

by: Samantha Stavast
Samantha Stavast
GPA 4.0
View Full Document for 0 Karma

View Full Document


Unlock These Notes for FREE

Enter your email below and we will instantly email you these Notes for Intro to Software Development

(Limited time offer)

Unlock Notes

Already have a StudySoup account? Login here

Unlock FREE Class Notes

Enter your email below to receive Intro to Software Development notes

Everyone needs better class notes. Enter your email and we will send you notes for this class for free.

Unlock FREE notes

About this Document

This is my original code covering the programs I wrote for the assignments and the weekly project. cout, cin, & tab.
Intro to Software Development
Brother Comeau
Class Notes
cout, cin, \t, c++, programming




Popular in Intro to Software Development

Popular in Computer Science and Engineering

This 6 page Class Notes was uploaded by Samantha Stavast on Wednesday September 28, 2016. The Class Notes belongs to CS 124 at Brigham Young University - Idaho taught by Brother Comeau in Fall 2016. Since its upload, it has received 6 views. For similar materials see Intro to Software Development in Computer Science and Engineering at Brigham Young University - Idaho.

Similar to CS 124 at BYU-I

Popular in Computer Science and Engineering


Reviews for CS 124 Week 1


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/28/16
/*********************************************************************** * Program: * Assignment 10, Hello World * Brother C, CS124 * Author: * Samantha S * Summary: * Display Hello World ************************************************************************/ #include <iostream> using namespace std; /********************************************************************** * Display "Hello World" On the screen ***********************************************************************/ int main() { cout << "Hello World\n"; return 0; } /*********************************************************************** * Program: * Assignment 11, Monthly Budget * Brother C, CS124 * Author: * Samantha S * Summary: * This program is designed to output your monthly budget with the numbers that are input ************************************************************************/ #include <iostream> // required for COUT #include <iomanip> // need for set(w) in this program using namespace std; /********************************************************************** * Will display Monthly budget in columns with numbers that are input ***********************************************************************/ int main() { //configure the output to display money cout.setf(ios::fixed); //no scientific notation except for the deficit cout.setf(ios::showpoint); //always show the decimal point cout.precision(2); // two decimals for cents // display Column Headers cout << "\tItem Projected\n"; cout << "\t============= ==========\n"; //first Row cout << "\tIncome $" << setw(9) << 1000. << "\n"; //second row cout << "\tTaxes $" << setw(9) << 100. << "\n"; //third row cout << "\tTithing $" << setw(9) << 100.0 << "\n"; //fourth row cout << "\tLiving $" << setw(9) << 650.00 << "\n"; //fifth row cout << "\tOther $" << setw(9) << 90.00 << "\n"; //bottom divide line and delta cout << "\t============= ==========\n"; cout << "\tDelta $" << setw(9) << 60.0 << "\n"; return 0; } /*********************************************************************** * Program: * Assignment 12, Income Prompt * Brother C, CS124 * Author: * Samantha S * Summary: * Program Prompts for Income then displays results **************************************************************************/ #include <iostream> #include <iomanip> using namespace std; /********************************************************************** * Prompts for income, then displays results ***********************************************************************/ int main() { //declare the variables float income; //prompt for income cout << "\tYour monthly income: "; cin >> income; //configure the display to show Money: two decimal points cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); //Display the result cout << "Your income is: $" << setw(9) << income << "\n"; return 0; } /*********************************************************************** * Program: * Project 02, Monthly Budget * Brother C, CS124 * Author: * Samantha S * Summary: * This Program will prompt and allow you to input your monthly * budget and display the results. **************************************************************************/ #include <iostream> #include <iomanip> using namespace std; /********************************************************************** * This Program will prompt and allow you to input your monthly * budget and display the results. ***********************************************************************/ int main() { //declaring variables float income; float bexpenses; //budgeted living expenses float aexpense; // actual living expenses float taxes; //taxes withheld float tithe; //tithe offerings float other; //other expenses //Configure the display to show two decimal points for money cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); // Program explanation and prompts for user cout << "This program keeps track of your monthly budget\n"; cout << "Please enter the following:\n"; //Budget input section cout << "\tYour monthly income: "; cin >> income; cout << "\tYour budgeted living expenses: "; cin >> bexpenses; cout << "\tYour actual living expenses: "; cin >> aexpense; cout << "\tYour actual taxes withheld: "; cin >> taxes; cout << "\tYour actual tithe offerings: "; cin >> tithe; cout << "\tYour actual other expenses: "; cin >> other; // add extra space between sections cout << "\n"; //The reported results cout << "The following is a report on your monthly expenses\n"; cout << "\tItem Budget Actual\n"; cout << "\t=============== =============== ===============\n"; cout << "\tIncome $" << setw(11) << income << " $" << setw(11) << income << "\n"; cout << "\tTaxes $ 0.00 $" << setw(11) << taxes << "\n"; cout << "\tTithing $ 0.00 $" << setw(11) << tithe << "\n"; cout << "\tLiving $" << setw(11) << bexpenses << " $" << setw(11) << aexpense << "\n"; cout << "\tOther $ 0.00 $" << setw(11) << other << "\n"; cout << "\t=============== =============== ===============\n"; cout << "\tDifference $ 0.00 $ 0.00\n"; return 0; }


Buy Material

Are you sure you want to buy this material for

0 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Kyle Maynard Purdue

"When you're taking detailed notes and trying to help everyone else out in the class, it really helps you learn and understand the I made $280 on my first study guide!"

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.