1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
marissa [1.9K]
4 years ago
7

//Display message Module main () // Declare variables Declare real weight Declare real shipping //Get package weight Call getWei

ght (weight) //Calculate the Shipping Charge Call setShipping (weight, shipping) //Display Shipping Charge Call showShipping (shipping) End Module //Display program Module showing () Display "Calculate Fast Freight Shipping Rates Here." End Module //Receive Input From User Module getWeight (Real Ref inputWeight) Display "Enter package weight:", weight Input Weight End Module //Set Shipping Rates Module setShipping (Real weight, Ref calShipping) If weight > 10 Then Set calcShipping = 3.80 Else If weight > 6 Then Set calcShipping = 3.70 Else If weight > 2 Then Set calcShipping = 2.20 Else Set calcShipping = 1.10 End If End Module //Display shipping charges Module showShipping (Real shipping) Display "Shipping charge: $", shipping End Module
Computers and Technology
1 answer:
galina1969 [7]4 years ago
6 0

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;

}

You might be interested in
What does this function do in the code?
miskamm [114]

Answer:

Which part of the code??

Explanation:

5 0
3 years ago
Read 2 more answers
You are reviewing a friend’s HTML project. You notice that the only metadata is the title. Furthermore, you ask your friend abou
docker41 [41]

Generally, the meta title is used to specify the main title of a website. The meta title is the text that is displayed in the search engine results pages, and in the tabs of a web browser. It indicates what a page is about and what it is about. You should keep it.

<em>Hope it helps :)</em>

4 0
1 year ago
To apply format to text, both the text and the text box must be selected.
Xelga [282]
I say it is true
hope this helps!
5 0
3 years ago
Of the following which would be the best data representation for this puzzle in a puzzle class?
sladkih [1.3K]

please include the puzzle and or questions.

5 0
3 years ago
All of the following are helpful test taking strategies EXCEPT_______________.
guajiro [1.7K]
Complete The test as quickly as possible
6 0
3 years ago
Read 2 more answers
Other questions:
  • Nonvolatile in the context of data storage means ________________. a. the data can't be changed in a data warehouse. b. the data
    11·1 answer
  • Internally, computers are constructed from circuitry that consists of small on/off switches. What is the most basic circuitry-le
    12·1 answer
  • Which reading strategy refers to reading only the key words and phrases?
    13·2 answers
  • What is a step by step procedure written to carry out a task?
    11·1 answer
  • Should the use of hacktivists by a country against enemy organizations be considered an act of war? Why or why not? How about th
    8·1 answer
  • Suppose testcircle1 and circle1 in listing 9.1 are in two separate files named testcircle1.java and circle1.java, respectively.
    14·1 answer
  • Suppose that a computer has three types of floating point operations: add, multiply, and divide. By performing optimizations to
    7·1 answer
  • quiz Flavio visits a local coffee shop on his way to school and accesses its free Wi-Fi. When he first connects, a screen appear
    7·1 answer
  • Encrypting text allows us to encrypt and decrypt the text using a special key.
    9·1 answer
  • What is the output for this program?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!