1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
jasenka [17]
3 years ago
9

The length, height, and width of a cube are 10, 7, and 5 cm respectively. Write a program that calculates the volume, perimeter,

and surface area of the cube. This problem has 5 points.
Computers and Technology
1 answer:
RideAnS [48]3 years ago
8 0

Answer:

// code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // variables

   int length=10,height=7,width=5;

   // find the volume of

   int vol=length*height*width;

   // find the surface area

   int sa=2*(length*width+length*height+height*width);

   // find the perimeter

   int peri=4*(length+width+height);

   // print the volume

   cout<<"Volume is: "<<vol<<" cm^3."<<endl;

   // print the surface area

   cout<<"Surface area is: "<<sa<<" cm^2."<<endl;

   // print the perimeter

   cout<<"Perimeter is: "<<peri<<" cm."<<endl;

return 0;

}

Explanation:

Declare and initialize length=10, width=5 and height=7.calculate volume by multiply length, width and height and assign to variable "vol".Then find the surface area as 2*(length*width+length*height+height*width) and assign it to variable "sa".Then find the perimeter as 4*(length+width+height) and assign to variable "peri". Print the volume, perimeter and surface area.

Output:

Volume is: 350 cm^3.

Surface area is: 310 cm^2.

Perimeter is: 88 cm.

You might be interested in
what is the name of the program that enables the device and operating system to communicate with each other?
Fittoniya [83]

Answer:

Explain Operating System working: OS works as an intermediate between the user and computer. It helps the user to communicate with the computer without knowing how to speak the computer's language. The kernel is the central component of a computer operating systems.

Explanation:

3 0
2 years ago
The recommended flux for electrical soldering is A. antimony. B. sal ammoniac. C. rosin. D. muriatic acid.
expeople1 [14]
I pretty sure its D muriatic acid
3 0
3 years ago
Search syndication and distribution is when a search engine provides its services to a third-party in need of search capabilitie
iren [92.7K]
The answer is TRUE.  <span>Search syndication and distribution is when a search engine provides its services to a third-party in need of search capabilities for their digital properties. </span>
5 0
3 years ago
Write your own Python or Perl script that carries out Base64 encoding. If you use the BitVector module, your solution should not
slavikrds [6]

Answer:

SORRRY IDK PLZ DONT JUDGE ME

Explanation:

3 0
3 years ago
What causes them to catch your attention in advertisements?
Cloud [144]

Answer:

advertisement should be nice and attractive to get attention of people

5 0
3 years ago
Other questions:
  • Which of the following operations would best allow you to place 3D building models at their proper height on the terrain (e.g.,
    8·1 answer
  • Cryptolocker is an example of what type of malware?
    11·1 answer
  • Which is the highest level of the hierarchy of needs model?
    7·2 answers
  • ____ devices are high-performance storage systems that are connected individually to a network to provide storage for the comput
    5·1 answer
  • What do newly PivotTables look like?
    9·1 answer
  • Cual es la herramienta de google que funciona como oficce ?
    11·1 answer
  • Router 1 is configured with static NAT. Addressing on the router and the web server are correctly configured, but there is no co
    11·1 answer
  • Need answer ASAP
    8·2 answers
  • A man-in-the-middle attack or impersonation are likely to result in problems with
    12·1 answer
  • which one of the following would not normally be found in an organization's information security policy?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!