Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the language here is fortran. there is no specific looping parameter Objectives Review loops and selection Develop an algorithm and implement it Review and apply

the language here is fortran. image text in transcribed
there is no specific looping parameter image text in transcribed
Objectives Review loops and selection Develop an algorithm and implement it Review and apply built-in string functions and operators Store data in a one-dimensional array and retrieve information from an array Task We want to write a program to output the astrological signs for given birthdays. Your program will read a date in a given format and after a simplified validity check it will determine the corresponding astrological sign. Specification The input to the program will consist of the name of the month followed by an integer, the day number. The output will be a single string which is the astrological sign. For instance, if the input is September 21, the output will be Virgo. The program starts by prompting for and reading the date. Next, it checks if the month is valid and the day for the given month is valid. (Jan, Mar, May, Jul, Aug. Oct and Dec have 31 days, the rest have 30 days, except Feb 29 days, to include leap years). If the date is found to be illegal, an appropriate message will be printed and the program will prompt for another date input. The astrological sign is then determined for the legal date. The program now will ask the users if they want to convert another date. If the reply is Y, the process described above will be repeated. If the reply is N, the program will stop. Generate a printout of the source code and an execution log containing at least 10 runs including the verification that an illegal date is recognized and dealt with. pa mu w tle dove. Some va ain features of the desired system are verified. ble of astrological signs: January 20 to February 18 February 19 to March 20 March 21 to April 19 April 20 to May 20 May 21 to June 20 June 21 to July 22 July 23 to August 22 August 23 to September 22 September 23 to October 22 October 23 to November 21 November 22 to December 21 December 22 to January 19 Aquarius Pisces Aries Taurus Gemini Cancer Leo | Virgo Libra Scorpio Sagittarius Capricorn

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Do your staff and customers know these examples?

Answered: 1 week ago

Question

2. Provide recommendations for effective on-the-job training.

Answered: 1 week ago