Calculate and display the cost per kilogram

Assignment Help Data Structure & Algorithms
Reference no: EM13812486

Assignment  

You will need to design an application that will receive the weight of a parcel and calculate and display the cost per kilogram and the delivery charge for that parcel. Calculate the charges using the following data.

Parcel Weight (kg)Cost per kg ($)

< 2.5 kg$3.50 per kg

2.5 to 5 kg$2.85 per kg

> 5kg$2.45 per kg

Make sure that the weight entered is a positive number, otherwise your program should display an error message and end. Test your algorithm with the following three sets of data.

Test case 1: package weight of 2 kg

Test case 2: package weight of 5 kg

Test case 3: package weight of 6 kg.

Reference no: EM13812486

Questions Cloud

What are the components of a theory : What are the components of a theory
Accurate picture of the economic performance of company : Accounting Analysis:  Do the accounting practices adopted by the company  generally reflect an accurate picture of the economic performance of the  company? Did your research find any public announcements of restatement of earnings or other financial..
Determine the roles and responsiblities of teachers : Determine the roles and responsiblities of teachers, students, parents, and volunteers. Determine the topic or theme of the event and connect it to community resources.
Prepare a hr report appraisal in performance management : Prepare a HR report:360-degree appraisal in performance management. Your organizations need to include: one company outside North America, one Canadian company, one private company.
Calculate and display the cost per kilogram : You will need to design an application that will receive the weight of a parcel and calculate and display the cost per kilogram and the delivery charge for that parcel
How did the 14th amendment change the constitution : What is so important about the 14th Amendment. How did it fundamentally change the Constitution
Communication capabilities of specialized databases : Prepare a 1,050- to 1,750-word paper that explains how technology has affected the communication capabilities of specialized databases in the criminal justice system.
Question regarding the global staffing : Every company finds it challenging to recruit and select top executives for an international location. The nationals of the host country will be aware of the local laws and customs and may accept a lower wage as well, but may not be familiar with ..
Why a robust web presence matters to company executives : Analyze how social media provides a competitive advantage for an organization's Web strategy, given that many companies have started hiring personnel to handle Facebook and Twitter posts. Explain why a robust Web presence matters to company execut..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd