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]
3 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]3 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
​In sql server, the cursor property ____________________ means that the cursor is used for retrieval purposes only.
enyata [817]
I have recently found this answer https://assignment.essayshark.com/blog/sql-simple-examples-database/. Then provided me with a ready assignment in a very short period of time.

5 0
3 years ago
The specific instructions that a computing device needs to boot up and control the hardware
dlinn [17]

Answer:

Firmware

Explanation:

7 0
2 years ago
Horizontal and vertical scaling usually refer to increasing the capacity of
salantis [7]

Answer:

I think servers and networks.

3 0
2 years ago
How is sharepoint used in organization today?
tatyana61 [14]
<span>To build a team site and collaborate with your colleagues</span>
8 0
3 years ago
A vector is based on...​
Vaselesa [24]

Answer:

Magnitude and direction

Explanation:

Vector quantity is a quantity which is described by magnitude and direction

8 0
3 years ago
Other questions:
  • You are attempting to update a Windows image that has been mounted under C:\mount on your local system. What command must you us
    13·1 answer
  • Explain the role of the domain name system
    15·1 answer
  • When sending an electronic cover letter, an e-mail address is sufficient contact information.
    10·2 answers
  • Tiffany is an instructor at a college that is run on student tuition and not state taxes. Which statement best describes her emp
    6·2 answers
  • Given the variable ip, already declared as a pointer to an integer, write the code to dynamically allocate memory for a single i
    15·1 answer
  • Baking Cookies. Sweet Dough Inc. bakes cookies—a popular dessert—based on the quantities ordered by their customers. Three raw m
    12·1 answer
  • Why is plastic durable?
    9·2 answers
  • BRAINLEST AND 20 POINTS! Most GUls provide all of the following except
    6·2 answers
  • People’s personal information is collected _____. Select 4 options.
    7·2 answers
  • Retype the below code. Fix the indentation as necessary to make the program work.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!