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
Is EPA is the organization that was formed to ensure safe and health working conditions for workers by setting and enforcing sta
mr_godi [17]
Let me search this up
3 0
3 years ago
Users of E85 see a drop in gas mileage because ethanol can't produce the same
liraira [26]

Answer:

A

Explanation:

Due to ethanol's lower energy content, FFVs operating on E85 get roughly 15% to 27% fewer miles per gallon than when operating on regular gasoline, depending on the ethanol content.

7 0
3 years ago
A specimen of commercially pure copper has a strength of 240 MPa. Estimate its average grain diameter using the Hall-Petch equat
romanna [79]

Answer:

3.115× 10^{-3} meter

Explanation:

hall-petch constant for copper is given by

      S_0=25 MPa

      k=0.12 for copper

now according to hall-petch equation

S_Y=S_0 +\frac{K}{\sqrt{D}}

240=25+\frac{0.12}{\sqrt{D}}

D=3.115× 10^{-3} meter

so the grain diameter using the hall-petch equation=3.115×  10^{-3} meter

5 0
3 years ago
True or False<br> Most coolants you put into your car are toxic.
swat32

Answer: True.

Explanation: Coolant is flammable and toxic.

8 0
3 years ago
Read 2 more answers
Discuss the difference between the observed and calculated values. Is this error? If yes, what is the source?
Scrat [10]

Answer and Explanation:

In any experiment, the observed values are the actual values obtained in any experiment.

The calculated values are the values that are measured by using the observed values in a formula.

The observed values are primary values whereas the calculated values are the secondary values as calaculations are made using observed values.

Yes, if the observed values are of low accuracy.

The values should be recorded with proper care and attention in order to avoid any error.

8 0
3 years ago
Other questions:
  • The voltage across a device and the current through it are:
    9·2 answers
  • ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    9·1 answer
  • What are the causes of electric shock​
    13·1 answer
  • Why are open systems harder to study than closed systems?​
    6·1 answer
  • As the impurity concentration in solid solution of a metal is increased, the tensile strength:________.a) decreasesb) increasesc
    9·1 answer
  • Water is flowing in a metal pipe. The pipe OD (outside diameter) is 61 cm. The pipe length is 120 m. The pipe wall thickness is
    9·1 answer
  • Consider a potato being baked in an oven that is maintained at a constant temperature. the temperature of the potato is observed
    14·1 answer
  • You are given a C program "q2.c" as below. This program is used to calculate the average word length for a sentence (a string in
    5·1 answer
  • Why is communication one of the most important aspects of an engineer's job?
    12·1 answer
  • A thin aluminum sheet is placed between two very large parallel plates that are maintained at uniform temperatures T1 = 900 K, T
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!