The question involves basic polymorphism. The following is the partial flow of the program.
baseItemPtr = new BaseItem();
baseItemPtr.setLastName("Smith");
derivedItemPtr = new DerivedItem();
derivedItemPtr.setLastName("Jones");
derivedItemPtr.setFirstName("Bill");
itemList.add(baseItemPtr);
itemList.add(derivedItemPtr);
for (i = 0; i < itemList.size(); ++i) {
itemList.get(i).printItem();
}
return;
Answer:
This program is executed in Dev C++ using C++ as a programming language.
Explanation:
#include<iostream>
using namespace std;
int main()
{
int carModelNo;
cout<<"Enter Car Model Number ";
cin>>carModelNo;
EnterAgain:
if(carModelNo==1969)
{
cout<<"Few safety features.";
}
else if(carModelNo==1979)
{
cout<<"Probably has seat belts.";
}
else if(carModelNo==1999)
{
cout<<"Probably has antilock brakes.";
}
else if(carModelNo==2000)
{
cout<<"Probably has airbags.";
}
else
{
"Car Model Information Currently not Available";
cout<<"Please enter the car model such as 1969, 1979, 1999, or 2000 ";
cin>>carModelNo;
goto EnterAgain;
}
return 0;
}
Answer:
Differ in the quality of their transmission.
Explanation:
For example, when using the public phone box, wired transmission is done not wireless as in cell phones. Public phone box use electronic signals transmitted through a cable network to send voice data which are not very effective for long distance communication.
However, cell phones wirelessly send electromagnetic wave signal to a cell tower close to the caller and then the information is then transmitted to cell tower close to the receiver within a split of a second. This method of communication has much advantages.
She would use Ctrl and C bc thats the copy short cut
Ctrl and v is pasting
Ctrl and a is selecting all text and
Ctrl and z is for cutting the text