Define the purpose of forward and backward traceability.
if there is a work product element that doesn’t trace backwards to the product requirements than what possibilities might be the reason behind it
Just post is a new courier service company which services all provinces in the South Africa. They charge their customers based on the weight of the parcel as indicated in the table below. However, if kilograms are above 50, the cost is charged according to the number of hours it took to deliver. Although the time is entered in minutes but they are charged R95.00 per hour. Clients may also add some extras to the delivery such as insurance which is charged 8.5% and priority is charged at 5% of the charge.
Table 1: Distance Weight Cost (R)
Local
Under 5 kg
R125.00
Local
5 kg up to 20 kg
R175.00
Local
Over 20 Kg
R250.00
Long
Under 5 kg
R390.00
Long
5 kg up to 20 kg
R450.00
Write a program that will assist with calculating the postage amount.
2.1 Create a C++ source file called Postage and save it in a file called Postage.cpp.
2.2 Create the following functions:
Functions: Function Description Marks
2.2.1
enterPostageDetails()
This function will receive five parameters that will consists of the minutes, the weight of a parcel, the distance, a status indicate if the parcel is a priority and if it will be insured.
The function will then prompt the user for the following as indicated in Figure 2.1 and Figure 2.2:
the minutes,
the weight of a parcel, the distance,
priority (Y/y Or N/n) and an insurance indication (Y/y Or N/n).
2.2.2
determineCost()
This function will receive three parameter that will consists of the distance, weight and time in hours.
The function must then determine and return the postage cost for that particular distance using the information above and the information on Table 1.
11
2.2.3
convertTime()
This function will receive one parameter that will consists of the delivery time in minutes.
This function must then convert the given time from minutes to hours and it must then return the number of hours in that given time.
7
2.2.4
calcAmtDue()
This function will receive six parameter that will consists of the postage cost, an indication whether the insurance is the taken and whether the parcel is priority or not, the insurance amount, priority amount as well as the amount due.
This function must then calculate the insurance, priority amount and the amount due respectively.
7
2.2.5
main()
Add necessary pre-processor directives.
NB: The functions must be implemented below the main.
Declare all necessary constants and variables.
Allow the program to randomly generate an invoice number, the range must be from 105 to 550.
Prompt the user for the postage details by calling the correct function.
Calculate the postage cost as well as the amount due by calling the correct functions.
Display the postage details as indicated in Figure 2.3 and Figure 2.4.
This process must be repeated until there are no parcels to deliver (See Figure 2.4).
Display the number of deliveries for both Local or Long distances and the total revenue when the program terminates (See Figure 2.5).
Anti-Diagonals
Given a MxN matrix,write a program to print all Anti-Diagonals elements of matrix
Input
The first line of input will contain a M, N values separated by space.
The second line will contain matrix A of dimensions MxN.
Output
The output should contain anti-diagonal elements separated by a line.
Explanation
For example, if M = 2, N = 3
input
1 5 5
2 7 8
output:
1
5 2
5 7
8
This function will receive three parameter that will consists of the distance, weight and time in hours.
The function must then determine and return the postage cost for that particular distance using the information above and the information on Table 1.
Given a sentence S, write a program to print the frequency of each word in S, where words are sorted in alphabetical order.Input
The input will be a single line containing a string S.Output
The output contains multiple lines, with each line containing a word and frequency of each word in the given string separated by ": ", where words are sorted in alphabetical order.Explanation
For example, if the given sentence is "Hello world, welcome to python world", the output should be
Hello: 1
python: 1
to: 1
welcome: 1
world: 2
Just post is a new courier service company which services all provinces in the South Africa. They charge their customers based on the weight of the parcel as indicated in the table below. However, if kilograms are above 50, the cost is charged according to the number of hours it took to deliver. Although the time is entered in minutes but they are charged R95.00 per hour. Clients may also add some extras to the delivery such as insurance which is charged 8.5% and priority is charged at 5% of the charge.
Table 1: Distance Weight Cost (R)
Local Under 5 kg R125.00
Local 5 kg up to 20 kg R175.00
Local Over 20 Kg R250.00
Long Under 5 kg R390.00
Long 5 kg up to 20 k R450.00
Write a program that will assist with calculating the postage amount.
2.1 Create a C++ source file called Postage and save it in a file called Postage.cpp
. 2.2 Create the following functions: Functions: Function Description Marks
2.2.1 enterPostageDetails() This function will receive five parameters that will consists of the minutes, the weight of a parcel, the distance, a status indicate if the parcel is a priority and if it will be insured. The function will then prompt the user for the following as indicated in Figure 2.1 and Figure 2.2: the minutes, the weight of a parcel, the distance, priority (Y/y Or N/n) and an insurance indication (Y/y Or N/n).
2.2.2 determineCost() This function will receive three parameter that will consists of the distance, weight and time in hours. The function must then determine and return the postage cost for that particular distance using the information above and the information on Table 1. 11
2.2.3 convertTime() This function will receive one parameter that will consists of the delivery time in minutes. This function must then convert the given time from minutes to hours and it must then return the number of hours in that given time.
2.2.4 calcAmtDue() This function will receive six parameter that will consists of the postage cost, an indication whether the insurance is the taken and whether the parcel is priority or not, the insurance amount, priority amount as well as the amount due. This function must then calculate the insurance, priority amount and the amount due respectively.
2.2.5 main() Add necessary pre-processor directives. NB: The functions must be implemented below the main. Declare all necessary constants and variables. Allow the program to randomly generate an invoice number, the range must be from 105 to 550. Prompt the user for the postage details by calling the correct function. Calculate the postage cost as well as the amount due by calling the correct functions. Display the postage details as indicated in Figure 2.3 and Figure 2.4. This process must be repeated until there are no parcels to deliver (See Figure 2.4). Display the number of deliveries for both Local or Long distances and the total revenue when the program terminates (See Figure 2.5).
Design a communication model that will be used to deploy a wan for your firm.., using ABCD as the branches
State whether each of the following is true or false. Explain why.