Computers and Technology, 23.06.2020 18:01 keigleyhannah30
Write a basic program that performs simple file and mathematical operations.
a. Write a program that reads dates from input, one date per line. Each date's format must be as follows: March 1, 1990. Any date not following that format is incorrect and should be ignored. Use the find() method to parse the string and extract the date. The input ends with -1 on a line alone. Output each correct date as: 3/1/1990.
b. After the program is working as above, modify the program so that it reads all dates from an input file "inputDates. txt" (an Example file is attached).
c. Modify your program further so that after parsing all dates from the input file "inputDates. txt", it writes out the correct ones into an output file called: "parsedDates. txt".
Ex: If the input is:
March 1, 1990
April 2 1995
7/15/20
December 13, 2003
-1
then the output is:
3/1/1990
12/13/2003
Answers: 2
Computers and Technology, 22.06.2019 03:40
Mary's manager told her she should insert a graphic into her documentwrite mary a brief note describing how to insert a graphicin a word processing document.
Answers: 1
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
Computers and Technology, 22.06.2019 14:30
The “rule of 72” is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
Write a basic program that performs simple file and mathematical operations.
a. Write a program tha...
Biology, 12.05.2021 06:30
Mathematics, 12.05.2021 06:30
Mathematics, 12.05.2021 06:30
Physics, 12.05.2021 06:30
Mathematics, 12.05.2021 06:30
Mathematics, 12.05.2021 06:30
Mathematics, 12.05.2021 06:30
History, 12.05.2021 06:30
Chemistry, 12.05.2021 06:30
Mathematics, 12.05.2021 06:30
Arts, 12.05.2021 06:30