Create a structure called volume that uses three variables (length, width, height ) of type distance (feet and inches) to model the volume of a room. Read the three dimensions of the room and calculate the volume it represents , and print out the result. The volume should be in cu. feet form, i.e., you will have to convert each dimension in to feet and fractions of foot. For instance , the length 12 feet 6 inches will be 12.5 feet.
1
Expert's answer
2012-12-20T08:08:14-0500
#include <iostream> #include <stdlib.h>
using namespace std;
int main() {
cout<<"please enter a1 and a2"<<endl; double a1,a2; cin>>a1; cout<<"& quot;; cin>>a2; cout<<endl;
cout<<"please enter b1 and b2"<<endl; double b1,b2; cin>>b1; cout<<"& quot;; cin>>b2; cout<<endl;
cout<<"please enter c1 and c2"<<endl; double c1,c2; cin>>c1; cout<<"& quot;; cin>>c2; cout<<endl;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment