Answer:
Program is as follow:
Explanation:
#include<iostream.h>
#include < conio.h>
bool isVowel(char b)
{
return
( b=='a' || b=='A' || b=='e' || b=='E' || b=='i' || b=='I' || b=='o' || b=='O' || b== 'u' || b=='U');
For swaoing the vowels
string reverseVowel ( String str)
{
int j = 0;
string v ;
for ( int i= 0 ; str [i]]!='0'; i++)
if( isv(str[i]))
v[j++] = str[i[;
for ( int i = 0; str[i]! = '0' ; i++
if ( isv (str[i]))
str{i} = v [--j]
return str;
}
int main ()
{ string str = " Programming";
cout<<swapv(str);
return 0 ;
}
The following code will program that prompts the user to enter the num- ber of hours a car is parked at the airport and outputs the parking fee.
<u>Explanation:</u>
Code:
#include<iostream>
using namespace std;
int main()
{
float hours;
cout <<"Enter number of hours a car parked at the airport: "; // prompt the user to enter hours.
cin >> hours ; // strong the hours
if (hours > = 0 && hours < =3 ) // if 0 < = h < = 3
cout << "Parking fee: 5"; //printing parking fee is 5.
else if (hours > 3 && hours < = 9)//if 3 < h < = 9
cout<<"Parking fee: "<<6*int(hours);//converting float value to int the multiplying with 6 then printing fee.
else//if 9 < h < = 24
cout<< "Parking fee: 60";// printing parking fee 60.
return 0;
}
0.0005 x 10⁻⁴ Farad = 0.000 000 05 Farad.
1 pF = 0.000 000 000 001 Farad
Divide them and get 50000 pF.
BIOS instructs the computer on how to preform basic functions such as booting and keyboard control. It is also used to identify and configure the hardware in a computer