Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with part 2. How do I read a text file? Strings, File I/O You are fr

ID: 3529847 • Letter: I

Question

I need help with part 2. How do I read a text file? Strings, File I/O You are free to use a single or multiple files for this project. If you are putting all functions in a single file, make sure that more abstract functions are defined first. Check. Study code folding in MSVS described here. As you work on the below project, demonstrate to the lab instructor automatic indentation correction. Create a project titled Lab7_Check. Write a program that asks the user the check information and prints the check. The dialog should be as follows: date: 2/23/2010 name: William Schmidt amount, dollars: 23 cents: 30 payee: Office Max your check: William Schmidt 2/23/2010 pay to: Office Max $23.30 twenty three and 30/100 dollars You may assume that a person always has the first name and last name (no middle names or initials). The payee name is also always two words. The dollar and cent amount are integers and the amount is always less than 100 dollars. Note that the dollar amount could be zero, in which case, when you spell the dollar amount, it should print "zero". The date is always a single (non-white space separated string). Your date, dollar amount in numbers and the word "dollars" have to vertically align. Hints: You may reuse your code from the number spell assignment to spell out the number of dollars. Putting it in a separate function will make the code more modular. Output appropriate number of spaces in the shorter lines to pad them to the right size so that the information is aligned. Some of the functions from this example program may be useful. To calculate the number of spaces, use the string size() function to compute the size of the strings on the left. File. Create a project titled Lab7_File. Repeat the assignment assuming that the input comes from a file such as this one You can save the file in your computer (cut-and-paste is acceptable) in file database.txt. The output of your program should go to a different file named check.txt You may reuse the code from the first part of the lab assignment. You may assume that in the input file, the fields are always named the same and the order of the fields is the same. However, the data fields of the file may change. That is, you may not program your assignment such that it only works with the provided example file.

Explanation / Answer


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote