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);
}
Answer:
a. Transparency
Explanation:
What Samira actually did was Corporate Transparency. Her concerns about health of those people who purchased the company's products is right from the legal and moral point of views. There are several laws protecting consumers in the US. For example The Food and Drug Administration is in charge of ensuring that foods and medicines are safe for their consumption.
Answer:
force and a single particla of matter
Using the computer language in python to write a function code that personalized house signs
<h3>Writting the code in python:</h3>
<em>#Assign varibles</em>
<em>charge = 0.00</em>
<em>numChars = 8</em>
<em>color = "gold"</em>
<em>woodType = "oak"</em>
<em />
<em>#Checking for number of characters</em>
<em>if numChars > 5:</em>
<em>charge = 35 + (numChars-5)*4</em>
<em>elif numChars > 0:</em>
<em>charge = 35</em>
<em />
<em>#Checking wood type</em>
<em>if woodType == "oak":</em>
<em>charge += 20</em>
<em />
<em>#Checking for color</em>
<em>if color == "gold":</em>
<em>charge += 15</em>
<em />
<em>#Print output</em>
<em>print("The charge for this sign is $"+str(charge)+".")</em>
See more about python at brainly.com/question/13437928
#SPJ1