1. Create a text file with the name BramptonResult: BramptonResult.txt has the following contents: Sheridan College Brampton Campus Result Sheet Shaina : XXXXXXXXXX Charles : XXXXXXXXXX Chris :...

1 answer below »

1. Create a text file with the name BramptonResult:


BramptonResult.txt has the following contents:


Sheridan College


Brampton Campus Result Sheet


Shaina : 95 85 86


Charles : 88 87 76


Chris : 77 88 95



  1. Write a program to open the BramptonResult file and print the contents

  2. Make changes in the program to print only “Sheridan College”

  3. Print each line in the Bramptonresult.txt separately using readline

  4. Usefor loopto read the file

  5. Use the if condition to only print Charles marks

  6. Save as the BramptonResult.txt as BramptonResult2.txt and develop a program to write the following lines in to BramptonResult2.txt

    1. John : 93 81 74

    2. Chen : 82 74 87




Note: * use my name please: Jacy Anthony


use variables from your name like my name is "Syed Raza Bashir" so I can use "syed" or "raza" or "bas" or "hir")


Its better to upload separate python file for each step and upload 2 text files (BramptonResult.txt and BramptonResult2.txt)






2.Write a program for the following theorem:



Theorem = (A – B)3+ (C – D)2



Shape, rectangle  Description automatically generated
A = square root ( a2+b2)



Shape, rectangle  Description automatically generated



C = square root( d )


Check your program for the following values:



a = 2, b =3, d= 2



B = 2, D = 1


Hint = you need 3 functions , square root means it's power is 0.5


3.Company ‘ABC’ approved the feasibility study of the project. The client wants the software to be delivered in phases and for some features and functionalities there are some grey areas that requires attention related to the software requirements. Another important thing is that client is not available for frequent meetings.


Which process model you are going to use for this type of a project and why?


Hint: you can use more than one process model


4.Write the following program in Python using the following sequence:



  • Create one list with the names of your 5 school friends. (Name of the first list is your first name)

  • Print the name of your best friend from the list.

  • Add ‘sheridan’ to the above list and print

  • Add your last name at the second position in the first list and print

  • Create another list with the names of your 3 college friends. (Name of the second list is your last name)

  • Add ‘college’ to the second list and print

  • Change ‘college’ to ‘COLLEGE’ and print

  • Change ‘sheridan’ in the first list to ‘SHERIDAN’ and print

  • Merge the first list with the second list and print

  • Merge the second list with the first list and print

  • Eliminate the name of your best friend from the first list and print the remaining list

  • Eliminate the first element from the second list and print the remaining list

  • Check if “SHERIDAN” is in the first list, if present print “Yes, ‘SHERIDAN’ is in the list” otherwise print “SHERIDAN not in the list”

  • Check if “COLLEGES” in the second list, if present print “YES in the list” otherwise print “NOT in the list”

  • Find the total elements in the first list and second list and print

5.Where we can use only Interviewing technique for software requirement elicitation ? Explain with the help of an example.Question 6 options:
Answered Same DayApr 21, 2021

Answer To: 1. Create a text file with the name BramptonResult: BramptonResult.txt has the following contents:...

Sudipta answered on Apr 21 2021
145 Votes
def sqRoot(a,b):
    val2=(a**2)+(b**2)
    return(val2**0.5)
def squareRoot(d):
    C=(d**0.5)

    return C
a=2
b=3
d=2
B=2
D=1
ans=((sqRoot(a,b)-B)**3+(squareRoot(d)-D)**2)
print(ans)
Output: 4.310354761853541
Ans 3: As per the requirement the best model that will fit in the situation will be azure model with CI/CD (Continuous integration continuous development)....
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here