What will the following two-file program display? // file1.cpp #include using namespace std; void other(); void another();
Question:
What will the following two-file program display?
// file1.cpp
#include
using namespace std;
void other();
void another();
int x = 10;
int y;
int main()
{
cout << x << endl;
{
int x = 4;
cout << x << endl;
cout << y << endl;
}
other();
another();
return 0;
}
void other()
{
int y = 1;
cout << "Other: " << x << ", " << y << endl;
}
// file 2.cpp
#include
using namespace std;
extern int x;
namespace
{
int y = -4;
}
void another()
{
cout << "another(): " << x << ", " << y << endl;
}
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (9 reviews)
I need to make a program that prompts the user for the names of ...View the full answer
Answered By
Dudhat Vaidehi
I tutored mostly elementary school students privately after school and during the summer. We met in their homes or at the public library. I charged an hourly fee, and I provided any necessary materials.
Having taught in special education in two local schools for many years meant that I had contact with a lot of parents of special needs students. I never had to advertise — word of mouth was how most folks knew of me. At one point I did have a website, but didn't utilize it much. I stayed very busy, especially in the summers, and always had a full schedule. I typically met with each student's teacher in order to get an idea of what the focus of my instruction/remediation should be. Becoming familiar with the student's learning style(s) was also very helpful. Often parents would share records and test results with me. After each tutoring session, I documented the student’s progress and gave parents written updates, as well as phone calls or emails as needed.
While my students and I certainly utilized technology and the internet often during our sessions, I never tutored online or for any tutoring company, so am not familiar with the curriculums or methods used in those settings.
Tutoring one on one was very enjoyable and rewarding. My students and I had fun, and grew quite fond of one another. The extra income was a bonus. I had to retire from tutoring due to a physically handicapping disease, and miss my students very much.
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
What will the following code display in message boxes? Dim intX As Integer = 1 Do MessageBox.Show(intX.ToString) intX = intX + 1 Loop Until intX > 5
-
What will the following code display in message boxes? Dim intX As Integer = 1 Do While intX < 5 MessageBox.Show(intX.ToString) intX += 1 Loop
-
What will the following program display? #include using namespace std; void other(); namespace n1 { int x = 1; } namespace n2 { int x = 2; } int main() { using namespace n1; cout < < x < < endl; {...
-
Posting the entries from the sales journal to the accounts receivable subsidiary ledger should be done ______. a). at the end of each month b). on a weekly basis c). on a daily basis d). only at the...
-
What is the purpose of stock market exchanges such as the New York Stock Exchange?
-
At December 31, 2020, the equity investments of Wang Inc. that were accounted for using the FV-OCI model without recycling were as follows: Because of a change in relationship with Ahn Inc., Wang...
-
Justify sources that you feel are most appropriate for recruiting salespersons in the following areas: (a) IT systems sales; (b) senior store retailing positions; (c) business-to-business sales...
-
The July 1, 20X5, trial balance for the Bond Redemption and Interest Debt Service Fund of the County of Hawaii, Hawaii, is presented here. The resources of the fund are committed to debt service. The...
-
Sell at Split-Off or Process Further Decision, Alternatives, Relevant Costs Vihaan Chemicals Company processes a number of chemical compounds used in disinfecting health club fitness equipment. One...
-
Consider the following selected accounts from the records of East Shore Enterprises at December 31, 2018: E (Click the icon to view the selected accounts and balances.) Read the requirement. Begin by...
-
Provide method definitions for the class described in Chapter Review Question 5 and write a short program that illustrates all the features. Data From Question 5 Define a class to represent a bank...
-
Suppose you want the average(3,6) function to return an int average of the two int arguments when it is called in one file, and you want it to return a double average of the two int arguments when it...
-
How many strings of length 8 can be formed from the letters A, B, C, D, and E ? How many of the strings have at least one E?
-
Complete the Following code : public class BicycleManufacturer { // Assuming you are a bicycle manufacturer that needs to keep track of // 1. ID of each bicycle made (automatically) // 2. the radius...
-
How can technology-enabled collaboration platforms and virtual team environments impact team dynamics, and what strategies can teams implement to overcome the challenges of remote work and leverage...
-
Can you elucidate the concept of team reflexivity and its significance in facilitating adaptive learning and continuous improvement within teams, emphasizing the importance of metacognitive...
-
A program consists of 1010 instructions where 70% of the instructions are ALU instructions, 20% are load instructions and 10% are jump instructions. The resulting values of the load instructions are...
-
Java code Tom loves strings very much but he loves palindromic strings even more. Today he found an old rope in his garage. The string is so old that some of its characters have disappeared and...
-
Show that the coefficient of performance for a reversible refrigerator is 1/[( TH / TC ) - 1].
-
According to a recent survey, 40% of millennials (those born in the 1980s or 1990s) view themselves more as spenders than savers. The survey also reveals that 75% of millennials view social...
-
Assume that a one-dimensional array named intArray of type int is declared, created, and initialized correctly. Write a code segment to compute the sum of all numbers stored in the even-numbered...
-
Indicate whether the following statements are syntactically correct or incorrect. If incorrect, indicate what is wrong with the statement: A. int [] array[]; *B. double data [] = new data []; *C. int...
-
Repeat the previous exercise using dialog boxes for input and output. An input dialog box is used to input a name of the organization. Then, a message dialog box displays the abbreviation of the...
-
Make recommendations for Under Armour's target group (Active lifestyle customers: who values Under Armour apparel's comfortable, breathability and moisture-wicking features, and digital fitness app)...
-
To create 3 scenarios (positive, neutral and negative) for the development of the restaurant. Include the following important factors in your assessments: border trade as one of the most important...
-
Joanne bought a gift for her friend's birthday from an online website. The service provider failed to deliver the gift on the day it had promised. To compensate, the service provider provided coupons...
Study smarter with the SolutionInn App