List of arguments: !

Please develop subroutine sort for the below program.
Hint: maxval, minval,maxloc, or/and minloc commands might be helpful.
program Assignment06
implicit none
real (Kind=4),dimension(10):: D
integer:: I
D=(/-68.47,94.11,91.43,-2.92,60.05,-71.62,-15.64,83.14,58.44,91.89/)
call sort(D,’descending’)
do i=1,size(D,dim=1)
print*, D(I)
enddo
contains
subroutine sort(A,order)
!======================================================!
! Subroutine SORT receives a one-dimensional array and !
! sorts it in ascending or descending order. !
! List of Arguments: !
! input-&-output, real, A, an unknown size 1D array.!
! input, character, order, should be ‘ascending’ !
! or ‘descending’ otherwise the array is sorted in !
! ascending order. !
!======================================================!
.
.
end subroutine sort
end program Assignment06

Explain the history of the program, the original design of the program and the expansion of the program.

Research the history of the United States Social Security program, based on the Social Security Act of 1935. Explain the history of the program, the original design of the program and the expansion of the program. Discuss the financial concerns of the program and the program amendments of 1983 based on the recommendation of the National Commission on Social Security Reform. Discuss your view of future changes that could be implemented to maintain the structure and stability of the program.
Your paper should include at least three professional resources and be in APA format. Approved references are from books, professional journals and magazines. Do not use course notes or lecture notes from this or other courses as references.
Your research paper should have an abstract and be a minimum of four written pages. Use 12 point font and 1 inch margins. The title page and reference page is not included in the four pages, therefore, your paper will be a minimum of six pages. The title page should include the topic title, your name, course name and the date. The paper should be written in your own words. If you use direct quotes, it should be to emphasize a specific point that you are trying to make and direct quotes should not be more then 10% of your overall paper. Your paper should be your original writing and will be submitted through the college software program, Turnitin for authenticity. Papers that have been previously submitted from other courses will not be accepted.

List of arguments: !

Please develop subroutine sort for the below program.
Hint: maxval, minval,maxloc, or/and minloc commands might be helpful.
program Assignment06
implicit none
real (Kind=4),dimension(10):: D
integer:: I
D=(/-68.47,94.11,91.43,-2.92,60.05,-71.62,-15.64,83.14,58.44,91.89/)
call sort(D,’descending’)
do i=1,size(D,dim=1)
print*, D(I)
enddo
contains
subroutine sort(A,order)
!======================================================!
! Subroutine SORT receives a one-dimensional array and !
! sorts it in ascending or descending order. !
! List of Arguments: !
! input-&-output, real, A, an unknown size 1D array.!
! input, character, order, should be ‘ascending’ !
! or ‘descending’ otherwise the array is sorted in !
! ascending order. !
!======================================================!
.
.
end subroutine sort
end program Assignment06

Class robot(object):

example template included.
import sys
import argparse
import csv
# Implement Battery, Robot, MedicalRobot, DriverRobot and main()
# Partial code is provided for your convenience
”’
class Battery(object):
def __init__(self, batterytype:str):
#
pass # REMOVE THIS AFTER IMPLEMENTING THE METHOD
# Need to have getter before setter
@property
def batterytype(self):
return self.__batterytype
# I decided to leave this in for the template to show one way of implementing the setter
# You do not need to use Class methods to do the validation, I just decided to show it in use
# here. In the other classes below, feel free to implement the checks without using Class methods.
@batterytype.setter
def batterytype(self, batterytype:str):
if Battery.isvalidbatterytype(batterytype):
self.__batterytype = batterytype
else:
raise ValueError(“Batterytype of robot must be one of Lithium-Ion, Nickel-Metal, or Lead-Acid”)
def __str__(self):
#
pass # REMOVE THIS AFTER IMPLEMENTING THE METHOD
#
def isvalidbatterytype(cls, value):
#
pass # REMOVE THIS AFTER IMPLEMENTING THE METHOD
”’
”’
class Robot(object):
“””
A robot class that will be the base class (parent) for the rest of my robot types
“””
# # Class variable – THIS SHOULD BE A CLASS VARIABLE AND NOT AN INSTANCE VARIABLE
# initializer (the constructor is actually called prior to this)
#def __init__():
#
# Need to have getter before setter for name
#
# Need to have getter before setter for id
#
# Need to have getter before setter for year
#
# Need to have getter before setter for battery
#
def __str__(self):
return f”{self.__id} {self.__name} Year:{self.__year} Battery:{self.__battery}”
#def talk(self):
#
#
def isvalidname(cls, value):
if len(value) > 1:
return True
else:
return False
”’
”’
class MedicalRobot():
“””_summary_
Args:
Robot (_type_): _description_
“””
def __init__():
super().__init__(name, id, year, battery) # kept this for your reference
#
# Need to have getter before setter for specialty
def __str__(self):
return
#def talk(self):
#
”’
”’
class DriverRobot():
def __init__():
# Need to have getter before setter for licensestate
# Need to have getter before setter for licenseid
def __str__(self):
return
def talk(self):
return
”’
”’
def main(filename:str):
with open(filename) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=’,’)
line_count = 0
for row in csv_reader:
print(f’tType:{row[0]} Name:{row[1]} ID:{row[2]}.’)
line_count += 1
battery = Battery(row[4])
print(f’Processed {line_count} lines.’)
return robots
”’
def parse_args(args_list):
“””Takes a list of strings from the command prompt and passes them through as
arguments
Args:
args_list (list) : the list of strings from the command prompt
Returns:
args (ArgumentParser)
“””
parser = argparse.ArgumentParser()
parser.add_argument(‘–filename’, type = str, help = ‘The name of the file with the robots data’)
args = parser.parse_args(args_list)
return args
if __name__ == “__main__”:
args = parse_args(sys.argv[1:])
robots = main(args.filename)
for robot in robots:
print(robot.talk())

MATLAB Project

I only need Tasks 1 and 5 of the project pdf.
I have provided a word document of someone’s solution. Please check through if it’s correct, and if it is, write the codes in a similar fashion without any hints of plagiarism.
Write the document in a similar fashion as well, in accordance with the rubric.