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
Doss [256]
4 years ago
13

c++ Project 6: Buoyancy. Buoyancy is the ability of an object to float. Archimedes’ principle states that the buoyant force is e

qual to the weight of the fluid that is displaced by the submerged object. The buoyant force can be computed by Fb = V × y where Fb is the buoyant force, V is the volume of the submerged object, and y is the specific weight of the fluid. If Fb is greater than or equal to the weight of the object, then it will float, otherwise it will sink. Write a program that inputs the weight (in pounds) and radius (in feet) of a sphere and outputs whether the sphere will sink or float in water. Use y = 62.4 lb/cubic feet as the specific weight of water. The volume of a sphere is computed by (4/3)π(r cubed).
Computers and Technology
1 answer:
nordsb [41]4 years ago
8 0

Answer:

Following is C++ program to check the buoyancy of sphere:

#include <stdio.h>

#include <iostream>

using namespace std;

int main()

{

double radius, weight, fb, vol, y = 62.4;

cout<<"Enter the weight of sphere"<<endl;

cin>>weight;

cout<<"Enter the radius of sphere"<<endl;

cin>>radius;

vol = (4/3)*3.14*radius*radius*radius;

fb = vol*y;

if(fb>=weight)

 cout<<"Sphere will float"<<endl;

else

 cout<<"Sphere will sink"<<endl;

 

return 0;

}

Output:

Enter the weight of sphere

545.63

Enter the radius of sphere

5

Sphere will float

Explanation:

The program will ask the user to input weight and radius of sphere. Using the value of radius the program will calculate the volume of sphere as per given formula. And using the volume it will next calculate the buoyant force.

Then using if condition the program will check the obtained buoyant force is grater than the weight of object to know if it will float or not.

You might be interested in
Which step is first in changing the proofing language of an entire document?
Korvikt [17]

Answer:

b) Select the whole document by pressing Ctrl+a.

Explanation:

The correct answer is b. If you do not select the whole document or parts of the document you wish to change the proofing language for, it will only be applied to the word your cursor is positioned in.

ig:ixv.mona :)

3 0
3 years ago
Angela wants to give her press release an attractive and cohesive appearance. How can she quickly format her press release so it
I am Lyosha [343]

Answer:

Press release tools on websites

Explanation:

There are several tools on websites that provide quick press release. It is possible to directly select the style from several choices. Each style has own fonts and colors however, it is possible to change them.  

Step by step;

Angela may enter the website that provides press release

Then can select a theme with fonts and colors

Then she can put her work

It is ready to publish

8 0
4 years ago
Why are visually interesting effects, such as WordArt, to be used sparingly?
mrs_skeptik [129]

Explanation:

<em>Formatting</em><em> </em><em>with</em><em> </em><em>Word</em><em> </em><em>Art</em><em> </em>

<em>Standard</em><em> </em><em>formatting</em><em> </em><em>options</em><em>,</em><em> </em><em>such</em><em> </em><em>as</em><em> </em><em>bold</em><em>,</em><em> </em><em>italic</em><em>,</em><em> </em><em>and</em><em> </em><em>underline</em><em> </em><em>,</em><em> </em><em>are</em><em> </em><em>all</em><em> </em><em>Available</em><em> </em><em>on</em><em> </em><em>the</em><em> </em><em>home tab</em><em>.</em><em> </em>

<em>Word</em><em> </em><em>Art</em><em> </em><em>Styles</em><em> </em>

<em>You</em><em> </em><em>can</em><em> </em><em>find</em><em> </em><em>Word</em><em> </em><em>art</em><em> </em><em>text</em><em> </em><em>effects</em><em> </em><em>in</em><em> </em><em>the</em><em> </em><em>text</em><em> </em><em>group</em><em> </em><em>on</em><em> </em><em>the</em><em> </em><em>insert</em><em> </em><em>tab</em><em>.</em><em> </em><em>When</em><em> </em><em>you</em><em> </em><em>apply</em><em> </em><em>a</em><em> </em><em>word</em><em> </em><em>art</em><em> </em><em>text</em><em> </em><em>effect</em><em> </em><em> </em><em>,</em><em> </em><em>PowerPoint</em><em> </em><em> </em><em>2</em><em>0</em><em>0</em><em>7</em><em> </em><em>displays</em><em> </em><em>the</em><em> </em><em>format</em><em> </em><em>contextual</em><em> </em><em>tab</em><em> </em><em>under</em><em> </em><em>drawing</em><em> </em><em>tools</em><em>.</em><em> </em>

8 0
3 years ago
Read 2 more answers
If you were a game programer (NOT using scratch or other basic software making platforms) what kind of code would you use for th
natulia [17]
8bitworkshop.com. It wouldn’t give you like an undertale thing, but its still super 80s gaming aesthetic
3 0
3 years ago
Read 2 more answers
Can anyone build my blox burg castel.
lorasvet [3.4K]
No thanks maybe next time tho
6 0
3 years ago
Read 2 more answers
Other questions:
  • The set of specific, sequential steps that describe exactly what a computer program must do to complete the work is called a(n)
    10·2 answers
  • You have created a number of different documents using several applications including word, excel, and powerpoint. these files a
    10·1 answer
  • All phones must have a way of making and then terminating a connection to the phone network; however the exact procedure for doi
    6·1 answer
  • 14.18 Lab 5d - Nested Looping Write a program that:
    10·1 answer
  • In IDLE, which symbols are used for the prompt? <br>*** <br>&lt;&lt;&lt;<br> &gt;&gt;&gt;<br> ---​
    8·1 answer
  • Your friend gave you a flash drive containing photos from a weekend event. After you copy the files, you notice a bunch of .DS f
    6·1 answer
  • The type of line shown below represents an / a:​
    11·1 answer
  • I will mark Brainliest if you sub to Huggablesheep 89 he said he is going to quit if he gets 50 subs he might try again please h
    8·2 answers
  • For each problem listed below, use the drop-down menu to select the field of the professional who can help solve the issue.
    7·2 answers
  • How many binary digits are in 10^100.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!