Questions
The purpose of this problem is to use graphic user interface (GUI) to interactively store grades...

The purpose of this problem is to use graphic user interface (GUI) to interactively store grades in a text file, rather than adding them manually to a script. Follow these steps to complete the program:

Step 1. Use a question dialog box and ask the user “Do you want to run this Program?” with two options for “yes” and “no”. If the user’s answer is “yes”, go to the next step, otherwise, go to Step 6.

Step 2. Create a file using fopen command to store the data.

Step 3. Use a while loop and create an input dialog box similar to that of Figure 1 inside the loop.

Step 4. Every time that the users enters the values, check whether the grade is -1 or not. If the grade is not -1, store the name, student ID, and grade in one line in the file using fprintf command. If the Student ID was shorter or longer than 7 digits, an error dialog box should appear and give an appropriate error message and display a fresh input dialog box. If the entry was correct, make sure to separate the data at each line by using horizontal tabs (this can be done by typing \t in the fprintf argument). Remember that the output of an input dialog box is a cellular array and you have to convert it into a string (by using curled brackets to access a specific element of the input dialog result) before storing it in a file.

Step 5. Close the file.

Step 6. Output a message using a message dialog box indicating that the problem is terminated. If you would like to use strcmp function, you may.

Step 7. Write the same code in a way that it stores the data in an Excel spreadsheet with proper formatting

In: Mechanical Engineering

Explain very briefly if the following statements are true or false. Mathematical or graphic treatment will...

Explain very briefly if the following statements are true or false. Mathematical or graphic treatment will be appreciated wherever possible or necessary.


8. A rise in the propensity to consume, implying an increase in the multiplier, rotates the IS curve anti-clockwise and makes it flatter.
9. A fall in the interest-sensitivity of investment function rotates the IS curve anti-clockwise and make it flatter.
10. A rise in the interest sensitivity of the demand for money has no effect on the intercept of the LM curve with the y-axis; it shifts the intercept with the vertical axis upward, rotating it clockwise direction about the horizontal intercept and making it flatter.
11. Given nominal money supply, a rise in the price level shifts the LM curve leftward with no change in the slope.

In: Economics

IAS 16. Fixed Assets. We are a graphic arts company, and at the beginning of 2016,...

IAS 16. Fixed Assets. We are a graphic arts company, and at the beginning of 2016, we acquired a new printer. The price of this printer was 25,000 euros. The additional expenses of the purchase were as follows:

  • Installation and assembly: 3.000 euros.
  • Transportation and delivery: 1.150 euros.

All operations have a 21% VAT (not included), and the payment of the amounts is made by bank check.

During January, the assembly and installation of the new printer takes place, which is in perfect working condition from February the 1st.

The useful life expectancy of the printer is estimated at 10 years, and its amortisation will be carried out following the linear method. Additionally, at the end of its useful life, the company will have to face the costs of dismantling and rehabilitation of the place. Estimating said costs in 5,000 euros. Besides, said machinery requires specialised weekly maintenance, amounting to 250 euros per month.

Calculate:

  • The initial cost of the acquisition.
  • The amortization fees.
  • The costs derived from daily maintenance.

IAS 36. Impairment of assets. We are a photo studio, and due to the increase in work and staff, we have had to acquire three new cameras and accessories. The acquisition occurred in January 2018. The prices of the cameras are as follows:

  • Camera 1: 1.750 euros
  • Camera 2: 3.500 euros
  • Camera 3: 1.950 euros
  • Accessories: 4.550 euros

Calculate:

  • The impairment loss of the asset at the end of 2020, taking into account that the recoverable amount of the acquisitions is:
    • Camera 1: 575 euros
    • Camera 2: 1.500 euros
    • Camera 3: 750 euros
    • Accessories: 2.200 euros

IAS 38. Intangible Assets. On March 1, 2016, we obtained a patent for 7,500 euros.

At the close of the fiscal year, on December 31, 2016, the fair value of the patent was 9,000 euros.

As of December 31, 2017, the fair value of the patent stands at 8,000 euros.

The criterion we use for valuation after the initial recognition of the asset is the revaluation model.

Formulate:

Make the accounting entries corresponding to the acquisition of the asset and at each accounting close.

In: Accounting

Explain very briefly if the following statements are true or false. Mathematical or graphic treatment will...

Explain very briefly if the following statements are true or false. Mathematical or graphic treatment will be appreciated wherever possible or necessary.

1. While in the classical model with flexible wages and prices both output and employment are determined in the goods market by the demand for and supply of goods, in Keynes’ model with fixed money wages they are not.
2. In Keynes’ model the important role of the interest rate is to bring the real demand in line with supply of money in the money market, and not aggregate savings in line with investment at full employment.
3. The neutrality of money in the classical model implies that afiscal policy increase in government expenditures has no real effects.
4. In order to maximize profits, the firm will hire extra labor until the nominal wage rate is equal to the marginal product of labor.
5. In Keynes’ model the labor market clears at such a real wage rate at which both households and firms maximize their utility and profit respectively.
6. In the classical model, the quantity theory of money holds at all times postulating that real money balances are demanded in proportion to real income. Therefore, we can express this as follows: .

In: Economics

Explain very briefly if the following statements are true or false. Mathematical or graphic treatment will...

Explain very briefly if the following statements are true or false. Mathematical or graphic treatment will be appreciated wherever possible or necessary.

7. In the classical model, aggregate supply conditions uniquely fix the level of output and employment which imply that both monetary policy and fiscal policy changes in money supply and government expenditures respectively do not have real effects.
8. A rise in the propensity to consume, implying an increase in the multiplier, rotates the IS curve anti-clockwise and makes it flatter.
9. A fall in the interest-sensitivity of investment function rotates the IS curve anti-clockwise and make it flatter.
10. A rise in the interest sensitivity of the demand for money has no effect on the intercept of the LM curve with the y-axis; it shifts the intercept with the vertical axis upward, rotating it clockwise direction about the horizontal intercept and making it flatter.
11. Given nominal money supply, a rise in the price level shifts the LM curve leftward with no change in the slope.
12. Aggregate demand in the classical model is determined by consumption demand, investment demand and excess of real money balances over the full employment level of output. This may be represented by the following equation: .

In: Economics

quick answer The graphic images of diseased lungs and rotten teeth and gums that appear on...

quick answer

The graphic images of diseased lungs and rotten teeth and gums that appear on cigarette packages in Canada and Australia depend for their effectiveness on a learning mechanism called ______.

Select one:

a. classical conditioning

b. habituation

c. observational learning

d. operant conditioning

Ahmed is writing an article for a popular “life hacks” site. He is considering the title, “Denial, Distraction, and Daydreaming: The Three Ds of ______ Coping.”

Select one:

a. Avoidance

b. Problem-Focused

c. Reaction

d. Approach-Focused

Mature trees” are a selling point often seen in real estate ads. Based on the textbook’s discussion, is this a valid selling point?

Select one:

a. Not really. The value of mature trees is limited to their aesthetic appeal, and perhaps the future resale value of the home.

b. Only in a limited way. A tree canopy of 10% may buffer the stress experienced in low-income communities.

c. It could be, if there are enough trees. Tree cover can reduce depression, stress, and anxiety, but only if there is a 25% tree canopy.

d. Definitely. A tree canopy of 10% can reduce depression, stress, and anxiety among people of all income levels.

Research suggests that with respect to one’s health, having a dog ______.

Select one:

a. has no clear benefit

b. may save a person about one doctor visit per year

c. may save a person about two doctor visits per year

d. reduces 5-year mortality rate by half when one is older

The amount of time that doctors and nurses spend providing direct patient care is ______ correlated with the level of stress that they experience.

Select one:

a. negatively

b. not

c. positively

d. variably

A developmental health psychologist is comparing middle-aged and older-adults’ perceptions of health care options in her community. She is matching the adults on such variables as ethnicity, education, and SEs. The psychologist is conducting a(n) ______ using a ______ design.

Select one:

a. experiment; cross-sectional

b. quasi-experiment; longitudinal

c. quasi-experiment; cross-sectional

d. quasi-experiment; longitudinal

With respect to descriptive research methods, Sigmund Freud’s theory was built on a foundation of ______ data.

Select one:

a. archival research

b. case study

c. survey

d. cross-sectional

Lorena suffers from major depressive disorder. All else being equal, Lorena’s chances of experiencing a cardiac event are increased by ______. She ______ reduce this risk if she exercises extensively.

Select one:

a. 15%; can

b. 15%; cannot

c. 30%; can

d. 30%; cannot

Holmes and Rahe’s Social Readjustment Rating Scale (SRRS) measures ______.

Select one:

a. the severity of PTSD

b. major life events

c. appraisal strategies

d. locus of control

In an experiment, the factor under consideration as a potential cause is generally the ______ variable.

Select one:

a. dependent

b. randomized

c. independent

d. control

Inaccurate reporting, constrained response options, and leading questions are all potential drawbacks of ______.

Select one:

a. naturalistic observation

b. experiments

c. case studies

d. surveys

With respect to the scientific method, the statistics courses that undergraduate psychology degree programs usually require are MOST relevant to the step of ______.

Select one:

a. analyzing data

b. developing a theory

c. proposing a hypothesis

d. revising a theory

Anjelica has always been a bit of “control freak” and “micro-manager” who wants to know everything, all the time. The same is true for her impending surgery. Based on the textbook’s discussion of tailored health-promotion messages, Anjelica is MOST likely to benefit from a(n) ______ intervention to manage the pain related to her procedure.

Select one:

a. emotion-focused

b. gain-framed

c. loss-framed

d. problem-focused

The portrayal of the likely success of such procedures as CPR on television medical dramas is BEST described as ______.

Select one:

a. too pessimistic

b. realistic

c. slightly optimistic

d. very optimistic

Jenny is a member of Narcotics Anonymous. Her sponsor stresses the importance of regular meeting attendance and continued step work to build clean time and to prevent a relapse. With respect to the stages of change model, this advice is aimed at supporting the ______ stage.

Select one:

a. maintenance

b. action

c. pre-contemplation

d. contemplation

Which individual is the BEST example of a Type A personality?

Select one:

a. Bonnie, a relaxed, fun-loving professor

b. Susan, a brilliant, self-confident accountant

c. Andrew, a competitive, easily angered journalist

d. Clay, a reflective, open-minded artist

Simon is faced with an overwhelming workload. Using problem-focused coping, Simon ______.

Select one:

a. meditates

b. binge drinks

c. gets a deadline extended

d. goes to a movie

Dr. Navarre investigates the link between coping strategies and immune system functioning during stressful situations. Dr. Navarre is BEST described as a ______.

Select one:

a. psychoneuroimmunologist

b. medical psychology

c. psychophysiologist

d. neuropsychologist

In: Psychology

MODIFIED TRUE OR FALSE 1.If there are not enough corporate officers, the position of President can...

MODIFIED TRUE OR FALSE

1.If there are not enough corporate officers, the position of President can be merged with that of the operations officer.

2.A person may be both Secretary and Treasurer of a corporation at the same time.

3.In all corporations, a compliance officer and/or an independent director is required.

4.Mr. Graest, a director candidate was alledged to have committed sexual assault and as such is disqualified to be elected as director.

5.Mr. Xylon, a director candidate was accused of insider trading and as such is disqualified to be elected as a director.

In: Accounting

5. You prepared the income tax return for Brian’s sister, Diana. She is now being accused...

5. You prepared the income tax return for Brian’s sister, Diana. She is now being accused of tax evasion by the IRS. Her attorney wants to retain you to evaluate the evidence the IRS is compiling and give him recommendations on what to do in her case. You’ve accepted the retainer and write a report for the attorney.

a. Is this entire report covered by the attorney-client privilege? Why or why not?

b. Is this report covered by the accountant’s privilege in I.R.C. § 7525? Why or why not?

In: Accounting

The High Court of Australia’s decision in Gambotto v WCP Ltd (1995) 182 CLR 432 provided...

The High Court of Australia’s decision in Gambotto v WCP Ltd (1995) 182 CLR 432 provided a test for determining whether a constitutional alteration may be set aside on the basis of unfairness to the minority.

Explain this test with reference to the facts of the case

In: Accounting

The High Court of Australia’s decision in Gambotto v WCP Ltd (1995) 182 CLR 432 provided...

The High Court of Australia’s decision in Gambotto v WCP Ltd (1995) 182 CLR 432 provided a test for determining whether a constitutional alteration may be set aside on the basis of unfairness to the minority.

Explain this test with reference to the facts of the case.

In: Accounting