Arama butonu
Bu konudaki kullanıcılar: 2 misafir
3
Cevap
6225
Tıklama
0
Öne Çıkarma
C programlama ile ilgili soru (dosya okuma,yazma)
M
17 yıl
Onbaşı
Konu Sahibi

arkadaşlar yardımınıza ihtiyacım var bu dosya okumayı yazdırmayı falan biliyorum da şöyle bir program yazmam lazım:
student.dat ın içinde ki 10 tane öğrencinin vize final ve quizini okutmak,ve ortalamasını bulmak,ama ben dosyadan nasıl atıyorum finalin alınacağını bilmiyorum.
yardımcı olabilecek arkadaş var mı acaba?

soruyu yazıyım bir daha:


Write a complete C program that will get midterm grade, final grade and quiz grade from the file “student.dat” for each student and calculate the total grade by using the following formula:

Total Grade  0.25 * Midterm Grade + 0.60 * Final Exam Grade + 0.15 * Quiz Grade

Using the calculated total grade, compute the letter grade for each student for the grade ranges given below:

90 – 100 => A
80 – 89 => B
60 – 79 => C
50 – 59 => D
0 – 49 => F

Finally, write the following student records into two different files based on the student’s sex (Male or Female):

Student Number(LongInt)
Name(char[20])
Total Grade(Float)
Letter Grade(Char)

Write male information into the file “C:\\Cmpe112\boy.dat” and female information into the file “C:\\Cmpe112\girl.dat” , respectively. Using Notepad check your output (created) files.



text ise şöyle:
998877 Mehmet M 90 80 70
989898 Ayse F 60 70 80
969696 Ali M 45 55 65
949596 Zehra F 95 55 75
979695 Hakan M 40 100 60
919293 Asli F 45 75 85
949392 Halil M 100 30 65
959697 Sevilay F 25 45 35
919990 Murat M 80 55 35
909194 Ozge F 80 100 90



şimdiden teşekkürler hepinize.

DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.

Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.

Üye Ol Şimdi Değil