Answer:
Using a hand-held or hands-free cell phone while driving will delay a driver's reactions as much as having a blood alcohol concentration of 0.08%.
Explanation:
Answer:
This program is created to Calculate Fast Freight Shipping Rates. It prompts user to enter the weight of the package, calculates the shipping charges of the package and display the charges on the screen.
Explanation:
#include<iostream>
using namespace std;
// declaring functions
void Display();
float getWeight ();
float setShipping (float);
void showShipping (float);
main() // main function
{
float Weight, Shipping;
Display();
Weight=getWeight(); //function call
Shipping=setShipping(Weight); //function call
showShipping(Shipping);
//function call
}
void Display() // function to display message
{
cout<<"Calculate Fast Freight Shipping Rates Here:"<<endl;
}
float getWeight () // function to get weight
{
float Weight;
cout<< "Enter package weight:";
cin>> Weight;
return Weight;
}
float setShipping (float Weight) //funtion to calculate shipping
{
float calShipping;
if (Weight > 10)
calShipping=3.80;
else if (Weight > 6)
calShipping= 3.70;
else if (Weight > 2)
calShipping= 2.2;
else
calShipping= 1.10;
return calShipping;
}
void showShipping (float Shipping) // funtion to disps chargepping shilay
{
cout<<"Shipping Charges: $" << Shipping;
}
<span>To use an online resource, it should be relevant to the topic. It should be credible, coming from an expert on the topic. Finally, it should be valid, coming from a source that is based in truth or fact.</span>
Answer:
See Explanation
Explanation:
The question has been answered; however, the program is not dynamic enough because the output will always be 26.
To make it dynamic, replace the following lines of code:
<em>numDrinks = 4;
</em>
<em>numTacos = 6;
</em>
<em />
with:
<em>cout<<"Number of drinks: ";</em>
<em>cin>>numDrinks;</em>
<em>cout<<"Number of Tacos: ";</em>
<em>cin>>numTacos;</em>
<em />
The above lines of code will let the user input different values for numDrinks and numTacos each time the program is executed.
The file that Tristan must open to install and play his new video game is the one with the extension .exe
<h3>What is the .exe extension?</h3>
The .exe extension is a computer extension that refers to the executable file of a computer program.
Generally, video games have the .exe extension to be installed on the computer. In this process the file creates a folder with all the game information.
Once it is installed, create another file with the same extension to run the game, this icon would be the direct access to the game.
Learn more about computers in: brainly.com/question/950632