Answer:
The solution code is written in Python:
- COST_PER_500MI = 1.1
-
- weight = float(input("Enter weight of package: "))
- total_cost = weight * COST_PER_500MI
- print("The shipping charges is $" + str(round(total_cost,2)))
Explanation:
Based on the information given in the question, we presume the cost per 500 miles is $1.10 per pound ($2.20 / 2 pound).
Create a variable COST_PER_500MI to hold the value of cost per 500 miles (Line 1). Next, prompt user input the weight and assign it to variable weight (Line 3). Calculate the shipping charge and display it using print function (Line 4-5).
I am not sure what the 'following's are
but it should result the sum of all cells between and including C5 and C18.
A function call utilizing print-sum to print the sum of x and 400 is
print-sum(x, 400)
<h3>What is sum, exactly?</h3>
- A summation, also known as a sum, is the outcome of adding two or more numbers or quantities.
- There are always an even number of terms in a summation. There could be only two terms, or there could be one hundred, thousand, or a million.
- There are summations with an infinite number of terms. SUM Single User Monitor is its full form.
- The idea of the sum of four stresses the notion that there are numerous—if not infinite—ways to achieve particular outcomes, objectives, aspirations, or locations.
- To total the numbers, choose a cell next to them, choose AutoSum from the Home menu, and then press Enter.
To learn more SUM, refer to:
brainly.com/question/20203147
#SPJ4
The program that takes two char parameters passed by reference and swap the values in the two parameters is illustrated below.
<h3>What is a program?</h3>
A computer program is a sequence of instructions in a programming language for a computer to execute.
The program is illustrated below:
void SwapGrade(char &g1, char &g2)
{
char t = g1;
g1= g2;
g2 = t;
}
Output
B
C
C B
Learn more about program on:
brainly.com/question/26642771
#SPJ1
Answer:
information system, data analysis in medicine , medical laboratory computing , computer assisted medical decision making