Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 1 = Fortran Due in two weeks, Friday February 5th at 7pm You are support staff for a Super Spy. You will need to

image text in transcribed

Program 1 = Fortran Due in two weeks, Friday February 5th at 7pm You are support staff for a Super Spy. You will need to write a program that will tell your Super Spy boss which locker the stolen nuclear bomb is located........which locker in the Student Union Buliding....dun, dun, dun (dramatic drum beat music for intense effect). This code must run on a tiny microchip on the end of the Super Spies ballpoint pen. It must be concise and reliable so of course you will choose the Fortran Programming language to complete this task. The SUPER SPY will receive a number, you don't know where it is going to come from, you don't want to know, you must ask the SUPER SPY for the number. The SUPER SPY will then input the code via the fancy keyboard that bluetooths into the ballpoint pen.....it also has a fancy digital output on the side of the pen. It's a Super Spy pen. The SUPER SPY will input a number between 1000 and 1,000,000. You must take that number and send it to two procedures in your Fortran code, the first will return the second digit in the number, the second procedure will return the 3rd digit in the number. Then you will output the two digits as a two digit locker number, the third digit which is returned will the ones, and the 2nd digit from the first procedure will be the tens........example below. You will prompt the super spy to give you the number by asking for the Super spies hat size. Cryptic because this is Super Spy stuff..... Hat size? 348172 Use 71 In the example above you print "Hat size?" The Super Spy enters 348172. You then take 348172 and send it to your first procedure that will return the 7, hold on to that 7. You then send 348172 to the second procedure which will return the 1 (which is the 3rd digit). You then take the 7 and the 1 and make the number 71 which you print out with the word "Use" back to your Super Spy. First get this code working on the VM machine with the Fortran compiler.....we'll worry about cross- compiling for the SuperSpy microchip pen later. But since the SUPER SPY pen has very limited memory you only have so many lines of code to complete the task. Maximum lines of code = 24 (this includes the required lines of Program, Subroutines, the three implicit none lines you need and declaration of all variables needed. Blank lines and commented lines were all that wasn't counted)........I was actually at 21 in my answer. Program 1 = Fortran Due in two weeks, Friday February 5th at 7pm You are support staff for a Super Spy. You will need to write a program that will tell your Super Spy boss which locker the stolen nuclear bomb is located........which locker in the Student Union Buliding....dun, dun, dun (dramatic drum beat music for intense effect). This code must run on a tiny microchip on the end of the Super Spies ballpoint pen. It must be concise and reliable so of course you will choose the Fortran Programming language to complete this task. The SUPER SPY will receive a number, you don't know where it is going to come from, you don't want to know, you must ask the SUPER SPY for the number. The SUPER SPY will then input the code via the fancy keyboard that bluetooths into the ballpoint pen.....it also has a fancy digital output on the side of the pen. It's a Super Spy pen. The SUPER SPY will input a number between 1000 and 1,000,000. You must take that number and send it to two procedures in your Fortran code, the first will return the second digit in the number, the second procedure will return the 3rd digit in the number. Then you will output the two digits as a two digit locker number, the third digit which is returned will the ones, and the 2nd digit from the first procedure will be the tens........example below. You will prompt the super spy to give you the number by asking for the Super spies hat size. Cryptic because this is Super Spy stuff..... Hat size? 348172 Use 71 In the example above you print "Hat size?" The Super Spy enters 348172. You then take 348172 and send it to your first procedure that will return the 7, hold on to that 7. You then send 348172 to the second procedure which will return the 1 (which is the 3rd digit). You then take the 7 and the 1 and make the number 71 which you print out with the word "Use" back to your Super Spy. First get this code working on the VM machine with the Fortran compiler.....we'll worry about cross- compiling for the SuperSpy microchip pen later. But since the SUPER SPY pen has very limited memory you only have so many lines of code to complete the task. Maximum lines of code = 24 (this includes the required lines of Program, Subroutines, the three implicit none lines you need and declaration of all variables needed. Blank lines and commented lines were all that wasn't counted)........I was actually at 21 in my

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_2

Step: 3

blur-text-image_3

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions