logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Write an Assemby program that prompts the user to enter the weight of the package and display the shipping cost. If the weight is greater than 20 pounds, display the following message, “the package cannot be shipped.”

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

 There are 2 simple assignments. Can you do this in the Assembly language? 

 

Project 1

A Shipping company uses the following function to display the flat rate cost (in dollars) of shipping based on the weight of a package (in pounds).

 

 

Cost function c(w) Cost Weight

$3.5 0 < w < = 1

$5.5 1 < w <= 3

$8.5 3 < w <= 10

$10.5 10 < w <= 20

Can’t be shipped 20 < w

Write an Assemby program that prompts the user to enter the weight of the package and display the shipping cost. If the weight is greater than 20 pounds, display the following message, “the package cannot be shipped.”

 

You can use any Pep/9. I recommend that you provide the output as a string.

 (Links to an external site.)

https://www.youtube.com/watch?v=1VAcZr2wQzo

 (Links to an external site.)

https://www.youtube.com/watch?v=BpJCAafw2qE

 (Links to an external site.)

 

Design:

Code:

Output:

 

Project 2

 

 

Suppose that the tuition for a university is $1,000 this year and increases 4% every year. In one year, the tuition will be $1,040. Write a program using for loop that computes the tuition in ten years and the total cost of four years’ worth of tuition after the tenth year.

Use Pep/9.

Design:

Code:

Output:

 

PEP/9 Resources:

https://github.com/jcink/pep8/blob/master/divide.pep

 (Links to an external site.)

 

https://www.cslab.pepperdine.edu/warford/cosc330/Pep9-Reference.pdf

 (Links to an external site.)

https://www.youtube.com/watch?v=nCzVw5p7hRo

 

 

(5/5)
Attachments:

Expert's Answer

931 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

931 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

618 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

644 Answers

Hire Me
expert
Husnain SaeedComputer science

651 Answers

Hire Me
expert
Atharva PatilComputer science

905 Answers

Hire Me

Get Free Quote!

391 Experts Online