At the same time, Haruto opened up his 'favourite' coding interface, Notepad, the only program to write code in this world.
'What are you doing Haruto-kun?' Megumin asked softly, looking at the strange 'language' that Haruto was typing in. 'Shouldn't you be looking through past data to find out which orphanages are underfunded? That guy said you should respond to them right?'
Haruto sighed mentally before thinking his response out loud.
'There's no way I'll be able to shift through all that data manually. Each day has about eight thousand lines and there are about thirty days from when I began working here.'
'I need tools to be able to analyse the data like making graphs or pie charts.'
'That way I'll easily be able to tell the outliers from the normal data and make my life easier.'
'And I intend to make these tools my first project to apply to the R&D department.'
'Ooohhhhh~' Megumin, nodded, feeling intelligent.
Haruto meanwhile continued working on his first real computer science project that he'd begun making ever since coming to this world.
He was making a program that could take any dataset and output a bar graph mixed with a 1D Scatter plot.
A scatter plot was a graph that marked each datapoint on the graph with an 'x' or an 'o' this allowed one to easily look at the general trends of the data and based on the clustering of the 'x' and 'o', figure out which data points were outliers.
Of course, Haruto wasn't working with any fancy graphics, instead he was going to be outputting his graph to a file with ascii art so that it could also be printed.
While his already digitized files were printing, Haruto continued working on the graph maker 9000.
'The language is similar to C++ from my past life so that's a plus…'
Haruto quietly flipped open the guide book to see how he could open files through code and quickly began implementing it in the notepad.
'Let's first read the file and write all the data to a new file and compare the two files for any differences to see if I've got the reading part right…'
It took Haruto five minutes to write that code and after successfully executing that part of the code, which was only after passing through a bunch of errors about missing semicolons and brackets not being closed and segmentation faults, he found a perfect duplicate sitting on his drive, causing him to become overjoyed.
'Great, now for the bar graphs. Let us start by first creating a general graph and printing that out to a file.'
Haruto quickly wrote another program to get the general shape of the graph before being satisfied by it when he saw in the file a basic graph with two axis, on the y axis was money for the bill and on the x axis was the type of expenditure, be it food, orphanages, or shinobi wares.
He then went on to add the actual bar graph part of the program after that. It took him about half an hour to get it all working since he had to take the average of all values to display the appropriate bar graph in each category using dynamically sizing ascii rectangles.
Once that was done, it took him shorter to create an overlay of the scatter plot onto the bar graph where he plotted a vertical 1D scatter plot inside each bar graph category to see how deviated each value was from the average.
Finally, Haruto relaxed.
'Now all I need to do is to put the thirty days of data into Graph Maker 1.0 and wait for the results. Then any orphanage that deviates significantly from the average for all the thirty days without a lot of spending will mean that that orphanage is doing something shady since all the orphanage sizes are the same throughout the village.'
"What're you doing Haruto-kun?" Tanaka, who was swinging by the washroom, asked as soon as he came out and spotted Haruto writing some code. He looked a little wairy but eventually decided to question Haruto directly nonetheless.
"Ah… I was just hoping to transfer to the R&D department, Tanaka-san, so I'm working on my own project while my files are printing."
"Ohh that's ambitious!! What's the project about?" Tanaka immediately relaxed, coming closer to Haruto to look over what he was making.
"Nothing much, I remember reading about graphs in the academy, so I was just making a program that converts all these data points into graphs for better readability."
"Hee~! Is that so… that's quite good… does it work already?"
"Yeah it does! In fact I'm already printing several graphs to check out the accuracy and look for any bugs. It should be done any moment now… oh wait! It's done! Let me show it to you."
Haruto opened the file with all the graphs and showed the result to Tanaka, causing him to wear a surprised pikachu expression as he looked at the pretty pictures.
There was a sudden neuronal activation since for the first time, Tanaka felt like he could actually understand the data he always worked to print.
"So we spend more on the orphanages on average than on supplying shinobi wares to academy students… I see… that's intriguing… and we spend more on fixing plumbing each day than we do on cleaning the tourist sights of Konoha!!! I always knew there was something wrong with those damn plumbers!!! They keep digging our streets for no reason!! This is fantastic Haruto-kun!!! I'm sure you'll make it into the R&D Department with this."
"Hahaha… thank you Tanaka-san."
With Tanaka satisfied, and on his way to his own seat, Haruto began studying the graphs he'd just printed once again.
He was particularly interested in the orphanages and after a few minutes of shuffling through the graphs, he narrowed down three contenders.
'These three orphanages… even though they don't have high expenditures are constantly taking the same amount of money from the village as the other orphanages… clearly something's fishy.'
'You got through it so quickly?' Megumin asked softly, whispering in excitement.
'Yeah… I got it… that's the power of graphs… now all that's left is to deliver this information to my supposed 'handler'.'
Haruto finally finished printing all the digitized files before collecting them and handing them over to Shinakawa-san. But this time along with that, he also informed Shinakawa of his new program.
"Seriously? You made this?" Shinakawa asked while looking at the graphs that Haruto had produced using his program.
Haruto nodded happily causing Shinakawa's gaze towards him to soften before she spoke to him with a sort of reverent tone, "That's great, I'll pass on your invention to the R&D department. They'll likely want to check it out in the next few days. You can take a break until then."
"It should take about a few days for me to make it professionally working too so that's alright. Thank you Shinakawa-san." Haruto said, slightly overjoyed.
And before she left, Shinakawa told Haruto something even more joyous.
"Before you leave, make sure to pick up your pay for the month."
Haruto's lips morphed into the widest smile he could manage, causing Shinakawa to laugh happily before turning around and waving him off.
