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
Ulleksa [173]
3 years ago
12

C programming Write a function named CalculateSphereVolume that takes one integer parameter intDiameter. The function should cal

culate the volume of a sphere with the specified diameter using the following formula: V = 4/3 * Pi * r^3.
Computers and Technology
1 answer:
FinnZ [79.3K]3 years ago
3 0

Answer:

not familiar with C++. but basically save the constant 4/3 in a variable and use user input of cin << i  believe to ask for a radius. Then take that radius/input saved in a variable and cube it, then return the value.

Explanation:

i hope this works.

You might be interested in
Where do animators work?
mezya [45]

Answer:

from internet.

in there apps.

i dont know sorry

i dont know to

its depend of animator makes because some animators have a any uses of app.

Explanation:

APPLYOURKNOWLEDGE

8 0
3 years ago
Write an algorithm that gets as input your current credit card balance, the total dollar amount of new purchases, and the total
Sindrei [870]

Answer:

balance = float(input("Enter the current credit card balance: "))

purchases = float(input("Enter the amount of new purchases: "))

payments = float(input("Enter the amount of all payments: "))

unpaid = purchases - payments

if unpaid >= 0 and unpaid < 100:

   balance = balance + payments - purchases - (unpaid * 0.08)

elif unpaid >= 100 and unpaid <= 500:

   balance = balance + payments - purchases - (unpaid * 0.12)

else:

   balance = balance + payments - purchases - (unpaid * 0.16)

   

print("The balance is " + str(balance))

Explanation:

*The code is in Python.

Ask the user to enter the balance, amount of purchases, and amount of payments

Calculate the unpaid balance, subtract payments from purchases

Check the unpaid balance. If it is smaller than 100, calculate the new balance, add payments, subtract purchases and the 8% interest of unpaid balance. If it is between 100 and 500, calculate the new balance, add payments, subtract purchases and the 12% interest of unpaid balance. If it is greater than 500, calculate the new balance, add payments, subtract purchases and the 16% interest of unpaid balance

Print the balance

6 0
4 years ago
These statements describe the NOS.(choose all that applies)
bazaltina [42]
NOS stands for Network operating system. The NOS system is used to manage the network and to provide security for it. It supports the <span>workstations, database sharing, application sharing and file sharing.</span>
<span>These statements describe the NOS.(choose all that applies)
D. gives users access privileges
E. provides an administrator interface</span>
4 0
4 years ago
Read 2 more answers
Transitive spread refers to the effect of the original things transmitted to the associate things through the material, energy o
Ludmilka [50]
A is the correct answer
4 0
3 years ago
What did Adam and Eve look like?
Nata [24]
No one could possibly know, unfortunately.
6 0
3 years ago
Read 2 more answers
Other questions:
  • On an Android device, where can a user find the correct app to use to sync contacts and apps among devices?
    10·1 answer
  • Because public key encryption requires the use of two different keys, it is also known as _____ encryption
    13·1 answer
  • ________ computers are specially designed computer chips that reside inside other devices such as your car or the electronic the
    9·1 answer
  • What is built on integrated circuits and carries the electrical current? CPUs Data Software Transistors
    5·1 answer
  • The special operator used to check for similar character strings is ____.
    13·1 answer
  • What are the two main parts of system unit hardware?
    8·1 answer
  • A computer scientist creates an app that tells you a funny joke each time you touch the Joke button.
    15·1 answer
  • which of the following is a likely problem for a driver in an urban area? A. fame animals on the roads B.not finding a gas stati
    6·1 answer
  • If the larger gear is the
    15·1 answer
  • Taking control of admin functionality and misusing sensitive data that are unauthorized to access are due to.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!