Engineering & Technology
大学生・専門学校生・社会人
解決済み
請問有人會嗎?感謝
3. Program Q3.epp
Wirite aprogram that meet the following reqruirements
包
紀
記6
Display auser promptto guide the userto center 3 integers
Read these 3 integer values into variables nl.n2,n3
Show whethernlis an evenoranodd-
Show whethern2is an even oranodd-
Show whethern3 is an even oran odd-
1. Program Ql.epp
Modify the following code so that it shows the correetresult 1.00000013 or atleast very close to
1.00000013-
<iostream>
iomanip
usinq namegspace std7
int main 0
float xx )(
float y: )t
cout << setprecigsion(20) << x << end1ly
cout_ << Yy << end1y
float z 三 二 Y7
cout << z << end1l7
工eturn 7
Fig. 1b. result ofeode shown in Fig. 1a
Program Q2.epp
Wirite aprogram that meet the following requirements
a, Declare two integer variables, iVar_1, iVar 2
Display auser prompt to guide the user to enter two integers
c.。 Read these two integer values into variables iVar_1 and ivs
dd Compute and display the quotient and remainder ofiVar_1 divided by iVar_2
e. Compute and display the value ofiVar_1 divided by iVar_2tothe 10th deeimalplace.
回答
疑問は解決しましたか?
この質問を見ている人は
こちらの質問も見ています😉
おすすめノート
【工程數學】—『Laplace 變換 』(完成)
117
0
靜力學
55
0