Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Project_4.cpp : This file contains the 'main' function. Program execution begins and ends there.
- //
- #include <iostream>
- #include <iomanip>
- using namespace std;
- // Name: Wallace Wu
- // Course: ECE1310-04
- // Assignment: Project 4
- // Due Date: 2/27/20
- // Description: This project will familiarize us with using loops and setprecision.
- int main()
- {
- int ftype;
- int M;
- cout << "WALLACE WU" << endl;
- cout << endl;
- // Step 1
- cout << "Step 1:" << endl;
- cout << "Enter format type 1 (fixed) 2 (scientific) 3 (default) : ";
- cin >> ftype;
- cout << "Enter setprecision value M: ";
- cin >> M;
- int x1, x2, y1, y2;
- // Step 2
- cout << "Step 2:" << endl;
- cout << "enter x1, y1, x2, y2: ";
- cin >> x1 >> y1 >> x2 >> y2;
- cout << "y = ";
- // Step 3
- int stepsize;
- int N;
- cout << "Step 3:" << endl;
- cout << "enter N: ";
- cin >> N;
- cout << "step_size = " << stepsize;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement