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

  Creating a single table to hold the information

Think about a typical sales invoice that would include the given information. Create a single table to hold all of the information needed to store an invoice including this information.

  Describe an algorithm that takes as input a list

Describe an algorithm that takes as input a list of n distinct integers and finds the location of the largest even integer in the list or returns 0 if there are no even integers in the list.

  Algorithm of prim

NFR4: Prim's algorithm should be used to find a minimum spanning tree (see FR6). NFR5: Dijkstra's  algorithm should be used to find a shortest path between two stations (FR7).

  Difference between a problem and an opportunity

What was the problems and/or opportunities facing Delta in late 1997? What is the difference between a problem and an opportunity

  Compare the array-based and link-based implementations

Compare the array-based and link-based implementations of the ADT bag operation

  Recursive implementation of euclids algorithm

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

  Data systems and design

Suppose if you have a program with a housekeep() module, a mainloop() module, and a finishup() module, when is the second input record usually read?

  Explain queue crawl through memory in direction of its head

Does queue crawl through memory in direction of its head or its tail? Describe your answer. Describe how lack of metrics for measuring certain software properties affects software engineering discipline.

  Data structure used to implement an associative structure

In computing, a hash table (such as a Java HashMap) is a data structure used to implement an associative structure that maps keys to values.

  Consider you want to demonstrate a decision treetable to

consider you want to demonstrate a decision treetable to someone who has never seen one. think of a scenario with two

  Describe the key components in requirements elicitation

Analyze and describe functional and nonfunctional requirements in software engineering and describe the key components in requirements elicitation and analysis and use technology and information resources to research issues in software engineering.

  Sorting algorithm to put whole array in order

Assume you have the array of 1000 records in which only few are out of order and they are not very far from their correct positions.

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