Design a program that opens the my_name.dat file that was created by the algorithm in question 1,
Question:
Design a program that opens the my_name.dat file that was created by the algorithm in question 1, reads your name from the file, displays the name on the screen, and then closes the file.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (4 reviews)
Python def readname with openmynamedat r as file name fileread printname readnameThis program first ...View the full answer
Answered By
Muhammad Salman Alvi
Well, I am a student of Electrical Engineeing from Information Technology University of Punjab. Just getting into my final year. I have always been good at doing Mathematics, Physics, hardware and technical subjects. Teaching profession requires a alot of responsibilities and challenges.
My teaching experience started as an home tutor a year ago. When I started teaching mathematics and physic subjects to an O Level student. He was about 14 years old. His name was Ibrahim and I used to teach him for about 2 hours daily. Teaching him required a lot of patience but I had to be polite with him. I used to give him a 5 min break after 1 hour session. He was quite weak in basic maths and calculation. He used to do quite a lot of mistakes in his homework which I gave him weekly. So I decided to teach him basics from scratch. He used to say that he got the concept even if he didn't. So I had to ask him again and again. I worked on his basics for a month and after that I started taking a weekly test sesions. After few months he started to improve gradually. Now after teaching him for about a year I can proudly say that he has improved alot. The most important thing was he managed to communicate all the difficullties he was facing. He was quite capable and patient. I had a sincere desire to help him reach to its full potential. So I managed to do that. We had a very good honest relationship of a student and a teacher. I loved teaching him as a tutor. Now having an experience of one year teaching I can read students quite well. I look forward to work as an online tutor who could help students in solving their all sort of difficulties, problems and queries.
4.90+
29+ Reviews
43+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Design a program that opens an output file with the external name my_name.dat, writes your name to the file, and then closes the file.
-
In this assignment, you are writing a program that converts common texting abbreviations to English words to allow people like yours truly can understand. For the assignment, you are provided with a...
-
Consider the following NLP problem: Maximize 2Xi + X2 - 2X3 + 3XiX2 + 1X subject to the constraints (a) Set up and solve the model by using Solver. Use a starting value of zero for each decision...
-
Red Corporation, which owns stock in Blue Corporation, had a net operating income of $400,000 for the year. Blue pays Red a dividend of$60,000. Red takes a dividends received deduction of $48,000....
-
Refer to P&Gs financial statements and the accompanying notes to answer the following questions. (a) What amounts relative to income taxes does P&G report in its: (1) 2007 income statement? (2) June...
-
Mrs. Palsgraf was waiting for a train on a platform of a railroad. When a different train came into the station, two men ran to get on that train before it left the station. While one of the men...
-
Flexible budget, working backward. The Clarkson Company produces engine parts for car manufacturers. A new accountant intern at Clarkson has accidentally deleted the calculations on the companys...
-
Why does the probability in this maximization problem become theta hat? Suppose we try to implement this social choice function. Assume that the buyers are expected utility maximizers. We now ask: If...
-
Design an algorithm that does the following: opens an output file with the external name number_list.dat, uses a loop to write the numbers 1 through 100 to the file, and then closes the file.
-
True or False In most languages, when you open an output file and that file already exists on the disk, the contents of the existing file will be erased.
-
Identify the four engineering economy symbols and their values from the following problem statement. Use a question mark with the symbol whose value is to be determined. Thompson Mechanical Products...
-
Assume that you are a consultant to assess the potential for the location decision. Please provide your answer to the following questions: 1. What are the two key criteria for Amazon to choose the...
-
1. Considering Sophia Robot i. What is your advantage over competitors? ii. Is the market large enough to support you and competitors considering Africa? iii. What are the strengths in a SWOT...
-
2. Simplify, then evaluate without using a calculator. Write your answer as a fraction 2 () () * 3 3
-
True or false......... "Price/rate" and "efficiency" (i.e. Level 3) variance analysis techniques can be used to compare year to year changes in both labour and material costs. Question 9 options:...
-
Fill in the Blank.............." Your Company faces a lawsuit for tax evasion. The associated legal fees will be charged to your Company's various products based on revenues." This is an example of...
-
The Deluxe Store is located in midtown Madison. During the past several years, net income has been declining because of suburban shopping centers. At the end of the companys fiscal year on November...
-
Pearson Education, a publisher of college textbooks, would like to know if students prefer traditional textbooks or digital textbooks. A random sample of students was asked their preference and the...
-
What type of object do mouse listener and mouse motion listener methods accept? What methods do these types of objects provide for determining a mouse cursors location?
-
What interface would a listener class implement to handle a mouse click event? A mouse press event? A mouse dragged event? A mouse release event? A mouse move event?
-
True or False: Applets can retrieve information about the users system or the users identity.
-
An important efficiency ratio is that known as the trade debtor collection period. This article shows that some companies are very slow at paying their bills. According to the Chairman of the...
-
L&S Case Scenario 1 (Weekly Homework) Instructions: Your individual assignments are based on an ongoing scenario involving L&S Men's Clothing company. While the scenario is ongoing, weekly questions...
-
Samuel has initial wealth of $5 and a utility function Us(x) = 1+2ln(x + 1) ex/2 for x 0 for x <0 He is entering an investment where he will gain $100 with probability 0.7 and lose $10 with prob-...
Study smarter with the SolutionInn App