Question: in c programming please Task Three the robotwill ask the user about his/her destination where he/she can choose from the following three destinations: America, Europe,

in c programming please

in c programming please Task Three the robotwill ask the user about

his/her destination where he/she can choose from the following three destinations: America,

Task Three the robotwill ask the user about his/her destination where he/she can choose from the following three destinations: America, Europe, and Africa, as shown in Fig.3.1 Each destination has several actions must be done as following: (Use function to implement this task) 1. America 2. Europe 3. Africa 4. Back where is your destination? Figure 3.1: Passenger Menu a) America: The robot will ask the passenger about his "First Name" and "Visa Number, the visa number should be a five digits integer number, which will start with 123xx in all numbers, any visa number that doesn't start with 123 will not be valid. You should check when entering the visa number if it is a valid number or not and notify the passenger about that. If this number is a valid visa number, we should check the last two digits, if these two digits are between 50 and 80, then this passenger should get the following message: "Please move to counter number Four, if not then the passenger will get a message of Sorry! your visa needs to be validated please check that with the USA Embassy." b) Europe: The robot will ask the passenger about his/her Schengen Number", which should be at least two-digit positive integer number. According to the number of digits that the passenger entered, the robot will show which country in Europe he is travelling to and which window he/she must go to as shown in the table below: Table 1:Digits Categories for Schengen Visa Number of Digits Destination Country with Window Invalid Schengen Number Less than two digits Two Digits Germany, Window 10 Three Digits Italy, Window 11 Spain, Window 12 Four Digits Greater than Four Digits Greece, Window 13 Africa: A message should show up to the passenger as following "Move to this location then a map should show up with a specific location that the passenger should go to, as shown in Fig.3.2. the white square will represent the location that the passenger should go to within the airport. (0,200) (0,0) (0,400) (40,290) (40,310) (60,290) (60,310) (100,0) (100,400) (200,400) (200,0) (200,200) Figure 3.2: Coordinates (row, column) for the map. d) For each destination (America, Europe, and Africa) the data of any passenger should be saved in a text file as following: America.txt, Europe.txt, and Africa.txt. Task Three the robotwill ask the user about his/her destination where he/she can choose from the following three destinations: America, Europe, and Africa, as shown in Fig.3.1 Each destination has several actions must be done as following: (Use function to implement this task) 1. America 2. Europe 3. Africa 4. Back where is your destination? Figure 3.1: Passenger Menu a) America: The robot will ask the passenger about his "First Name" and "Visa Number, the visa number should be a five digits integer number, which will start with 123xx in all numbers, any visa number that doesn't start with 123 will not be valid. You should check when entering the visa number if it is a valid number or not and notify the passenger about that. If this number is a valid visa number, we should check the last two digits, if these two digits are between 50 and 80, then this passenger should get the following message: "Please move to counter number Four, if not then the passenger will get a message of Sorry! your visa needs to be validated please check that with the USA Embassy." b) Europe: The robot will ask the passenger about his/her Schengen Number", which should be at least two-digit positive integer number. According to the number of digits that the passenger entered, the robot will show which country in Europe he is travelling to and which window he/she must go to as shown in the table below: Table 1:Digits Categories for Schengen Visa Number of Digits Destination Country with Window Invalid Schengen Number Less than two digits Two Digits Germany, Window 10 Three Digits Italy, Window 11 Spain, Window 12 Four Digits Greater than Four Digits Greece, Window 13 Africa: A message should show up to the passenger as following "Move to this location then a map should show up with a specific location that the passenger should go to, as shown in Fig.3.2. the white square will represent the location that the passenger should go to within the airport. (0,200) (0,0) (0,400) (40,290) (40,310) (60,290) (60,310) (100,0) (100,400) (200,400) (200,0) (200,200) Figure 3.2: Coordinates (row, column) for the map. d) For each destination (America, Europe, and Africa) the data of any passenger should be saved in a text file as following: America.txt, Europe.txt, and Africa.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!