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
Bas_tet [7]
4 years ago
9

Write a program to input an integer num from the keyboard and: : find the area of a square whose side length is num. : find the

volume of a sphere whose radius is num. : find the length of the side of a square whose area is num.
Computers and Technology
1 answer:
NeX [460]4 years ago
3 0

Answer:

# include<iostream>  

# include<math.h>  

using namespace::std;  

void calc (int num)  

{

     cout<<"Area of Square" <<num*num;   

     cout<<"Volume of a sphere" << (4/3) *3.14*num*num*num;

     cout<<"Side of a Square" <<sqrt(num);  

     }  

int main ()  

{  

     int num;

     cout<<"Enter the Number"; cin>>num;  

      calc(num);  

      return 0;  

}  

Explanation:

I have used the swtich for the selection purpose. Also, I have used sqrt() function, and for that I have included math,h library.  And the various formula comes from mensuration. Rest part is self explanatory.

You might be interested in
Write a for loop to populate array userGuesses with NUM_GUESSES integers. Read integers using cin. Ex: If NUM_GUESSES is 3 and u
vlabodo [156]

Answer:

Follows are the code to this question:

#include <iostream>//defining header file

using namespace std;

int main() //defining main method

{

const int NUM_GUESSES = 3;//defining an integer constant variable NUM_GUESSES

int userGuesses[NUM_GUESSES];//defining an array userGuesses

int i = 0;//defining integer variable i

for(i=0;i<NUM_GUESSES;i++)//defining for loop for input value

{

cin>>userGuesses[i];//input array from the user end  

}

for (i = 0; i < NUM_GUESSES; ++i)//defining for loop fore print value  

{

cout <<userGuesses[i] << " ";//print array value with a space

}

return 0;

}

Output:

9

5

2

9 5 2  

Explanation:

In the above-given program, an integer constant variable NUM_GUESSES is defined that holds an integer value, in the next step, an integer array "userGuesses" is defined, which holds NUM_GUESSES value.

In the next step, two for loop is defined, in the first loop, it is used for an input value, and in the second loop, it prints the array value.    

6 0
3 years ago
NAND is logically complete. Use only NAND gates to constructgate-level circuits that compute the
Drupady [299]

Answer:

Hi, for this exercise we have two laws to bear in mind:

Morgan's laws

NOT(А).NOT(В) = NOT(A) + NOT (B)

NOT(A) + NOT (B) = NOT(А).NOT(В)

And the table of the Nand

INPUT OUTPUT

A B A NAND B

0 0         1

0 1         1

1 0         1

1 1         0

Let's start!

a.

Input            OUTPUT

A       A     A NAND A

1         1             0

0        0            1

b.

Input            OUTPUT

A       B     (A NAND B ) NAND (A NAND B )

0         0            0

0         1            0

1          0             0

1          1             1

C.

Input            OUTPUT

A       B     (A NAND A ) NAND (B NAND B )

0        0           0

0        1             1

1         0            1

1          1            1

Explanation:

In the first one, we only need one input in this case A and comparing with the truth table we have the not gate

In the second case, we have to negate the AND an as we know how to build a not, we only have to make a nand in the two inputs (A, B) and the make another nand with that output.

In the third case we have that the OR is A + B and we know in base of the morgan's law that:

A + B = NOT(NOT(А).NOT(В))

So, we have to negate the two inputs and after make nand with the two inputs negated.

I hope it's help you.

3 0
3 years ago
What are some good editing software apps for pc?
Anettt [7]

Answer:

If you have the money, buy Adobe Premiere Pro and Adobe After Effects (which is usually used in post-production).

If you need free ones many websites say Filmora, OpenShot, and Lightworks but I've used Filmora before and it's alright.

6 0
3 years ago
What is science worksheet answers name the three features that make science different from other human endeavors?
Tresset [83]

The three features that make science different from other human endeavors is that

  • Scientists handles issues that regards only with the natural world.
  • Scientists do collect and organize information in a careful, orderly way.
  • Scientists  do propose some explanations that can be tested by the act of evaluating evidence.

<h3>What is the definition of science?</h3>

The definition of the term  science is known to be a term that connote a system that is an organized method that is often used with evidence to be able to learn about the natural world.

Therefore, The three features that make science different from other human endeavors is that

  • Scientists handles issues that regards only with the natural world.
  • Scientists do collect and organize information in a careful, orderly way.
  • Scientists  do propose some explanations that can be tested by the act of evaluating evidence.

Learn more about science from

brainly.com/question/17216882

#SPJ1

6 0
2 years ago
The goal of an audio codec is
Sloan [31]

If you are looking for what is used for, an audio codec is used for the compression or decompression of digital audio data from a live stream media or an already stored data file.

If you are looking for the purpose, the purpose of using an audio codec is to effectively reduce the size of an audio file without affecting the quality of the sound.

I really hope that this helps you with your question.

7 0
4 years ago
Other questions:
  • nancy finds it difficult to locate emails in her inbox . what action should she take to locate a particular type of email instan
    12·1 answer
  • To activate a wizard to help in creating combo boxes and command buttons, make sure the ____ button is selected
    6·1 answer
  • Intro to Computers quiz answers me need for test please help me hurry
    5·1 answer
  • EASY POINTS
    5·1 answer
  • When a communication exchange that does not verify the identity of the endpoints of a communication and accepts any properly for
    10·1 answer
  • Name two different ways you can bring up the my computer folder
    9·2 answers
  • Ten examples of an interpreter
    8·1 answer
  • Draw DFD diagram for phone sales. Help me. Thanks
    12·1 answer
  • What year was html released?
    11·2 answers
  • A _____ is a specially formatted file that, once mounted, or connected to a virtual machine appear and operate pretty much ident
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!