Skip to content

Commit 1f5d5a6

Browse files
authored
Merge pull request #139 from zeibura/cobol-challenges
Add information on first COBOL challenge
2 parents fe0b682 + f5d9a55 commit 1f5d5a6

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

COBOL Programming Course #2 - Advanced Topics/COBOL Programming Course #2 - Advanced Topics.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,32 @@ header-includes:
1919
linkcolor=blue}
2020
---
2121
\newpage
22-
# Advanced Topic #1
23-
Coming soon!
22+
# COBOL Challenges
23+
24+
As you have now handled some basic exercises, we have prepared a new section containing more advanced exercises that test your ability to resolve bugs and other issues in COBOL programs. Each exercise will have a short description and a goal to be accomplished.
25+
26+
In case you get stuck, a blog with instructions will be published shortly after each exercise.
27+
28+
Happy Coding!
29+
30+
\newpage
31+
32+
## COBOL Challenge - Debugging
33+
34+
It is 2020 in Washington, D.C. John Doe runs a program which provides financial reports on US Presidents and tallies the number of reports from the state of Virginia. Everything seems OK. (see below)
35+
36+
![](Images\cobolch1-img1.png)
37+
38+
John is satisfied, as he can see that everything is working as it should be. He calls it a day and goes home.
39+
40+
The next day, when he comes back to the office, his colleague Mari tells him “I’ve made some changes to one of your programs so that it also tallies the number of presidents who spent more than their allowed limit. Check it out.”
41+
42+
He runs his usual reports and sees the following:
43+
44+
![](Images\cobolch1-img2.png)
45+
46+
Clearly, Mari’s changes to the program that generates the reports have broken something.
47+
48+
Can you fix the code to get the correct result? The new source code is named **CBL0106** and the JCL is **CBL0106J**. In case you get stuck, the solution is in the file **CBL0106C**.
49+
50+
You can find them in the github repository for the COBOL course, in the subfolder **/COBOL Programming Course #2 - Advanced Topics/Challenges/Debugging**.
171 KB
Loading
165 KB
Loading

0 commit comments

Comments
 (0)