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
the uniform bar (mass m and length l ) is leaning against a wall. the coefficient of static friction between all surfaces and th
zaharov [31]

The coefficient of static friction is the ratio of the maximum static friction force (F) between the surfaces in contact before movement commences to the normal (N) force.

<h3>What is coefficient of static friction formula?</h3>
  • The friction coefficient is the ratio of the normal force pushing two surfaces together to the frictional force preventing motion between them.
  • Typically, it is represented by the Greek letter mu (). In terms of math, is equal to F/N, where F stands for frictional force and N for normal force.
  • The ratio of the greatest static friction force (F) between the surfaces in contact before movement starts to the normal force (N) is known as the coefficient of static friction.
  • A body and a surface have static and kinetic friction coefficients of 0.75 and 0.5, respectively. The body is forced to slide with a constant acceleration that is equal to A. g4 by applying a force.

Find the attachment answer.

Learn more about coefficient of static friction refer to :

brainly.com/question/25050131

#SPJ4

8 0
1 year ago
What is the mass in both slugs and kilograms of a 1000-lb beam?
Likurg_2 [28]

Answer:

31.1 slug,  453.4 Kg

Explanation:

given,

mass of the beam is 1000 lb

to convert mass of beam into slugs and kilograms.

1 lb is equal to 0.0311 slug

1000 lb = 1000 × 0.0311

             = 31.1 slug

now, conversion of lb into kg

1 lb is equal to 0.4534 kg

so,

1000 lb = 1000 × 0.4534

             = 453.4 Kg

hence, 1000 lb of beam in slugs is equal to 31.1 slugs and in kilo gram is 453.4 Kg.

7 0
3 years ago
A three-point bending test is performed on a glass specimen having a rectangular cross section of height d = 5.4 mm (0.21 in.) a
Fudgin [204]

Answer:

5.21e-2mm

Explanation:

Please see attachment

8 0
3 years ago
g Part 2: The features arrived the grammar Splitting categories and non-terminals gets out of hand fast. An alternative to the p
koban [17]

Answer:

The split is given by including spaces in both tabs

Explanation:

The bracket notation can be used to indicate the split. Here is an example:

String [ ] parts = s. split ( "[/]")

3 0
3 years ago
List three main commodity areas that drive agriculture
Alborosie

Common agricultural commodities include dairy products, wheat, and coffee. You can invest in and “trade” these products virtually, without running a farm and purchasing and storing the items yourself.

3 0
1 year ago
Other questions:
  • A 7-cm diameter horizontal pipe connected to the side of a tank at 4 m below the water surface in the tank discharges water to t
    6·1 answer
  • A steam turbine receives 8 kg/s of steam at 9 MPa, 650 C and 60 m/s (pressure, temperature and velocity). It discharges liquid-v
    7·1 answer
  • Consider a vortex filament of strength in the shape of a closed circular loop of radius R. Obtain an expression for the velocity
    10·1 answer
  • Which aluminum alloy would be a better choice for automobile sheet metal, considering this material will need to be formable int
    11·1 answer
  • Using the data given below, calculate the drop in the temperature of molten aluminum as it flows in a 15 cm long round channel o
    9·1 answer
  • Why is it important to stop climate change?
    15·2 answers
  • _____ is a process for identifying and modeling business events, who initiated them, and how the system should respond to them.
    8·1 answer
  • You are tasked to specify the flash storage device in General Electric's Data Logger Unit used in the smart power grid. The DLU
    12·1 answer
  • Sam promises to pay Sandy $2,000 in four years and another $3,000 four years later for a loan of $2,000 from Sandy today. What i
    8·1 answer
  • Does anyone know obamas last name???? please help its for a friend I swear!!!111!!11!
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!