Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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 (e.g. "John Smith"). "Mickey Mouse" Please enter your student number. 221154 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 control+c on your keyboard and try again later. (Copy-\&-paste your program to the provided space, also save your programs as MyCode04.f95 and upload.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago