review_32 - 3.1<iostream> 3.2 stream extraction...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3.1- <iostream> 3.2- stream extraction operator 3.3- keyboard 3.4-True 3.5- 3 3.6- cin>>miles>>feet>>inches; 3.7 #include<iostream> using namespace std; int main () { double first, second, product; cout<<"Please enter two numbers seperated with a space: "; cin>>first>>second; product = first * second; cout<< "The Product is "<<product<<endl; return 0; } 3.8#include <iostream> using namespace std; int main () { double pounds, kilograms; cout<<"Please enter your weight in pounds: "; cin>>pounds; kilograms = pounds/2.21; cout<<"Your weight } is "<<kilograms<<" Kilograms"<<endl; return 0; 3.21- total=subtotal=tax=shipping=0; 3.22A) x=x+6; B) amount=amount -4; C) y=y*4; D) total=total/27; E) x= x%7; F) x= x+(y*5); G) total=total -(discount*4); H) increase=increase*(salesrep*5); I) profit=profit/(shares -1000); 3.233 11 1 ========================================================================= = 1A) cin>>description; B) getline (cin, description); 4)cin>>age>>pay>>section; 5)iomanip 9) A) a=12*x; B) z= (5*x)+(14*y)+(6*k); C) y = pow(x,4); D)g= (h+12)/(4*k); E)c= pow(a,3)/( pow(b,2)*pow(k,4) ) 10) int 11) 8 13) const int RATE=12; 15) east=west=north=south=1; 17) NO 20) A)cmath B)fstream C)iomanip 22) ...
View Full Document

This note was uploaded on 04/08/2012 for the course CS 2426 taught by Professor Jinlui during the Spring '12 term at DeVry Houston.

Page1 / 2

review_32 - 3.1<iostream> 3.2 stream extraction...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online