Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need to be done in python Define a class \"art\". The properties of an art objec

ID: 3579436 • Letter: N

Question

Need to be done in python

Define a class "art". The properties of an art object are: name, production date, artist, original location, current location. Define an inherited class "painting". The properties of a painting are: material, height (in cm), width (in cm). Define an inherited class "architecture". The properties of an architectural structure are: height (in m), style. Any property that is unknown should be entered as 0. Now, define two paintings: and define two architectural structures: Show user the names of the art works which are not exhibited in their original locations. (Do not use Tkinter) Ask user to enter a year in a Tkinter window and press a button. Show user, in a Tkinter window, the names and the production dates of the art works which are created before that year. You can (but do not have to) use the same window for input and output. IMPORTANT: Your code should work for any number of art works! (Both for I and II.)

Explanation / Answer

#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cmath>
using namespace std;
double bisection(double, double, double, int);
int main()


//
// division algorithmic program
//
//
void printpars(int=0, double=0, double=0, double=0, double=0); // ex gratia
double bisection(double a, double b, double tol, int n0)
three Set p = a + (b - a)/2 . (Compute pi)
double p = a + (b-a)/2.;
  
// Step three.opt OUTPUT i a b p f(p) (optional)
printpars(i, a, b, p, f(p)); // optional: parameters
  
// Step four If abs(f(p)) < one.E-19 or (b - a ) /2 < tol then
if(fabs(f(p)) < one.E-19 || (b-a)/2. < tol)
come back p; // (Procedure completed with success.)
  
// Step five Set i = i + one
++i;
  
// Step half-dozen If f(a)f(p) > zero then set a = p (compute ai, bi )
// else set b = p
if(f(a)*f(p) > 0)
a = p;
else
b = p;
}
  
// Step seven OUTPUT (“Method unsuccessful once N0 iteractions, N0 = ‘, N0 );
// (procedure completed unsuccessfully.)
// STOP
cout << "Method unsuccessful once N0 iteractions, N0 = "<<n0<<" ";
exit(2);
  
}

// Extra: print parameters
void printpars(int i, double a, double b, double p, double fp)
initial = true;
if (first)providing 1st time
1st = false;
cout << setw(3) << "i ";
cout << setw(9) << "a ";
cout << setw(9) << "b ";
cout << setw(9) << "p ";
cout << setw(9) << "fp ";
cout << fastened << showpoint << setprecision(5);
return;
}
cout << setw(3) << i << " ";
cout << setw(9) << a << " ";
cout << setw(9) << b << " ";
cout << setw(9) << p << " ";
cout << setw(9) << fp<< " ";
  
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote