Answered step by step
Verified Expert Solution
Question
1 Approved Answer
OUTPUT MUST MATCH THE IMAGE TO THE TEE . I have the majority of the program written, just having issues with the output. Please make
OUTPUT MUST MATCH THE IMAGE TO THE TEE. I have the majority of the program written, just having issues with the output. Please make sure to have the right alignment, variable data types and number padding/decimals as shown below!
MUST BE IN C NOT C++/C#! Assume the Item Num is an int that must be padded with zeros (ex: 1234 ---> 00001234)
Write a C program for a shopping list to run on ocelot. Use the listed items and add one additional item to the list. The source file should have your name & PantherlD included in it and it should have the affirmation of originality Code should be nicely indented and commented All the field values should be in variables although an array does not have to be used. The Item Num should be an integer number, not a string The extended price should be calculated in a formula with multiplication right while printing it out. It should not be stored as a variable Create a simple Makefile to compile your program into an executable called shopping You should submit the source code and your Makefile file compressed into a zip file named FirstNameLastNameL1.zip. The Makefile should be called Makefile with no extension. I should be able to type make at the command line to compile your program. Do not include any other files or folders in the zipfile. This applies even if you are a Mac user Programs that do not compile and do something useful when run will not earn any credit at all Item Num 000345 007474 000987 002342 Description Bookshelf Pencil Chair Computer Price $ 78.51 1.99 $ 129.99 $ 1295.40 Count Extended Price 314.04 199.00 779.94 s 3886.20 100 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started