Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are asked to write a Fortran program for a school for assigning students to exam halls. Your program should ask students to enter their

image text in transcribed

You are asked to write a Fortran program for a school for assigning students to exam halls. Your program should ask students to enter their name and student number via keyboard, then tells them in which exam hall they should do their exam. In this school, student numbers have a 6-digit format and range between 215001 to 221999. Your program should check whether the entered student number is in the range, then assign students to the exam halls as: - If the last two digits of a student number is between 00 to 33 , The student is assigned to Hall-A. - If the last two digits of a student number is between 34 to 66 , The student is assigned to Hall-B. - If the last two digits of a student number is between 67 to 99 , The student is assigned to Hall-C. Note: By running your program, the following sentences, questions, and results should be printed accordingly on the screen (the green text is keyboard entry, and the black text is program output). Extra spaces in your output are fine. Please enter your full name (maximum 25 letters) using quotations (0.g. "John Smith"). "Mickey Mouse" Please enter your student number. 22.1154 Dear Mickey Mouse , your exam will be held in Hall-B. If an out-of-range student number is entered, the following error messages should be printed on the screen. Your student number is not valid. Please enter it again. If you are not sure, press controltc on your keyboard and try again later

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

What advice would you provide to Jennifer?

Answered: 1 week ago

Question

What are the issues of concern for each of the affected parties?

Answered: 1 week ago