Seeking HS1031 Introduction to Programming Assignment Help? Acquire Online Tutors To Secure Top Grades!

Home   Course  
Previous << || >> Next

WORK TOGETHER WITH EXPERTSMIND'S TUTOR TO ACHIEVE SUCCESS IN HS1031 INTRODUCTION TO PROGRAMMING ASSIGNMENT!

HS1031 Introduction to Programming - Holmes Institute

Develop algorithmic solutions to programming problems using Python language.

Part 1. Write a program that takes an English word as an input and prints the Pythonize equivalent on the screen.

Coding:
##########################################################
#
# The task of this program is to determine the pythonize
# equivalent of english word and display them
#
##########################################################
if __name__=='__main__':
# prompt and get the english word
word=input("Please enter the english word: ")

# form the pythonize word and capitalize them
pythonizeWord= (word[1:]+word[0]+"py").capitalize()

# display the pythonize equivalent of english word
print("Pythonize equivalent of",word,"is",pythonizeWord)

SAVE YOUR HIGHER GRADE WITH ACQUIRING HS1031 INTRODUCTION TO PROGRAMMING ASSIGNMENT HELP & QUALITY HOMEWORK WRITING SERVICES OF EXPERTSMINDS.COM

Part 2. Write a program that calculates the average of numeric values in a string and ignores all other characters.

Coding:
##########################################################
#
# The task of this program is to determine the sum and average
# of numbers in input string
#
##########################################################
if __name__ == '__main__':
# prompt and get the input string
inputString=input("Please enter the input string: ")

# split the input string by space
wordList=inputString.split(" ")

# initialize the statistic variables to 0
total=0.0
count=0

# loop for each element in word list
for element in wordList:
try:
# convert element to float and then accumulate in total
total += float(element)
# increment count by 1
count += 1
except ValueError:
# ignore the error
pass

# compute the average
if count>0:
average=total/count

# display the sum and average
print("\nResult:")
print("Sum= "+str(total)+" Average= "+str(average))

DO YOU WANT TO EXCEL IN HS1031 INTRODUCTION TO PROGRAMMING ASSIGNMENT? HIRE TRUSTED TUTORS FROM EXPERTSMINDS AND ACHIEVE SUCCESS!

Part 3. Write a program that takes a string of words, and prints out these words one per line in a rectangular format

Coding:
##########################################################
#
# The task of this program is to display the words in input
# string as one per line in rectangular format using #
#
##########################################################

if __name__=='__main__':
# prompt and get input string
inputString=input("Please enter the input string: ")

# remove some special characters from input string
specialCharacters= [';', ':', '!', ".", ","]
inputString = ''.join(ch for ch in inputString if not ch in specialCharacters)

# split the input string by space
wordList=inputString.split(" ")

# determine the length of the longest word in list
maxLength=len(max(wordList, key=len))


# display required number of # at the first row
for i in range(maxLength+4):
print("#",end='')
print("")

# loop for each word in word list
for word in wordList:
# display # space and then word
print("# "+word,end='')

# display required number of space
for i in range(maxLength-len(word)):
print(" ",end='')

# display space and # at the end
print(" #")

# display required number of # at the last row
for i in range(maxLength+4):
print("#",end='')
print("")

EXPERTSMINDS.COM ACCEPTS INSTANT AND SHORT DEADLINES ORDER FOR HS1031 INTRODUCTION TO PROGRAMMING ASSIGNMENT - ORDER TODAY FOR EXCELLENCE!

Avail the Holmes Institute Assignment Help Services for its related course and academic units, such as:

  • HC2051 Web Applications Development Assignment Help
  • HS2061 Information Systems Project Management Assignment Help
  • HC3152 E-Business Applications Assignment Help
  • HS3021 Strategic Information Systems Management Assignment Help
  • HS3031 Sustainability and IT Practice Assignment Help
  • HS3011 Information Security Assignment Help
  • HS3041 Business Intelligence and Knowledge Management Assignment Help
Tag This :- MWS79KAR918PRO, HS1031 Introduction to Programming Assignment Help

get assignment Quote

Assignment Samples

    Funding in Business Assignment Help

    funding in business assignment help - Aim of the research is to identify innovative strategies that would help business leaders to solve any financial problem.

Get Academic Excellence with Best Skilled Tutor! Order Assignment Now! Submit Assignment