// Program 03prg01.cpp rewritten as a C++ class.
// The only difference is the "public" keyword.
#include <iostream>
#include <iomanip>
using namespace std;

class Fruit{
public:
  double weight;
  double price;
};

int main(){

  Fruit orange, apricot;

  // prices
  orange.price  = 2.50; // TL/kg
  apricot.price = 3.25; // TL/kg

  cout << "Input the amount of orange  in kg: "; cin >> orange.weight;
  cout << "Input the amount of apricot in kg: "; cin >> apricot.weight;

  cout << "\nTotal prices (TL):\n";
  cout << setprecision(2) << fixed;
  cout << "Orange  = " << orange.price * orange.weight << endl;
  cout << "Apricot = " << apricot.price * apricot.weight << endl;

  return 0;
}
