Access over 20 million homework & study documents

C++ CST 280 In Class Practice A and B Week 1

Content type
User Generated
Type
Lab
Rating
Showing Page:
1/8
CST 280 Week1 Practice A


 ! "!
 #$%
&$ '
( $  )*+**,$*, -.
$/0+0'
 /1+1'
2
+3) +45 * +6-.
+&/'
)45 %7-
&/)617-0)61)45 87-19:-'

&0/6145 '
&'
2
;$)&*;<61&(=>-
.
+6/'
+45 /7:'

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/8
##!&&$ !## '
+&/3)45 *6-'
##!3!##45 ##!?!##6##!!##
&## ## '
$/'
 /9'
/9*+/9*/9'
##!&$  $ !## '
$  )*+**$* -'
##!@$+!####!*!##+##! !#### ##!$!##$##! !
## ## '
$)!!-'
'
2

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/8

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 8 pages?
Access Now
Unformatted Attachment Preview
CST 280 Week1 Practice A // CPPCST280PracticeA.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; void sumAndProduct(int a, int b, int c, int &sum, int &product){ sum = a + b + c; product = a*b*c; } double calculateGrossPay(double hrsWorked, double payRate){ double grossPay = 0; if (hrsWorked > 40) grossPay = (payRate * 40) + (payRate * (hrsWorked - 40) * 1.5); else grossPay += payRate * hrsWorked; return grossPay; } int _tmain(int argc, _TCHAR* argv[]) { double payRate = 80; double hrsWroked = 45; cout ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
I was having a hard time with this subject, and this was a great help.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4