Cosole Application Using Fortran, Pascal and Ada programming language
Budget: $30 – $250 USD
Hi there,
Would you be able to solve the following two problems (1 & 2) using Fortran, Pascal and Ada programming languages?
1. Determine the following information about each value in a list of positive integers using Fortran, Pascal and Ada.
a. Is the value a multiple of 7, 11, or 13?
b. Is the sum of the digits odds or even?
c. What is the positive square root of the value?
d. Is the value a prime number?
You should have at least four function subprograms; label all output.
Your input test data is as follows:
3, 104, 3773, 13, 121, 77, 30751, 1233222, 348373443, 876
2. Write a program using all three programming languages (Fortran, Pascal and Ada) to process stock data. The stock data should be read from a text file containing the following data: stock code, stock name, amount invested (XXX.XX), shares held, and current price. Sue the internet or your local paper to gather data on at least 20 stocks.
As each stock is read, insert it into a doubly linked list. The first logical list should be ordered on the stock code. The second should be ordered on the gain or loss for the stock. Gain or loss is calculated as the current value of the stock (shares held times current price) minus the amount invested. Include at least one loss in your test data.
After building the lists, display a menu that allows the user to display either logical list forward or backward (a total of four options). Each display should contain an appropriate heading and column caption.
Run your program and submit a list of your input data and a print out of each display option.
stock code, stock name, amount invested (XXX.XX), shares held, and current price.
Would you be able to solve the following two problems (1 & 2) using Fortran, Pascal and Ada programming languages?
1. Determine the following information about each value in a list of positive integers using Fortran, Pascal and Ada.
a. Is the value a multiple of 7, 11, or 13?
b. Is the sum of the digits odds or even?
c. What is the positive square root of the value?
d. Is the value a prime number?
You should have at least four function subprograms; label all output.
Your input test data is as follows:
3, 104, 3773, 13, 121, 77, 30751, 1233222, 348373443, 876
2. Write a program using all three programming languages (Fortran, Pascal and Ada) to process stock data. The stock data should be read from a text file containing the following data: stock code, stock name, amount invested (XXX.XX), shares held, and current price. Sue the internet or your local paper to gather data on at least 20 stocks.
As each stock is read, insert it into a doubly linked list. The first logical list should be ordered on the stock code. The second should be ordered on the gain or loss for the stock. Gain or loss is calculated as the current value of the stock (shares held times current price) minus the amount invested. Include at least one loss in your test data.
After building the lists, display a menu that allows the user to display either logical list forward or backward (a total of four options). Each display should contain an appropriate heading and column caption.
Run your program and submit a list of your input data and a print out of each display option.
stock code, stock name, amount invested (XXX.XX), shares held, and current price.