Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Korea University (KU) and Yonsei University (YU) compete five games every year. In 1993. KU won 2 games and lost 3 games such that KU

image text in transcribed
image text in transcribed
Korea University (KU) and Yonsei University (YU) compete five games every year. In 1993. KU won 2 games and lost 3 games such that KU lost the year. But in 1994, KU won 3 games. tied 1 game, and lost 1 game such that it won the year. From 1993 to 1995, KU won two years and lost just one year. KU is superior than YU in this period. ??? ??? ??? ?? result.txt ??? ???? ??. The results are kept in the file result.txt as follows. 1993 2 0 3 1994 3 1 1 1995 3 1 1 ??? ???? ??-1 ? ??? ?? ????. ??? ???? ?? ?? ???? -1 ? ????. ? ??? ?? ??? ??? ???? ???? ??? ??? ??? ????. ? ??? ?? ???? ? ? ? ??????, ????, ????? ??? ?? ????? ?? ????? ?????. The number -1 at the last line indicates that there are no more records. Therefore, the file without any record will have -1 as its content. This file stores every record in the same format. We assume that there is no format error in the file. Read this file and print the total number of years in which KU won, draw, or lost as shown below. ./a.out Total win: 2 Total draw: 0 Total loss: 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

Find out which service best suits the customer and recommend it.

Answered: 1 week ago

Question

Write the properties of Group theory.

Answered: 1 week ago

Question

How is slaked lime powder prepared ?

Answered: 1 week ago

Question

Why does electric current flow through acid?

Answered: 1 week ago

Question

What is Taxonomy ?

Answered: 1 week ago