<u>Answer:</u>
<em>feetFab1 = int(input(""Enter the value in feet for the 1st piece of fabric: ""))</em>
<em>inchFab1 = int(input(""Enter the value in inches for the 1st piece of fabric: ""))</em>
<em />
<em>feetFab2 = int(input(""Enter the value in feet for the 2nd piece of fabric: ""))</em>
<em>inchFab2 = int(input(""Enter the value in inches for the 2nd piece of fabric: ""))</em>
<em />
<em>feetSum = (feetFab1 + feetFab2)</em>
<em>inchSum = (inchFab1 + inchFab2)</em>
<em />
<em>totalFeet = ((inchSum % 12) + feetSum)</em>
<em>totalInch = (feetSum % 12)</em>
<em>print (""Feet: "" + str(totalFeet) + "". Inches: "" + str(totalInch))</em>
Answer:
See explaination for program code
Explanation:
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main() {
string name;
int age;
cout << "Enter name of user: ";
getline(cin, name);
cout << "Enter age of user: ";
cin >> age;
ofstream outdata("outdata");
outdata << name << " " << age << endl;
outdata.close();
return 0;
}
Answer:
Yes
Explanation:
A nonlinear optimization problem is indeed a optimization problem in which there are nonlinear elements involved either as the objective function or one or more constraints may be nonlinear also. Let me show you an example. Let optimize de following function:

These are the constraints:

The last constraint consists on nonlinear elements, so this problem in fact a nonlinear optimization problem.