Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help with the assembly code to make this program work. enovo 13729/Wiew Assignment 2: Simple Arithmetic & Input/Output Objective In this assignment, we will

need help with the assembly code to make this program work. image text in transcribed
image text in transcribed
enovo 13729/Wiew Assignment 2: Simple Arithmetic & Input/Output Objective In this assignment, we will use the input and output library and do some basic integer arithmetic. Due Before 11:59 p.m., Thursday, 21 February Tasks You work for a Booring company and you are developing a handheld device to provide instant price quotes for potential jobs. The device takes in the Boor dimensions and then provides the total cost for the job, as well as the number of workers required to complete the work. When the device is caleulating the price for a new job, the technician enters the length and width of the floor in feet (as integer valse). The total price and mumber of workers are calculated thus: Caleulate the total area of the floor The flooring cost is $3 per square foot Caleulate the mmber of workers required, by performing integer division. You need two workers for every 100 square feet (for this first program, you can safely assume that every job will be at least 100 square feet). . After the total cost of the floor is caleulated, add a surcharge of $35 for each worker required to complete the job. Note Well: All data is input as integer values and all operations are integer operations. The input and resulting output must follow the formatting in the example given eroro 8513729/Wiew vote weu: AIl Gata 1s mput as nteger vames ana aur operations are integer operations The input and resulting output must follow the formatting in the example given below Example input/output is shown, with values of 10 and 20, (output is in blue and input is in red): Please enter floor length: 10 Please enter floor vidth: 20 Job size (sq ft): 200 Workers: 4 Total Cost: $740 Here is a second example, with a floor size of 35 feet by 76 feet: Please enter floor length: 35 Please enter floor width: 76 Job size (aqft): 2660 Workers: 52 Total Cost: $9800 Follow the conventions used in the example programs to set up your program (ie., use the skel.asun file to get your assembly sections set up correctly. Put your code in the asm main text Spring 2019 page I of 3 CPSC 232 14158 Introduction to Assembler Programming section. Yon will want to use the driver.c and cdecl.h code when you compile, in order to set up the memory picture correctly. For this assignment, you must use the asm io library thns, will also need asn io.inc and ann io.o in the same directory enovo 13729/Wiew Assignment 2: Simple Arithmetic & Input/Output Objective In this assignment, we will use the input and output library and do some basic integer arithmetic. Due Before 11:59 p.m., Thursday, 21 February Tasks You work for a Booring company and you are developing a handheld device to provide instant price quotes for potential jobs. The device takes in the Boor dimensions and then provides the total cost for the job, as well as the number of workers required to complete the work. When the device is caleulating the price for a new job, the technician enters the length and width of the floor in feet (as integer valse). The total price and mumber of workers are calculated thus: Caleulate the total area of the floor The flooring cost is $3 per square foot Caleulate the mmber of workers required, by performing integer division. You need two workers for every 100 square feet (for this first program, you can safely assume that every job will be at least 100 square feet). . After the total cost of the floor is caleulated, add a surcharge of $35 for each worker required to complete the job. Note Well: All data is input as integer values and all operations are integer operations. The input and resulting output must follow the formatting in the example given eroro 8513729/Wiew vote weu: AIl Gata 1s mput as nteger vames ana aur operations are integer operations The input and resulting output must follow the formatting in the example given below Example input/output is shown, with values of 10 and 20, (output is in blue and input is in red): Please enter floor length: 10 Please enter floor vidth: 20 Job size (sq ft): 200 Workers: 4 Total Cost: $740 Here is a second example, with a floor size of 35 feet by 76 feet: Please enter floor length: 35 Please enter floor width: 76 Job size (aqft): 2660 Workers: 52 Total Cost: $9800 Follow the conventions used in the example programs to set up your program (ie., use the skel.asun file to get your assembly sections set up correctly. Put your code in the asm main text Spring 2019 page I of 3 CPSC 232 14158 Introduction to Assembler Programming section. Yon will want to use the driver.c and cdecl.h code when you compile, in order to set up the memory picture correctly. For this assignment, you must use the asm io library thns, will also need asn io.inc and ann io.o in the same directory

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building The Data Warehouse

Authors: W. H. Inmon

4th Edition

0764599445, 978-0764599446

More Books

Students also viewed these Databases questions

Question

The nature and importance of the global marketplace.

Answered: 1 week ago