Instructions: Write the commands needed to solve the following problems on mis01.scu.edu. Before solving each exercise,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Instructions: Write the commands needed to solve the following problems on mis01.scu.edu. Before solving each exercise, position yourself in /home/OMIS107/Lecture2. All of these exercises are on alice.txt. Unless otherwise specified, all problems must be solved with one command only Unless otherwise specified, don't worry about uppercase/lowercase. . Problem 1 Position yourself in /home/OMIS107/Lecture2. Print the lines of alice.txt that contain at least two words (not necessarily consecutive words) starting with "a", both composed of at least 8 more letters after "a". Problem 2 Add "his or her majesty" before the occurrences of the word "the" + word starting with a capital letter and the word "a" + word starting with a capital letter, as in these examples: Problem 3 To emphasize a verb in past tense, one could add "did" before it and turn the verb into present tense. Assume that all words ending with "ed" are verbs in past tense (e.g., invented, asked). Find all words ending in "ed", add "did" before them and turn them into present tense. For example: "the Hatter" "his or her majesty the Hatter" "a Caterpillar" "his or her majesty a Caterpillar" "Vanilla Ice cream" "Vanilla Ice cream" (unchanged because "a" is not a word) "You invented it" "you did invent it" "Alice asked a question" "Alice did ask a question" "She asked." "She did ask." "They need." "They did ne." (do not worry about whether removing "ed" is grammatically incorrect) Problem 4 The goal of this exercise is to replace the occurrences in alice.txt that contain the word "said" + other words + punctuation mark with 'said someone' + punctuation mark. By "punctuation mark", we mean any of the following characters, .:; Some examples: 1. Line 3300: 'I won't!' said Alice. 'I won't!' said someone. 2. Line 3314: 'Wake up, Alice dear!' said her sister; 'Why, what a long sleep you've 'Wake up, Alice dear!' said someone; 'Why, what a long sleep you've 3. Line 396: but it said nothing. but it said someone. If the word "said" is followed by more than one punctuation mark in the same line, make sure to replace only up to the first punctuation mark. That is, the following replacement for example 2 is wrong: 'Wake up, Alice dear!' said someone, what a long sleep you've Instructions: Write the commands needed to solve the following problems on mis01.scu.edu. Before solving each exercise, position yourself in /home/OMIS107/Lecture2. All of these exercises are on alice.txt. Unless otherwise specified, all problems must be solved with one command only Unless otherwise specified, don't worry about uppercase/lowercase. . Problem 1 Position yourself in /home/OMIS107/Lecture2. Print the lines of alice.txt that contain at least two words (not necessarily consecutive words) starting with "a", both composed of at least 8 more letters after "a". Problem 2 Add "his or her majesty" before the occurrences of the word "the" + word starting with a capital letter and the word "a" + word starting with a capital letter, as in these examples: Problem 3 To emphasize a verb in past tense, one could add "did" before it and turn the verb into present tense. Assume that all words ending with "ed" are verbs in past tense (e.g., invented, asked). Find all words ending in "ed", add "did" before them and turn them into present tense. For example: "the Hatter" "his or her majesty the Hatter" "a Caterpillar" "his or her majesty a Caterpillar" "Vanilla Ice cream" "Vanilla Ice cream" (unchanged because "a" is not a word) "You invented it" "you did invent it" "Alice asked a question" "Alice did ask a question" "She asked." "She did ask." "They need." "They did ne." (do not worry about whether removing "ed" is grammatically incorrect) Problem 4 The goal of this exercise is to replace the occurrences in alice.txt that contain the word "said" + other words + punctuation mark with 'said someone' + punctuation mark. By "punctuation mark", we mean any of the following characters, .:; Some examples: 1. Line 3300: 'I won't!' said Alice. 'I won't!' said someone. 2. Line 3314: 'Wake up, Alice dear!' said her sister; 'Why, what a long sleep you've 'Wake up, Alice dear!' said someone; 'Why, what a long sleep you've 3. Line 396: but it said nothing. but it said someone. If the word "said" is followed by more than one punctuation mark in the same line, make sure to replace only up to the first punctuation mark. That is, the following replacement for example 2 is wrong: 'Wake up, Alice dear!' said someone, what a long sleep you've
Expert Answer:
Related Book For
Business Communication Essentials a skill based approach
ISBN: 978-0132971324
6th edition
Authors: Courtland L. Bovee, John V. Thill
Posted Date:
Students also viewed these algorithms questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Your task is to create a game where the users can play with words and numbers. The game has three consecutive levels (Level 1, Level 2, and Level 3). Users can proceed to the next level after...
-
A climate model predicts that Earth's ECS is 2.0 K. If the radiative forcing from a doubling of CO2 is 3.7 Wm 2, and the Planck feedback simulated by the model is -3.4 Wm 2K what is the sum of all...
-
A string is fixed at both ends and is vibrating at 130 Hz, which is its third harmonic frequency. The linear density of the string is 5.6 10-3 kg/m, and it is under a tension of 3.3 N. Determine the...
-
Package labeling indicates that Twix candy bars have an amount of caloric content equal to 250 calories. Formulate the null and alternative hypotheses for a hypothesis test. State clearly the two...
-
A parallel-plate capacitor with air between its plates carries a charge of \(6.60 \mu \mathrm{C}\) when a \(9.00-\mathrm{V}\) battery is connected to it. How much energy is stored in the capacitor?
-
Brandy Austin used powdered infant formula to feed her infant daughter shortly after her birth. Austin claimed that a can of Nestl Good Start Supreme Powder Infant Formula was contaminated with...
-
All work must be shown on every facet of the solution. This includes a timeline with cashflows, timing and rates clearly laid out and formulas (in pure form, not in the calculator or excel form). A...
-
Here are my code. And the documentation for reference class DeliveryPlanner_PartA: """ Required methods in this class are: plan_delivery(self, debug = False) which is stubbed out below. You may not...
-
The "four-minute mile" is often cited as an example of the limit of physical performance. That is, no matter how much athletes train, there will always be a limit to their endurance. a) Why does the...
-
3. Your firm believes the following three scenarios summarize likely returns for Assets A and B this coming year: Positive Neutral Negative Asset A +12% +5% -10% Asset B +4% +4% -5% a. Calculate the...
-
The Hernys law contant for nitrogen dioxide is k H = 4.0x10 -2 M/atm at 25C. What is the solubility of NO 2 at 25C in water at a partial pressure of 575 mmHg?
-
Budget Analysis Summary 1. What is the largest percent change in your IT budget from last year? What is the reason for this difference? 2. What category in the IT budget has the largest percentage of...
-
97. A combined bank loan and savings account can be modelled by two-input two-output difference equation 3-0 = [x[n+ 0 ABD+BIN where x and x2 denote the balance of the loan account and savings...
-
Mary and Kendal both work for Amazon. They both make $69,000 and they also each have $1200 a year in child care expenses. Mary deposits $1200 a year into a dependent care flexible spending account...
-
Given an advanced sinusoidal wave to the left of the string, with an amplitude of 1.4 cm, a wavelength of 40 cm, and a frequency of 20 Hz. It is known that at time t = 0 at point 0 = x the copy is...
-
d. The characteristic equation of a control system is given by s+2s+8s+12s+20s+16+16=0. Determine the number of the roots of the equation which lie on the imaginary axis of s-plane
-
Twelve million people in the United States are allergic to one or more food ingredients, and every three minutes, on average, one of these allergy sufferers ends up in a hospital emergency room. Even...
-
For items 1-5, indicate which words are common nouns and which are proper nouns. 1. Give the balance sheet to Melissa. 2. After three years of declining sales, the board fired the CEO and hired a...
-
What is parallel construction, and why is it important?
-
Why do you and your business need to be able to communicate well?
-
What are the basic criteria for effective messages?
-
What are the questions for analyzing a business communication situation?
Study smarter with the SolutionInn App