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]
2 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]2 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
List and describe three classifications of burns to the body.
DiKsa [7]

AnswerWhat Are the Classifications of Burns? Burns are classified as first-, second-, or third-degree, depending on how deep and severe they penetrate the skin's surface. First-degree burns affect only the epidermis, or outer layer of skin. The burn site is red, painful, dry, and with no blisters.

Explanation:

8 0
3 years ago
Read 2 more answers
Today I meant to look for my missing watch, but I could never find the time.
xxMikexx [17]

Answer:

haha i get it

Explanation:

5 0
2 years ago
Read 2 more answers
You are the project manager assigned to construct a new 10-story office building. You are trying to estimate the costs for this
Semmy [17]

Answer:

Bottom-up Estimation

Explanation:

Bottom-up estimation is a type of project cost estimation that considers the cost of individual project activities and finally sums them up or finds the aggregates. The summation gives an idea of what the entire project will cost.

This is an effective way of estimating the cost of a project as it evaluates the costs on a wholistic basis. It also considers the tiniest details during the estimation process. The process moves from the simpler details to the more complicated details.

8 0
3 years ago
A manometer containing a fluid with a density of 60 lbm/ft3 is attached to a tank filled with air. If the gage pressure of the a
8090 [49]

Answer:

The fluid level difference in the manometer arm = 22.56 ft.

Explanation:

Assumption: The fluid in the manometer is incompressible, that is, its density is constant.

The fluid level difference between the two arms of the manometer gives the gage pressure of the air in the tank.

And P(gage) = ρgh

ρ = density of the manometer fluid = 60 lbm/ft³

g = acceleration due to gravity = 32.2 ft/s²

ρg = 60 × 32.2 = 1932 lbm/ft²s²

ρg = 1932 lbm/ft²s² × 1lbf.s²/32.2lbm.ft = 60 lbf/ft³

h = fluid level difference between the two arms of the manometer = ?

P(gage) = 9.4 psig = 9.4 × 144 = 1353.6 lbf/ft²

1353.6 = ρg × h = 60 lbf/ft³ × h

h = 1353.6/60 = 22.56 ft

A diagrammatic representation of this setup is presented in the attached image.

Hope this helps!

5 0
3 years ago
In this exercise, you will write a Point structure that represents a space in two-dimensional space. This Point should have both
Afina-wow [57]

Answer:

Check the explanation

Explanation:

Points to consider:

We need to take the input from the user

We need to find the manhatan distance and euclidian using the formula

(x1, y1) and (x2, y2) are the two points

Manhattan:

|x_1 - x_2| + |y_1 - y_2|

Euclidian Distance:

\sqrt{(x1 - yl)^2 + (x2 - y2)^2)}

Code

#include<stdio.h>

#include<math.h>

struct Point{

  int x, y;

};

int manhattan(Point A, Point B){

  return abs(A.x - B.x) + abs(A.y- B.y);

}

float euclidean(Point A, Point B){

  return sqrt(pow(A.x - B.x, 2) + pow(A.y - B.y, 2));

}

int main(){

  struct Point A, B;

  printf("Enter x and Y for first point: ");

  int x, y;

  scanf("%d%d", &x, &y);

  A.x = x;

  A.y = y;

  printf("Enter x and Y for second point: ");

  scanf("%d%d", &x, &y);

  B.x = x;

  B.y = y;

  printf("Manhattan Distance: %d\n", manhattan(A, B));

  printf("Euclidian Distance: %f\n", euclidean(A, B));

 

}

Sample output

8 0
3 years ago
Other questions:
  • How do i get my camera to work in the app, i just got a new phone and it won’t pull up the camera
    14·1 answer
  • OSHA does not approve individual states to have their own safety and health program.
    15·2 answers
  • Which of the following is an activity of daily living? jogging cleaning weightlifting all of the above
    13·1 answer
  • Find the minimum diameter of an alloy, tensile strength 75 MPa, needed to support a 30 kN load.
    14·1 answer
  • A pump is used to deliver water from a lake to an elevated storage tank. The pipe network consists of 1,800 ft (equivalent lengt
    10·1 answer
  • An insulated tank having a total volume of 0.6 m3 is divided into two compartments. Initially one compartment contains 0.4 m3 of
    8·1 answer
  • What is the maximum value of the bending stress at the critical cross-section?
    14·1 answer
  • 25 points and brainliest is it A, B, C, D
    5·2 answers
  • QUESTION:
    13·1 answer
  • A driver is traveling at 90 km/h down a 3% grade on good, wet pavement. An accident
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!