Question: Compute: z = | x / y ^ 3 | Ex: If the input is 4 . 0 2 . 0 , then the output

Compute: z =|x/y^3| Ex: If the input is 4.02.0, then the output is: 0.5 CHALLENGE ACTIVITY 2.10.2: Writing math calculations 401138.2627134.qx3zqy7 Jump to level 1 int main(){ double x; double y; double z; cin >> x; cin >> y; /* Your code goes here */ cout << fixed << setprecision(1); // setprecision(1) outputs z with 1 decimal place cout << z << endl; return 0; } Check Next level
Compute: z =|x/y^3|
Ex: If the input is 2.08.0, then the output is: 8.0
int main(){
double x;
double y;
double z;
cin >> x;
cin >> y;
/* Your code goes here */
cout << fixed << setprecision(1); // setprecision(1) outputs z with 1 decimal place
cout << z << endl;
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!