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
Why the inviscid, incompressible, and irrotational fields are governed by Laplace's equation?
creativ13 [48]

Answer: Laplace equation provides a linear solution and helps in obtaining other solutions by being added to various solution of a particular equation as well.

Inviscid , incompressible and irrotational field have and basic solution ans so they can be governed by the Laplace equation to obtain a interesting and non-common solution .The analysis of such solution in a flow of Laplace equation is termed as potential flow.

6 0
3 years ago
Draw the internal connections of motor generator set​
Akimi4 [234]

Answer:

tyjtgfjhgk vgjyg7igjccxfb  rt5bshe dgrty5rm nry5ghbhjyrdegbtyr45bh4 cnbfgcb xdftjrnn hdftytr s  jhbgfhtyujt ntj

Explanation:

3 0
3 years ago
8. When supplying heated air for a building, one often chooses to mix in some fresh outside air with air that has been heated fr
Afina-wow [57]

Answer:

Check the explanation

Explanation:

Kindly check the attached images below to see the step by step explanation to the question above.

5 0
3 years ago
Explain combined normal and shear stresses with sketch. Write the general expression for (a) Normal and shear stresses on inclin
Alborosie

Answer:

a) Normal stress :

бn =[ ( бx + бy ) / 2  + ( бx - бy ) / 2  ] cos2∅ + Txysin2∅

shear stress

Tn = ( - бx - бy ) / 2  sin2∅ + Txy cos2∅

b) principal stress :

б1 = ( бx + бy ) / 2  - \sqrt{}( ( бx - бy ) / 2 )^2 + T^2xy

maximum shear stress:

Tmax  = ( б1 - б2) / 2 = √ (( бx - бy ) / 2 )^2 + T^2xy

Explanation:

Combined normal stress and shear stress  sketches attached below

The terms in the sketch are :

бx = tensile stress in x direction

бy =  tensile stress in y direction

Txy = y component of shear stress acting on the perpendicular plane to x axis

бn = Normal stress acting on the inclined plane EF

Tn = shear stress acting on the inclined plane EF

A) Normal and shear stresses on inclined plane

Normal stress :

бn =[ ( бx + бy ) / 2  + ( бx - бy ) / 2  ] cos2∅ + Txysin2∅

shear stress

Tn = ( - бx - бy ) / 2  sin2∅ + Txy cos2∅

B) principal and maximum shear stresses

principal stress :

б1 = ( бx + бy ) / 2  - \sqrt{}( ( бx - бy ) / 2 )^2 + T^2xy

maximum shear stress:

Tmax  = ( б1 - б2) / 2 = √ (( бx - бy ) / 2 )^2 + T^2xy

6 0
2 years ago
An example of Ferrous alloy is Brass a)-True b)-False
djyliett [7]

Answer: False

Explanation: No, brass is not a ferrous alloy.  

      Ferrous alloys are those alloy which contain iron like cast iron, steel, strain-less steel, high carbon steel. Brass on the other hand does not contain any composition. of iron hence it can not be considered as a ferrous alloy. Brass comes under the category of non- ferrous made with a composition of copper and zinc, however their proportion is not strict and we can add other elements like aluminium or lead to alter its durability or corrosiveness.  

5 0
3 years ago
Other questions:
  • In javaWrite a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the out
    9·1 answer
  • Exhaust gas from a furnace is used to preheat the combustion air supplied to the furnace burners. The gas, which has a flow rate
    13·1 answer
  • Identify the advantages of using 6 tube passes instead of just 2 of the same diameter in shell-and-tube heat exchanger.What are
    10·1 answer
  • **Please Help. ASAP**
    15·1 answer
  • The theoretical maximum specific gravity of a mix at 5.0% binder content is 2.495. Using a binder specific gravity of 1.0, find
    10·1 answer
  • A long bone is subjected to a torsion test. Assume that the inner diameter is 0.375 in. and the outer diameter is 1.25 in., both
    14·1 answer
  • When CO2 rises, temperature rises. Why do you think this is?
    15·1 answer
  • A frequenter of a pub had observed that the new barman poured in average 0.47 liters of beer into the glass with a standard devi
    14·1 answer
  • Which is an alloy made up of iron and carbon and has high compressive and tensile strength?
    11·1 answer
  • 40 POINTS IF ANSERED WITHIN 10 MINS
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!