# l;k

posted by .

Write a program that asks the user to enter the student’s name (first and last), and his/her first exam grade of three students, and then display them in a neat format. After that the program will find the average of the three grades, and print it

• l;k -

What computer language is to be used?
BASIC? FORTRAN? C++ ?

• l;k -

program quiz_1;

label xy;

var
StudentName:string;
ExamScore:integer;
TotalExamScore:integer;
TotalStudent:integer;
average:real;
ans:char;

begin
TotalStudent := 0;
TotalExamScore := 0;
xy: write('Please enter StudentName: ');
write('Please enter ExamScore: ');

if (ExamScore>0) then
begin
TotalStudent :=TotalStudent + 1;
TotalExamScore := TotalExamScore + ExamScore;

end

else
begin
average := TotalExamScore / TotalStudent;
end;

writeln('Name: ', StudentName);
writeln('Your exam score is ', ExamScore);
write('Is there more Student Sir, please type (Y) OR (N) ? >');
if (ans='Y') then
goto xy;
average := TotalExamScore / TotalStudent;
writeln('The average score is ', average:2:2);
end.

## Similar Questions

1. ### Programming

Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display the …
2. ### programming logic

The program will accept user input to store the student's first and last name . If the name is ZZZ, then the program will end. The program will accept: a text entry for the class number (e.g., CGS 1000, COP 1000, etc.) a numeric value …
3. ### c++

Write a program that asks the user to input a grade that he or she received on an exam. The grade is an integer from 0 to 100 inclusive. The program should convert the numeric grade into the equivalent letter grade. Do the conversion …
4. ### programming

user to enter the student’s marks on four exams (use double and one exam is over 20). The Write a program that asks the program should display the four exam’s marks, the sum and the average.(Use also the header file iomanip)
5. ### Programming in c++

Draw a flow-chart and Write a program that asks the user to enter students grades. The program should stop reading when the use enters ‘*’. In addition, your program should print the number of students got each grade. The grades …
6. ### C++programming

Write an interactive C program that will accept each student’s name an exam grades as input, determine an average grade for each student, and then display the student’s name, the individual exam grades and the calculated average. …
7. ### intro to computer programming

Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Your program should use a loop …
8. ### Intro to Software Developement

How do I make a Raptor flowchart program that asks the user to enter a 10 character telephone number in the format XXX-XXX-XXXX, that makes the program display the telephone number with any alphabetic characters that appeared in the …
9. ### Computers

How do I make a Raptor flowchart program that asks the user to enter a 10 character telephone number in the format XXX-XXX-XXXX, that makes the program display the telephone number with any alphabetic characters that appeared in the …
10. ### Programming

Scenario: Write a program that will determine the average mark of each student. The average is dependent on the subjects which the student has completed. The minimum amount of subjects is eight, and the maximum amount of subjects is …

More Similar Questions