It is
Select an appropriate layout
Decide which current format...
Import or compose...
Proofread...
Check the print preview..
Answer:
See explaination
Explanation:
#include <iostream>
using namespace std;
int main()
{
double h, w;
int s, a, b;
cout<<"height in feet: ";
cin>>h;
cout<<"width in feet: " ;
cin>>w;
cout<<"tile size in inches:";
cin>>s;
int height = h*12;
if(height%s==0)
a = height/s;
else
a = height/s + 1;
int width = w*12;
if(width%s==0)
b = width/s;
else
b = width/s + 1;
cout<<"Number of tiles: "<<a*b;
}
Answer:
Following are the code in Java Language:
Scanner sc = new Scanner(System.in); // create a instance of scanner class
DecimalFormat frmt = new DecimalFormat("0.###"); // create a instance of // DecimalFormat class
System.out.println ("Enter the value: ");
double number = scan.nextDouble(); // Read the value by thje user
System.out.println (fmmt.format(Math.pow(number, 4))); // display the value
Explanation:
Following are the description of the code
- Create an instance scanner class i.e "sc".
- Create an instance of DecimalFormat class i.e "frmt".
- Read the value by the user in the "number" variable of type double by using the nextDouble()method.
- Finally, display the value by using System.out.println method. In this, we call the method format. The Math.pow() function is used to calculating the power up to the fourth value.