WRITE AN INTERACTIVE PROGRAM that allows the user to enter (at least two)....UP-
ID: 3799999 • Letter: W
Question
WRITE AN INTERACTIVE PROGRAM
that allows the user to enter (at least two)....UP-TO 15 vectors that are to be added........display the resultant on the screen
study in your text the if statement
[use the if statement to make sure the user only enteres between two and 15 vectors] **Comments all the line
use <iostream>, <fstream>, <cmath>,< math.h> as a header file, do not use any other
one of my friend did it like below, i think all patterns are good here, but professor asked to use if statement to make sure the user only enteres between two and 15 vectors
***please follow teachers hint, do not do it other way, if you do it otherway, its not going to help me, professor very strict*** ;(
Professor hint:
***Please follow his direction***
Comments all The line*** do not use any other header than he used***
Thank you.
Explanation / Answer
using namespace std; #include #include //functional prototype void get_data(); void resultant(); int N, M, K; float mag[20], dir[20]; int main() { coutN; if(NRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.