Answer:
b) f2.i is 1 f2.s is 2
Explanation:
i is an instance variable and s is static, shared by all objects of the Foo class.
Answer:
International System of Units
Explanation:
Answer:
O DTP programs are basically layout programs.
Explanation:
Desktop publishers are vector-based graphics software, and a perfect example of one such software is Microsoft Publisher. You can consider Adobe Illustrator, and Corel Draw as well, but they are huge software meant for many more things, and hence let's include only Microsoft publisher. And a long list follows as well. And they are in general a layout program used to prepare cards, advertisements, infographics, etc, and in fact the layout for them. And hence its more appropriate to say that it is basically a layout program that uses vector graphics to accomplish its goal. Various formats supported are like SVG, EPS, PDF,AI etc. And these are vector graphics based formats. The other type is Raster, and that includes Photoshop etc, with formats iike jpeg, gif etc, and which are pixel based.
It refers to the physical elements of the internet
Answer:
Explanation:
#include <iostream>
using namespace std;
int costdays(int);
int costhrs(int,int);
int main()
{
int dd,hh,mm,tmph,tmpd,tmpm=0;
int pcost,mcost=0;
cout<<"Enter Parking time" << endl;
cout<<"Hours: ";
cin>>hh;
cout<<"Minutes: ";
cin>>mm;
if (mm>60)
{
tmph=mm/60;
hh+=tmph;
mm-=(tmph*60);
}
if (hh>24)
{
tmpd=hh/24;
dd+=tmpd;
hh-=(tmpd*24);
}
if ((hh>4)&&(mm>0))
{
pcost+=costdays(1);
}
else
{
mcost=costhrs(hh,mm);
}
cout<<"Total time: ";
if (dd>0)
{
cout<<dd<<"days ";
pcost+=costdays(dd);
}
pcost+=mcost;
cout<<hh<<"h "<<mm<<"mins"<<endl;
cout<<"Total Cost :"<<pcost<<"Won";
return 0;
}
int costdays(int dd)
{
return(dd*25000);
}
int costhrs(int hh,int mm)
{
int tmpm, tmp=0;
tmp=(hh*6)*1000;
tmp+=(mm/10)*1000;
tmpm=mm-((mm/10)*10);
if (tmpm>0)
{
tmp+=1000;
}
return(tmp);
}