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
dlinn [17]
3 years ago
11

Q5) Write C++ program to find the summation of sines of the even values that can be divided by 7 between -170 and -137.

Engineering
1 answer:
Minchanka [31]3 years ago
5 0

Answer:

In C++:

#include <iostream>

#include <cmath>

using namespace std;

int main(){

 double total = 0;

 for(int i = -170; i<=-130;i++){

     if(i%2 == 0 && i%7==0){

         double angle = i*3.14159/180;

         total+=sin(angle);      }  }

 cout<<"Total: "<<total;

 return 0; }

Explanation:

This initializes the total to 0

 double total = 0;

This iterates from -170 to - 130

 for(int i = -170; i<=-130;i++){

This checks if the current number is even and is divided by 7

     if(i%2 == 0 && i%7==0){

This converts the number from degrees to radians

         double angle = i*3.14159/180;

This adds the sine of the number

         total+=sin(angle);      }  }

This prints the calculated total

 cout<<"Total: "<<total;

You might be interested in
What is the purpose of this block?
just olya [345]

The  purpose of a block to add a value to the end of an array.

<h3>What is the function that adds an element to the end of an array?</h3>

The push() is known to be often used to add an element to the end of your array.

The end() function is known to be one that transmit the internal pointer to, and also the outputs, the last factor in the array.

A null or zero value is known to be that which marks the end of an array and it is said to be the very equivalent of the null char for any kind of string

Hence, in the above scenario, The  purpose of a block to add a value to the end of an array.

Therefore, option D is correct.

Learn more about  array from

brainly.com/question/24275089

#SPJ1

3 0
2 years ago
I dont undertand this coding problem (Java):
chubhunter [2.5K]

Check The Attachment.

Download java
6 0
4 years ago
What do electrons have to do with electrical current?
erastova [34]

Answer:

Electrons in atoms can act as our charge carrier, because every electron carries a negative charge. If we can free an electron from an atom and force it to move, we can create electricity.

6 0
4 years ago
How does load transfer of space needle​
UkoKoshka [18]

Answer:

The Space Needle is a cut away with minimal residual deflection due to load transfer.

4 0
3 years ago
Ammonia at 20 C with a quality of 50% and a total mass of 2 kg is in a rigid tank with an outlet valve at the bottom. How much s
Veseljchak [2.6K]

Answer:

16.38L

Explanation:

Through laboratory tests, thermodynamic tables were developed, these allow to know all the thermodynamic properties of a substance (entropy, enthalpy, pressure, specific volume, internal energy etc ..)  

through prior knowledge of two other properties.

Quality is defined as the ratio between the amount of steam and liquid when a fluid is in a state of saturation, this means that since the quality is 50%, 1kg is liquid and 1kg is steam.

then to solve this problem we find the specific volume for ammonia in a saturated liquid state at 20C, and multiply it by mass (1kg)

v(amonia at 20C)=0.001638m^3/kg

m=(0.01638)(1)=0.01638m^3=16.38L

8 0
3 years ago
Other questions:
  • For flow over a plate, the variation of velocity with vertical distance y from the plate is given as u(y) = ay − by2 where a and
    10·1 answer
  • The "quantity theory of money" describes the relationship between: Question 37 options: a) prices, employment, money supply, and
    6·1 answer
  • Please help me in this assignment.
    13·1 answer
  • What is a business cycle?
    12·1 answer
  • Name four emerging technologies that could significantly impact how the construction industry conducts business.
    12·2 answers
  • Hey y’all just wanted to say sup and don’t stress so much about the world just leave it to god and it will all work out
    11·2 answers
  • In a database, a column is called a _____.<br> row<br> table<br> file<br> field
    9·2 answers
  • A 50-mm cube of the graphite fiber reinforced polymer matrix composite material is subjected to 125-kN uniformly distributed com
    14·1 answer
  • Type the correct answer in the box. Spell all words correctly. Type the exact term Mike should use for the given scenario. Mike
    8·2 answers
  • If a 1500 V load is ac coupled to the output in Figure 9–60, what is the resulting output voltage (rms) when a 50 mV rms input i
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!