Design the program consider will the direction and


Question 1: Define a Physics_vector class which consists of a struct containing the direction and magnitude, and also define a function add_physics_vector that takes two physics vectors and returns their physics vector sum.

The main should ask for 4 lines of input, the direction and magnitude of two physics vectors, and print the vector sum on two lines (direction and magnitude); repeat until the user enters a vector of -1 -1.

As you design the program consider:

- Will the direction and magnitude be integers or doubles?

- Will the input vectors be passed by value, by reference, or by const reference?

- What will be public in the class?

Describe each and every question in depth with examples.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Design the program consider will the direction and
Reference No:- TGS0956292

Expected delivery within 24 Hours