Question: Hello, please help me with this question. Thank you. Question 2 In the Felisa Beauty competition, three candidates namely A, B, and C have entered

Hello, please help me with this question. Thank you.

Hello, please help me with this question. Thank you. Question 2 In

the Felisa Beauty competition, three candidates namely A, B, and C have

Question 2 In the Felisa Beauty competition, three candidates namely A, B, and C have entered the final competition Ambassador Felisa Beauty, the champion of the competition, is based on the highest marks obtained from SMS votes. Voting is done by typing the word Felisa and followed by the name of the selected candidate which is either A, B or C. Suppose all votes received will be stored in an input file named UNDIAN.DAT as shown in Figure 2 where each vote represents 1 mark. The total marks for all candidates will be calculated in the main program and then these three marks will be sent to a function named Duta to determine the Ambassador Felisa and the results will be sent back to the main program for printing. Assume that the number of votes for each candidate is different from each other. (Di dalam pertandingan Felisa Beauty, tiga calon iaitu A, B dan telah memasuki pertandingan akhir. Duta Felisa Beauty, johan pertandingan, adalah berdasarkan markah tertinggi yang diperolehi dari undian SMS. Undian dibuat dengan menaip perkataan Feltsa dan diikuti dengan nama calon yang dipilih iaitu samada A, B atau C. Semua undian yang diterima akan disimpan di dalam fail input bernama UNDIAN DAT seperti dalam Figure 2 di mana setiap undian mewakili 1 markah. Jumlah markah bagi semua calon akan dikira di dalam main program dan seterusnya ketiga-tiga markah ini akan dihantar ke fungsi bernama Duta untuk menentukan Duta Feltsa dan hastl keputusannya akan dihantar semula ke main program untuk di cetak. Anggap jumlah undian bagi setiap calon adalah berbeza antara satu sama lain.) Felisa A Felisa B Felisa B Felisa A Felisa Figure 2 : Content of input file a) Analyze the given problem and identify what is the input, output and process. Analisis masalah yang diberi dan kenal pasti apakah input, output dan proses.) (5 marks) b) Write a complete CH program that determines and prints a candidate who will be the Ambassador Felisa Beauty.) (Tulis atur cara C++ yang lengkap bagi menentukan dan mencetak calon yang akan menjadi Duta Felisa Beaun:) [20 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!