Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the question as soon as possible and I will give you a high rate a Question 3 [20 marks]: Write a Java program

Please answer the question as soon as possible and I will give you a high rate

image text in transcribed

a Question 3 [20 marks]: Write a Java program to read from two different files: 1. A file called ruffle.txt, in which each of the 100 records includes participant's ticketNo, CPR, name, and mobile number. The file uses a comma separated file format, as the sample below. 2. A file called winner.txt", which contains a single number representing the ticketNo drawn, as the sample below. The program should display on screen the winner's name as well as the count of times the winner did participate in the ruffle, similar to the given sample. ruffle.txt winner.txt 5512, 661237239, Ali Hasan, 36123436 4001 3345,890812312, Fatma Mohammed, 34123123 2259,960355533,Yaser Ahmed,33142777 4001,890812312,Fatma Mohammed, 34123123 4002,890812312,Fatma Mohammed, 34123123 Screen Output The winner is: Fatma Mohammed The count of tickets of the winner is: 3

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

Step: 3

blur-text-image

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 Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

Students also viewed these Databases questions