Augusta CSCI1301 Programming IDE Features Project

CSCI 1301 Augusta University Programming IDE Features Project
Project #1
1 Presentation
Purpose: This first project is designed to teach you how to devise, implement, and submit solutions to programming problems. As you will be expected to complete projects not only this semester, but throughout your studies, our primary goal is to familiarize the submission process. This task will also ensure that you understand the basic concepts we have been studying thus far.
Skills: For this project, you will need:
• To exhibit an understanding of basic IDE features,
• To analyze a simple problem and determine how a program could solve it,
• To implement your solution,
• To understand how to meaningfully test and debug your program.
Knowledge: This assignment will familiarize you with the following important skills:
• How to share a program,
• How to interpret a series of basic instructions,
• How to convert between units of measure using a program.
2 Tasks
2.1 Challenge
In short: In this project, you are asked to create a program that asks the user to enter an amount of money and then returns a purchase list costing that exact value.
In more detail: In your IDE, create a project named “Project01”. Write your name and the date in a delimited comment at the very beginning of your code.
In the Main method:
• Declare a variable and store your Augusta University username in it.
• Then, write a statement that will make your program display on the screen the content of that variable, followed by “would like you to enter a monetary value:”.
• Then, write a statement that will store the value entered by the user. The value should be stored as a real number with high precision, as we are dealing with currency. (It is okay if the program crashes if the user doesn’t enter a number!)
• Finally, write statements (more than one can be needed) to split the user-provided value into whole numbers of books ($9.99), candy bars ($1.36), pens ($0.24), and stickers ($0.01). Your program should always prioritize buying a more expensive item before selecting a cheaper item (if your user enters 10, get a book
and a sticker, not 1000 stickers, etc.). Complete your program by saying the total number of items purchased on a new line.
Example: Assuming your username is “jdoe”, an execution could give something like:
jdoe would like you to enter a monetary value:
27.81 ↵
jdoe has purchased 2 books, 5 candy bars, 4 pens, and 7 stickers.
This is a total of 18 items!
Note that the “27.81” was entered by the user, not by the programmer: your program should work with any monetary value! Also note that we write in plural (books, pens, etc.) even if there is only one of that item, since we do not know how many of each item we will have. Another example could be:
jdoe would like you to enter a monetary value: .12759 ↵ jdoe has purchased 0 books, 0 candy bars, 0 pens, and 12 stickers. This is a total of 12 items! 2.2 Submission Once your project is done, zip the folder into a file “lname_fname.zip”, where “lname” is your last name and “fname” is your first name. Upload this zip on D2L before Friday, February 4th, at no later than 11:59pm in the “Project 1” assignment submission folder.
3 Additional Considerations
3.1 Criteria for Success A good, finished, project should include all of the following:
• Something was submitted, on D2L,
• The archive can be downloaded, extracted, and the solution in it can be open using any IDE,
• The archive and solution have correct names, • Your name and the date are in a delimited comment at the beginning of the file,
• The program compiles and can be executed,
• All the variables have appropriate types, and are set to the correct values, or can be set to expected values by the user,
• The messages are correctly displayed,
• The conversion is correct, including with possible rounding or truncating,
• Your code is commented.
3.2 Advice and Recommendations This should let you complete your project more smoothly:
• Read the statement over and over; make sure you did not overlook anything.
• Make sure your project compiles without errors or warnings and can be executed as expected. Errors if the user gives bad input are fine!
• A partially completed project is better than nothing. If the user can enter only whole number, or if the conversion is a bit off, add a comment describing your difficulties: that will show me that you aware of the limitations of your program.
• Make sure you submitted the right files by re-downloading them (possibly on a different computer) and making sure you can still compile and execute your program.
• Do not ask other classmates, the undergraduate assistants, or tutors for help. This work is supposed to be your own, and should reflect your own understanding of the previous labs. Copying-and-pasting code from the Internet will hurt your grade and your understanding of this class. Any cheating will be easily detected and punished according to the documents mentioned in the syllabus.
• You can ask me for help and feedback. Please, upload your project according to the instructions, and send me an email asking to go over it if you want me to check that you submitted the right file, that your code compiles, etc. You should ask early, and not wait for the last minute.
• No help will be given during lab: I want to make sure I can assist the students working on the current lab.

-
Rating:
5/
Solution: Augusta CSCI1301 Programming IDE Features Project