Program that reports the sales for albatross corporation

Assignment Help Programming Languages
Reference no: EM132238083

Assignment - Programming Projects

Project 2 -

Part 1 - Implement the following (in attached file) C++ code fragment in assembly language. Use the block-structured .IF and .WHILE directives. Assume that all variables are 32-bit integers.

Your assembly language program must also display as output the number of times a member of ' array ' qualified for inclusion into the ' sum ' and what the final value of the variable ' sum ' was. (Hint: you may have to add another variable.) Feel free to use the author's procedures in the book's link library. Use only the procedures that were introduced in chapter 5.

Part 2 - Write an assembly language program that asks the user to enter an integer dollar amount between 1 and 5,000. Your program should display the corresponding class description using the following table. Write the program so that it executes until the user inputs some value that you determine to be the "sentinel value". Your program must guard against and provide user messages for input values that are outside the valid range.

Donation Amount (dollars)

Class of Donation

$4,000 to $5,000

Platinum

$3,000 to $3,999

Gold

$2,000 to $2,999

Silver

$1,000 to $1,999

Bronze

$1 to $999

Copper

Project 3 -

Write an assembly language program that accumulates and reports the sales for the Albatross Corporation. The Albatross Company has four salespeople who sell five different products. The four salesperson are each identified by a number from 1 to 4. Each products is identified by a number from 1 to 5. Sales are reported by entering the salesperson's number, the quantity sold, and the product number. For example, to report that salesperson 2 sold 100 units of product 4, you would enter 2 100 4.

Your program must store the sales data in a two-dimensional array (4 rows by 5 columns). Each row represents a salesperson. Each column represents a product. Initialize the array to zeroes and allow your user to enter data. When the user enters a negative number for a salesman number, terminate the input phase of your program and display a report that shows the total sales for each salesperson and the total sales for each product.

Section 9.4 of our textbook discusses two-dimensional arrays. Section 9.4.2 discusses Base-Index Operands and even contains an example of how to calculate a row sum for a two-dimensional array.

Project 4 -

One of the very practical uses of assembly language programming is its ability to optimize the speed and size of computer programs. While programmers do not typically write large-scale applications in assembly language, it is not uncommon to solve a performance bottle neck by replacing code written in a high level language with an assembly language procedure.

In this programming project you will be given a C++ program that generates an array of pseudorandom integers, sorts the array, and then searches the array for a particular value. The C++ program uses the binary search algorithm to determine if the search value is one of the elements in the array. A binary search procedure is considered an efficient way to search an ordered array.

Your job is to write an assembly language procedure that also performs the binary search. The C++ program will time multiple searches performed by both the C++ code and your assembly language procedure and compare the result. If all goes as expected, your assembly language procedure should be faster than the C++ code.

As always, start small. DO NOT be the Cookie Monster and gobble up the whole project at once. Steps you might consider, but are not limited to are:

  • Have your assembly language procedure return the number of elements in the array. This will tell you if what is being passed as an argument is the value you expected.
  • Have your assembly language procedure return the value of the first element in the array. This will tell you if you understand how to address and retrieve the value of an element in the array.
  • Have your procedure return the second (or fifth) element in the array.
  • Calculate the subscript of the "middle" element in the array and return the value of that subscript. This will confirm that you can make one of the calculations needed to implement the binary search and retrieve a particular element in the array.
  • Calculate the subscript of the "middle" element in the array and return the value of that element in the array. This will confirm that you can retrieve any element in the array.

This project will provide you with the opportunity to:

  • Link an assembly language procedure to an existing C++ program.
  • Demonstrate your ability to work with a one-dimensional array.
  • Show that you can implement a while loop in assembly language.
  • Display your understanding of what an assembly language procedure is and how they can be used.
  • Provides a chance for you to show that you understand how to compare values and take conditional action based on the results.
  • Observe how assembly language procedures can be used to optimize.

Attachment:- Assignment Files.rar

Reference no: EM132238083

Questions Cloud

Scanning process involves both internal and external factors : The most common type of environmental scanning process involves both internal and external factors.
What implications does this have for adopting a sense-making : Identify a current change in an organization with which you are familiar. Alternatively, identify a current public issue about which "something must be done."
Various discounts on training business course fees : The online school, UTrainMe will offer various discounts on training business course fees.
What is your preferred decision-making style : What is your preferred decision-making style? How does your style work for you? Are you always satisfied with your decisions?
Program that reports the sales for albatross corporation : COSC 2425 Assignment - Programming Projects. Write an assembly language program that accumulates and reports the sales for the Albatross Corporation
How can workplace diversity impact workplace ethics : Is workplace diversity an ethical issue? Why or why not? How can workplace diversity impact workplace ethics? Defend your position
Consumer-retail-food services and beverages : Which segment or segments should Chocolates El Rey target in what priority? Consumer? Retail? Food services? Beverages?
Describe expatriate compensation : Describe expatriate compensation. Consider how these options might be used for a transnational and a multi-domestic company.
Respective e-business forms and revenue models : Identify and compare their respective e-business forms and revenue models.

Reviews

len2238083

2/20/2019 1:49:51 AM

Instructions - I have attached the file for programming. Can you give me the quote? I will send the files for project 4 after the quote. The deadline is different for each program. This project will provide you with the opportunity to: Link an assembly language procedure to an existing C++ program. Demonstrate your ability to work with a one-dimensional array. Show that you can implement a while loop in assembly language. Display your understanding of what an assembly language procedure is and how they can be used. Provides a chance for you to show that you understand how to compare values and take conditional action based on the results. Observe how assembly language procedures can be used to optimize.

Write a Review

Programming Languages Questions & Answers

  How would i write a shell script, change-lines

How would I write a shell script, change-lines, which will substitute a string for a replacement string for each occurance of the string in files specified?

  Write a recursive method nmbdigits

Design and implement meanIter, the iterative version of the method - Write a recursive method nmbDigits which takes an integer value as parameter and returns the number of digits of the parameter value

  Function to recognize employee-s number and address

You are given with 45 telephone numbers of Employee who are misusing call center resources.Write down Fcomputer program function to recognize Employee no.

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Explain the problem of storing data in matrix

Each such element is accompanied by its two indexes (the row and the column). Explain in what ways such structure is similar to and/or different than list.

  Accuracy and completeness of computations

Analysis right and you have to develop a plausible argument to "prove" that your analysis is correct

  Find ultimate gain and period of a proportional controller

You are asked to model three mixing tanks in series. Find the ultimate gain and period of a proportional controller that is to control the outlet composition.

  Produce a project plan

Produce a project plan and an interim description of the project development

  Explain the functions which are useful

Explain some of the functions which you have found useful, where you found them, and how you use them. Describe good programming practices.

  Write the application using the one-dimensional array

Write the application using the one-dimensional array which inputs ten numbers from user, each number can be between and 100, inclusive.

  Write program that asks user for two digit number

Write program which asks user for two digit number and then prints English word for that number. Sample run: Enter a two-digit number: 45

  Show each months sales amount

Write a program that allows a user to enter 12 double values representing store sales for each month of one year. After all 12 values are entered, display each month's sales amount and a message

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