how to create s recursive function, explore that prompts the user to enter a directory name and an executable name, and checks that they are both readable and executable (terminating with an error message if not). It then passes the two names to the explore function.
this is a part of bash scripting.
In: Computer Science
As a challenge question i was asked to make a program that can make a newly made Directory that has the name input from the user. I am to create a program that can make a txt file in the newly created directory.
I am doing this in windows and this is what i got.
#include <windows.h>
#include <string>
#include <iostream>
#include <string.h>
#include <fstream>
#include <TlHelp32.h>
using namespace std;
int main()
{
string Text = "Test string";
ofstream file;
cout << " Type Text here: ";
getline(cin, Text);
cout << "\n\n";
CreateDirectory (("C:\\Users\\Filepath" + Text).c_str(),
NULL);
cout << Text << endl;
return 0;
}
Tried many methods, but was not able to. I am suppose to determined if it can be done or not.
Thank you for your time!
In: Computer Science
1.What standard methods can you use when handling file-reading and file-writing operations?
a. Java
b. Fragment-based methods
c. onClick
d. DDMS
2. What would this query return? SELECT * FROM Items WHERE OrderDate >= Date('Now')
a. All items in the database.
b. Nothing
c. Items that were ordered yesterday
d. Items that were ordered today.
3. What can you use to manage files within a desired directory and create subdirectories?
a. Subdirectory objects
b. Directory class
c. File objects
d. Context class
4. What class can you use to access external storage on the device?
a. The Fragment class
b. The Environment class
c. The External class
d. The Log class
In: Computer Science
Hello, please answer all 3 questions, if possible! :) I will make sure to add 5 star rating!
29. Which of the following commands may be used to display boot error messages? (Choose all that apply.)
a. dmesg | less
b. less /var/log/boot
c. less /var/log/wtmp
d. less /var/log/boot.log
31. Which of the following can be used to obtain detailed performance statistics regarding virtual memory usage? (Choose all that apply.)
a. Files stored within the /proc directory.
b. The iostat command.
c. The vmstat command.
d. The sar command.
32. Which of the following commands can be used to tune system parameters that are stored within the /proc directory?
a. sysctl
b. iostat
c. sar
d. hdparm
In: Computer Science
QUESTION 17
GE pays health & life insurance to employees who retire early. How are these obligations accounted for according to SFAS No. 106 (OPEB)?
| a. |
On a pay-as-you-go basis |
|
| b. |
Other post-employment benefits obligations that are liabilities |
|
| c. |
Other post-employment benefit obligations that are reported as other comprehensive income |
|
| d. |
Extraordinary item |
1 points
QUESTION 18
America On-line & Time Warner, an internet company & an old line economy company but both media giants, recently merged. This was an example of a:
| a. |
Secondary equity market transaction |
|
| b. |
Vertical merger |
|
| c. |
Horizontal merger |
|
| d. |
Conglomerate merger |
1 points
QUESTION 19
Ford acquired Land Rover using the purchase method for $2.6 billion. Land Rover had a book value of $1.2 billion & a fair value of $1.8 billion. Therefore, Ford would record goodwill of:
| a. |
$800 million |
|
| b. |
$600 million |
|
| c. |
$0 |
|
| d. |
$1.4 billion |
In: Accounting
Suppose Bank of America Stock has a beta of 1.32, whereas Boeing Stock has a beta of 1.23. If the risk-free interest rate is 1.78% and the expected return of the market portfolio is 10%, according to the CAPM?
A. What is the expected return of Bank of America Stock? (Please Show Calculations - No excel please)
B. What is the expected return of Boeing Stock? (Please Show Calculations - No excel please)
C. What is the beta of a portfolio that consists of 45% Bank of America stock and 55% Boeing stock? (Please Show Calculations - No excel please)
D. What is the expected return of a portfolio that consists of 45% Bank of America stock and 55% Boeing stock? (Please solve it using two ways) - (Please Show Calculations)
In: Finance
Before the Civil War, the South was the wealthiest region in the country. After the war, it was the poorest, especially the cotton states of Georgia, Alabama, Mississippi, Louisiana and South Carolina. This poverty would remain characteristic of the region for more than a century. Discuss the reasons why the South fell into poverty and remained there for such a long time.
In: Economics
SECTION B – CASE STUDY
Read the scenario below and answer the questions that follow:
South Africa has a negative trade balance with the East (Asia). The value of imports from the East is more than the value of the goods that South Africa exports to Asia. This means that the trade balance or terms of trade is not in favour of South Africa. This is not a uniquely South African phenomenon. Part of the reason for the trade war between the United States and China is due to the fact that terms of trade tend to be skewed in favour of China.
Source: Examiner
4BQuestion 1
1.1 Use an appropriate diagram to illustrate and explain the effect of the scenario above on the foreign exchange market. (8)
1.2 Discuss the three (3) policy options available to South Africa to mitigate against the outcome in 1.1. (6)
1.3 Briefly discuss the effect of the trade wars between China and the United States on the South African current account. (6)
In: Economics
Pick a modern visual (magazine ad/commercial, picture, cartoon, signage, etc.) and explain why the ad is/isn’t persuasive.
In: Economics
1. Explain the advantages and disadvantages of magazine advertising. Make sure to include effect on Target Market and cost in your response.
In: Economics