Home /
Expert Answers /
Computer Science /
check-my-code-to-see-why-is-it-print-nothing-a-thumb-up-will-give-write-a-program-that-reads-with-pa767
(Solved): Check my code to see why is it print nothing, a thumb up will give
Write a program that reads (with ...
Check my code to see why is it print nothing, a thumb up will give
Write a program that reads (without prompts) two names of files in the current, working directory. If both files actually exist in the directory, the program prints "Both files exist." If neither file exists then the program prints "Neither file exists." Otherwise (if just one file doesn't exist), the program prints the name of the file followed by the words "does not exist." Additional Notes: Regarding your code's standard output, CodeLab will check for case errors but will ignore whitespace (tabs, spaces, newlines) altogether.
stdout Your Output Correct Output f2. does not-exist. \begin{tabular}{|c|c|} \hline \multicolumn{2}{|c|}{ Legend } \\ \hline\( \rightarrow \) & Space \\ \hline\( \rightarrow \) & Tab \\ \hline \multicolumn{1}{|c|}{ New Line } \\ \hline abcde & Green, underlined indicates correct text that is missing (i.e. your program should be generating this). \\ \hline Red, strikethrough indicates incorrect text that should \\ not be there (i.e. you should remove it from your \\ program). \end{tabular}