What happens when you close a file with close method? | Computer Science homework help
What happens when you close a file with the Close method?
What is the difference between the WriteLine method and the Write method
The WriteLine() always appends a new line character to the end of the string. this means any subsequent output will start on a new line.
What has happened when the Peek method returns -1?
What does the Read method return?
Where must Structure statements appear?
Why should you call the Peek method before calling the ReadLine method?
Step 1: requirements phone dialing program
Step 1: Requirements Phone Dialing Program
Your mission: A prepaid phone service needs a program that converts alphanumeric keyboard input into a phone number. The user will input eight characters and the program will output either an error message or the translated seven-digit phone number. The input may contain digits, letters, or both. Letters can be uppercase or lowercase.
The program will perform the conversion per a standard telephone keypad layout.
0
5
J K L
1
6
M N O
2
A B C
7
P Q R S
3
D E F
8
T U V
4
G H I
9
W X Y Z
The program implements the following methods.
* Main(): Declares seven character variables and passes these to the following methods by reference:o ProcessInput(): gets user input and performs the conversiono ShowResults(): displays the results* GetInput(): Gets seven characters from the user and stores them into the seven variables Main() has passed by reference.* ProcessInput(): Calls ToDigit() for each, passing each character variable by reference, and returns one of these codes to Main() by value:o 0 if there were no input errorso -1 if there were input errors
Input errors include the following:
o The first character is 0 (seven-digit phone numbers cant start with 0).o The first three characters are 555 (no phone numbers start with 555).o Any character is not a digit or an uppercase or lowercase letter.* ToDigit(): Converts a character (passed by reference) to its corresponding digit per the table above, and returns one of these codes to ProcessInput() by value:o 0 if the character is valid (a digit or uppercase or lowercase letter)o -1 if the character is not valid* ShowResults(): Writes converted telephone number to the screen, inserting a dash (-) between the third and fourth digits, and accepts the seven character variables from Main() by reference.
Sample Output:
Enter a 7 character phone number: 2132121The converted phone number is: 213-2121
Enter a 7 character phone number: 2scdfERThe converted phone number is: 272-3337
Enter a 7 character phone number: 555reswInvalid input, please try again.
Enter a 7 character phone number: 0988765Invalid input, please try again.
Enter a 7 character phone number: 12345678Invalid input, please try again.
Enter a 7 character phone number: @34*uyInvalid input, please try again.
Tips
Best practice: Dont try to write too much at a time! First, write an outline in comments based on the requirements and the pseudocode. Then, implement declaring seven char variables. Make sure to fix any compiler errors before implementing more. Then, write and call an empty GetInput() method that accepts parameters, but does nothing but return a dummy value. Make sure you can pass the seven character variables by reference without compiler errors before implementing any of the GetInput() logic. Keep working incrementally like this, testing as you go. Set breakpoints and use the debugger at each phase to make sure your logic is working correctly. Then, use the same approach to implement the other methods. Test each phase with valid input before handling any invalid conditions.
Pseudocode
* ProcessInput( ) Methodo Get 7 characters from the user and store them in the 7 variables that Main() has passed by referenceo Call ToDigit() for each of the 7 characters+ If toDigit returns an error code (-1), return an error code (-1)o If the first character is 0, return an error code (-1) to Main()o If the first three characters are 555, return an error code (-1)o If there are no errors, return 0* ToDigit ( ) Methodo Convert the characters (passed from ProcessInput() by reference) to upper caseo Use a switch statement to translate characters into their corresponding digits.+ Write a case statement for each digit and for each valid uppercase letter+ Write a default case that returns an error code (-1) for invalid letterso If there are no invalid letters, return 0* ShowResults ( ) Methodo Display the Phone Number using the character variables Main() has passed by reference* Main() Methodo Declare 7 char variableso Get user input by calling the GetInput() method, passing it the 7 variables by referenceo Perform the conversion by calling the ProcessInput( ) method, passing it the 7 variables by referenceo Display an error message or call ShowResults(), depending on the code ProcessInput() returns
Cornell note for chapter 2
At the top of the Cornell Notes you must include: your name, the Cornell Notes number, the chapter title and page number of the assigned reading as required and as demonstrated in the Cornell Notes template in the Getting Started section of Canvas. There must be a space between each line linking the Main Idea with the Notes points will be deducted if the required format is ignored. You must link a Main Idea within the same row space(s) of a corresponding Main Note, and provide a row space between each row of a Main Idea and linked Main Note.
To be clear, you must use the instructions in the video link as a guide, however, you must also include the following instructions for Cornell Notes. In the summary 1) an analysis of what is being summarized and 2) your own ideas about the points made in the summary. Please see the Cornell Notes template for clarity regarding formatting.
Mitigation of health disparity interview
Overview:
In this assignment, you will interview a person in a position of leadership who can share an example of a planned intervention to mitigate a health disparity, and you will prepare a short written response to the prompt below.
Instructions:
Interview a person in a leadership role (via Zoom, email, in person, etc.) who could share an example of a planned intervention to mitigate a health disparity. Formulate this interview, it does not have to be a real interview
Gather and include the data they collected to find the problem and the processes they employed to improve the situation.
Mention any social justice aspect of the intervention.
Write up a summary of the interview that assesses their intervention.
Strategies of self-care | Social Science homework help
When you become stressed, anxious, or overwhelmed in your life, what do you do and where do you go to address the feeling? How do you take care of yourself?
The same calming behaviors that you employ now, as a student or simply as a human being, can translate into self-care behaviors you use as a social worker. The term self-care applies to any activities you engage in to rejuvenate your mental, physical, spiritual, or emotional well-being. Because of the demands of the profession, it is important to think about the tools you will use to remain present for your clientswithout succumbing to burnout. Self-care reinforces the old adage that you can only care for others if you also care for yourself.
In this Discussion, you explore self-care strategies to incorporate into your practice in order to alleviate burnout.
By Day 3
Post:
Identify one to two self-care activities that you would find relaxing for each of the following five senses. Make this your personal set of self-care activities:
Sight: Choose something that you would watch or view (e.g., watching a sunset or seeing your children play in the yard).
Hear: Choose an activity that incorporates sounds (e.g., listening to your favorite music or hearing the crickets at night).
Taste: Choose a food or drink that is soothing (e.g., drinking a cup of herbal tea or your favorite smoothie); however, make sure this activity does not include something unhealthy (e.g., smoking, drinking alcohol).
Touch: Choose a comforting physical sensation (e.g., wearing your favorite sweater or putting on a cozy pair of slippers).
Smell: Choose an aroma that calms you (e.g., smelling a scented candle or freshly mowed grass).
Describe how you will make time in your schedule to incorporate at least two of the above self-care activities.
You can set aside just 15 minutes in your day; it doesnt have to be a large commitment. Try to be specific about when you could make time for yourself.
The accounting principles board | accounting | Cleveland State Community College
Objectives
Demonstrate that you have read the report of the Jennings Committee.
Demonstrate that you understand the key points of the report.
Clearly communicate your thoughts and ideas in a clear and concise manner.
Practice your written communication skills including the ability to write persuasively in a document that is free of spelling and grammatical errors.
Assignments
The Jennings Committee, formally known as the Special Committee on Research Program was established in 1957 to evaluate accounting standard setting and to make recommendations for changing the process. Summarize the key recommendations of the Jennings Committee and form an opinion about the appropriateness of their recommendations. Support your opinion with a well reasoned argument. Your submission should be a 2-3 page paper, double-spaced.
After reading the nothing unique to offer case study, address the
NOTHING UNIQUE TO OFFER
During the past four months, George Vazquez has been putting together his plan for a new venture. George wants to open a pizzeria near the local university. The area has three pizza enterprises, but George is convinced that demand is sufficient to support a fourth.
The major competitor is a large national franchise unit thatin addition to its regular foodservice menu of pizzas, salads, soft drinks, and dessertsoffers door-to-door delivery. This delivery service is very popular with the university students and has helped the franchise unit capture approximately 40 percent of the student market. The second competitor is a pizza wagon that carries precooked pizzas. The driver circles the university area and sells pizzas on a first-come, first-served basis. The pizza wagon starts the evening with 50 pizzas of all varieties and sizes and usually sells 45 of them at full price. The last 5 are sold for whatever they will bring. It generally takes the wagon all evening to sell the 50 pizzas, but the profit markup is much higher than that obtained from the typical pizza sales at the franchise unit. The other competitor offers only in-house services, but it is well known for the quality of its food.
George does not believe that it is possible to offer anything unique. However, he does believe that a combination of door-to-door delivery and high-quality, in-house service can help him win 15 to 20 percent of the local market. Once the customers begin to realize that pizza is pizza, George told his partner, well begin to get more business. After all, if there is no difference between one pizza place and another, they might just as well eat at our place.
Before finalizing his plans, George would like to bring in one more partner. You can never have too much initial capital, he said. You never know when youll have unexpected expenses. But the individual whom George would like as a partner is reluctant to invest in the venture. You really dont have anything unique to offer the market, he told George. Youre just another me too pizzeria, and youre not going to survive. George hopes he will be able to change the potential investors mind, but if he is not, George believes he can find someone else. I have 90 days before I intend to open the business, and thats more than enough time to line up the third partner and get the venture under way, he told his wife yesterday.
QUESTIONS
1. One of the six pitfalls when selecting new ventures is lack of venture uniqueness. The potential investor that George is seeking has referred to his operation as a me too pizzeria and is predicting his demise. Pizza is sold through chain stores (Pizza Hut, Papa Johns, Little Cesars etc.) small independent shops and some grocery stores. It is a proven product and does not come with a very high sticker price. Is there any truth to the potential investors comment? Is the lack of uniqueness going to hurt Georges chances of success?
2. Uniqueness is not the only factor that needs to be considered when evaluating the feasibility of a new venture. Using the feasibility criteria approach analyse Georges proposed new venture. Given that there is very limited information presented, your analysis may consist of the questions that need to be answered to make a determination of the ventures success.
3. In addition to the uniqueness feature, what other critical factors is George overlooking? Identify and describe three, and give your recommendations for what to do about them.
POLS Pasadena City College Political Science Question
I’m working on a political science writing question and need the explanation and answer to help me learn. After reviewing the above video, write a one essay , explain in specific details how President Biden’s Executive Order will temporally protect women’s reproductive rights. In your essay, discuss at least 4 major components in his Executive Order and explain the meaning of the quote “women are not without electoral or political power”.
POL 110 SU A Policy You Would Change Discussion
Introduction If you could change any U.S. domestic policy today, what would it be? For this activity, choose a policy you would like to change, submit a one-paragraph explanation of the policy you would like to change, and identify three references to support this policy change. This is the same policy you will use to write your Final Reflection assignment (due next week).Instructions Step 1: Choose a domestic public policy:EnergyHealth careSocial welfareCivil rightsDeath penaltyGun controlTaxationAssisted suicideAffirmative action
Naloxon in your community | Sociology homework help
Please describe how and why Narcan works? Discuss the trends and statistics on Narcan use in your state or community. Is Narcan easily accessible in your community? Is it safe? If someone needed to get Narcan where would they get it and how much would it cost? After conducting your research what were the polices you found regarding Narcan? Conduct research on Narcan to better understand how it is being utilized in your community and nationally