Question: PHP Contract Development Swaster Technologies, a contractor for the transportation industry, has recently contracted with ground transportation firms Unishipit and MonstaiTrans. Each firm has requested
Contract Development Swaster Technologies, a contractor for the transportation industry, has recently contracted with ground transportation firms Unishipit and MonstaiTrans. Each firm has requested Swaster develop software that allows each of their operations to run more efficiently and effectively. As an employee, you have been tasked with one part of each of these systems 1. For Unishipit, you must create an application that will allow shipping company staff to determine how much they should charge for shipping a package from the source to a destination. This calculation will be based upon the weight and the distance the package has to travel given different transport modes. 2. For MonstaiTrans, you must create an application that allows this transportation firm to determine the best combination of buses and cars to use on any given day. This calculation will be based upon both passenger demand and the capacities of each of the types of vehicles. Part 1: Unishipit One method to calculate shipping cost is by using cents per mile. Below are some costs associated with the different transportation modes: Train: ruck: Car 1 cent per mile 2 cents per mile 5 cents per mile The charge for each transport mode can be calculated by multiplying the package weight (in pounds) by the number of miles by the transport mode rate (in cents) Design Requirements Code an application that calculates the total shipping charge for a package based upon the provided weight and distance travelied by each transport mode. You should output that value on a page separate from the form that you design, where you allow the user to provide the weight (in pounds) miles transported by train, milles driven by truck, and miles driven by carismall truck. You should not assume that the user will provide values for all fields, however if provided, you can assume numbers, rather than other characters, will be provided. Calculation output should only be provided for the fields a user has filled The form should be an html file that submits to a php file. Below is an example of the input form you should create (with sample user input) Cost of Package Delivery
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
