You mission is create a C# program with the following. 1. At the top center of the page is a title which displays your name - use a label. a. adjust the font size from the default to a bigger size. b. adjust the font color to a different color than the default c. name the label using a naming convention shown in the chapter. Use this same format for all of your objects. 2. Below the title, centered, place a picture of yourself using the picturebox tool explained in the chapter. a. name the picture box with a meaningful name using the naming convention you used in #1. b. size the picture to fit evenly under your title. c. make sure the picture is properly saved in the right location within the C# application or it won't be copied when you submit the assignment. Do not code a complete location like c:/myfiles .... I won't have the same folders as you. It has to reside in the proper images folder which is located with your other program files. 3. Create TWO buttons on the same line (row) as each other. They should be evenly spaced apart from each other..Same space between the left edge, center, and right edge. a. Give each button a meaningful name using the naming convention you used for #1. b. The left button should display (within the button itself), the words - my favorite quote. c. The right button should display (within the button itself), the words - what I do for fun. 4. Double click the left button. You should now be in the code area for the click event for this button. a. Create the code (only takes one line) to display your favorite quote when the button is clicked. 5. Double click the right button. You should now be in the code area for the click event for this button. a. Create the code (only takes one line) to display a statement about what you do for fun. 6. Place another button below the two buttons, centered under the picture. a. Name the button with a meaningful name using the naming convention you used in #1. b. The words inside the button will be - close program c. Double click the button to enter code under the button. d. Enter a line of code which will display something funny about the person leaving your program. e. Enter a second line of code which closes the program. Test, Test, Test! Make sure it works. I will be testing your program!
In: Computer Science
Can't seem to get the program working. I have the same program as a friend, but mine says void getNextWord fuction not found. I need getNextWord fuction Any Help would be great.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
bool isPunct(char);
bool isVowel(char ch);
string rotate(string pStr, string::size_type len);
string pigLatinString(string pStr);
void getNextWord(ifstream& inf, char& ch,
string& word);
//global declaration
int main()
{
string str;
//declaration
char ch;
ifstream infile;
ofstream outfile;
//input
infile.open("Sentence.txt");
if (!infile) {
cout << "Cannot open input
file. Program terminates." << endl;
return 1;
}
outfile.open("Piglatin.txt");
infile.get(ch);
while (infile) {
while (ch != '\n' &&
infile) {
if (ch == ' ')
{
outfile << ch;
infile.get(ch);
}
else {
getNextWord(infile, ch, str);
outfile << pigLatinString(str);
}
}
outfile << endl;
infile.get(ch);
}
infile.close();
outfile.close();
return 0;
}
bool isVowel(char ch)
{
cout << "in isvowel()" << endl;
bool isV = false;
switch (ch) {
case 'A': case 'a':
case 'I': case 'i':
case 'U': case 'u':
case 'E': case 'e':
case 'O': case 'o':
case 'Y': case 'y':
isV = true;
break;
default:
isV = false;
}
return isV;
}
bool isPunct(char ch)
{
cout << "in isPunct()" << endl;
bool isP = false;
switch (ch)
{
case ',':
case '?':
case '.':
case ';':
case ':':
case '!':
isP = true;
break;
default:
isP = false;
}
return isP;
}
string rotate(string pStr, string::size_type len)
{
cout << "in rotate()" << endl;
string rStr;
rStr = pStr.substr(1, len - 1) + pStr[0];
return rStr;
}
string pigLatinString(string pStr)
{
string::size_type len = pStr.length();
bool foundVowel; //done = false;
bool isPunctuation = isPunct(pStr[len - 1]);
char puncMark;
string::size_type counter;//loop counter
if (isPunctuation) {
puncMark = pStr[len - 1];
len -= 1;
}
if (isVowel(pStr[0])) {
pStr = pStr.substr(0, len) +
"-way";
}
else
{
pStr = pStr.substr(0, len) +
'-';
pStr = rotate(pStr, len);
len = pStr.length();
foundVowel = false;
for (counter = 1; counter <
len - 1; counter++)
{
if
(isVowel(pStr[0]))
{
foundVowel = true;
break;
}
else {
pStr = rotate(pStr, len);
}
}
cout << "line 157: " <<
pStr;
if (!foundVowel) {
pStr =
pStr.substr(1, len) + "-way";
}
else {
pStr +=
"ay";
//pStr = pStr +
"ay";
}
cout << "line 165: " <<
pStr << endl;
}
if (isPunctuation) {
pStr = pStr + puncMark;
}
cout << "line 170: " << pStr <<
endl;
return pStr;
}
In: Computer Science
An investment of $119,000 was made by a business club. The investment was split into three parts and lasted for one year. The first part of the investment earned 8% interest, the second 6%, and the third 9%. Total interest from the investments was $ 9030. The interest from the first investment was 3 times the interest from the second. Find the amounts of the three parts of the investment.
In: Math
The position of a mass oscillating on a spring is given by x=(5.8cm)cos[2πt/(0.64s)]
Part A
What is the frequency of this motion?
Express your answer using two significant figures.
Part B
When is the mass first at the position x=−5.8cm?
Express your answer using two significant figures.
2) The position of a mass oscillating on a spring is given by x=(3.3cm)cos[2πt/(0.80s)].
Part A
What is the period of this motion?
Express your answer using two significant figures.
Part B
What is the first time the mass is at the position x=0?
Express your answer using two significant figures.
3)A ball rolls on a circular track of radius 0.70 m with a constant angular speed of 1.4 rad/s in the counterclockwise direction.
Part A
If the angular position of the ball at t= 0 is θ = 0, find the x component of the ball's position at the time 2.6 s . Let θ= 0 correspond to the positive x direction.
Express your answer using two significant figures.
Part B
Find the x component of the ball's position at the time 5.1 s .
Express your answer using two significant figures.
Part C
Find the x component of the ball's position at the time 7.5 s
Express your answer using two significant figures.
Thanks for the help!
In: Physics
A 2.00-kg package is released on a 53.1∘ incline, 4.00 m from a long spring with force constant 120 N/m that is attached at the bottom of the incline (Figure 1) . The coefficients of friction between the package and the incline are μs=0.40 and μk=0.20. The mass of the spring is negligible.
A. What is the speed of the package just before it reaches the spring?
B. What is the maximum compression of the spring?
C. The package rebounds back up the incline. How close does it get to its initial position?
In: Physics
Samples of starting annual salaries for individuals entering the public accounting and financial planning professions follow. Annual salaries are shown in thousands of dollars.
| Public Accountant | Financial Planner |
|---|---|
| 49.2 | 49.0 |
| 58.8 | 48.2 |
| 57.3 | 52.1 |
| 57.2 | 54.9 |
| 54.2 | 52.9 |
| 55.0 | 53.6 |
| 49.9 | 48.7 |
| 59.5 | 53.9 |
| 58.0 | 52.8 |
| 52.9 | 48.9 |
(a)Use a 0.05 level of significance and test the hypothesis that there is no difference between the starting annual salaries of public accountants and financial planners.
State the null and alternative hypotheses.
H0: The two populations of salaries are not
identical.
Ha: The two populations of salaries are
identical.H0: Median salary for public
accountants − Median salary for financial planners ≤ 0
Ha: Median salary for public accountants −
Median salary for financial planners >
0 H0: The two
populations of salaries are identical.
Ha: The two populations of salaries are not
identical.H0: Median salary for public
accountants − Median salary for financial planners ≥ 0
Ha: Median salary for public accountants −
Median salary for financial planners < 0H0:
Median salary for public accountants − Median salary for financial
planners > 0
Ha: Median salary for public accountants −
Median salary for financial planners = 0
Find the value of the test statistic.
W =
Find the p-value. (Round your answer to four decimal places.)
p-value =
What is your conclusion?
Reject H0. There is not sufficient evidence to conclude that there is a significant difference between the starting annual salaries of public accountants and financial planners.
Do not reject H0. There is not sufficient evidence to conclude that there is a significant difference between the starting annual salaries of public accountants and financial planners.
Reject H0. There is sufficient evidence to conclude that there is a significant difference between the starting annual salaries of public accountants and financial planners.
Do not reject H0. There is sufficient evidence to conclude that there is a significant difference between the starting annual salaries of public accountants and financial planners.
What are the sample median annual salaries (in $) for the two professions?
Public Accountantssample median=$
Financial Plannerssample median=$
In: Math
What is the pH at the equivalence point when 25.00 mL of a 0.150 M solution of acetic acid (CH3COOH) is titrated with 0.10 M NaOH to its end point?
In: Chemistry
3. What did you learn from the story of Vodafone in Japan?
In: Operations Management
For each of the following, describe in words, the shift in the supply and/or demand for bonds for each case. Also, answer the question what happens to price and interest rates under each case (Don't write on paper I need to copy it.)
In: Economics
Explain why we use a predetermined overhead rate to apply MOH to individual products/jobs.
In: Accounting
1. household vinegar is 5% of acetic acid. give the formula for acetic acid. show work please!e
2. how could you distinguish solid barium chloride from solid barium sulfat?
do you think washing soda Na2CO3, could be used for the same purpose as baking soda NaHCO3? would Na2CO3 react with HCl ? write the chemocal equation. write the chemical equation for the reaction of NaHCO3 with HCl.
In: Chemistry
8. The factor-price equalization theory and transportation costs
Which of the following statements about the factor-price equalization theory and the effects of transportation costs are correct? Check all that apply.
In trading nations, the cheap resource becomes even less expensive, and the expensive resource becomes even more expensive, which facilitates the growth of trade.
Differences in transportation costs across countries are a source of comparative advantage.
The factor-endowment theory accounts for transportation costs and other trade barriers.
When nations trade, the cheap resource becomes relatively more expensive, and the expensive resource becomes relatively less expensive, until price equalization occurs.
Which of the following statements about transportation costs are correct? Check all that apply.
When transportation costs rise, markets tend to substitute goods that are from closer locations.
Transportation costs have declined due to technological improvements for transporting goods.
International transportation costs are increasing everywhere in the world except in the United States.
Since the 1960s, transportation costs, as a percentage of the value of all U.S. imports, increased twofold.
The decline in the U.S. relative cost of international transportation has contributed to a higher volume of trade.
In: Economics
Suppose you need $1 million dollars to start your Dream Business. Describe two (2) ways you would generate the funds needed to start such a business. Next, discuss any risks or benefits you should be aware of when gathering these funds. Provide examples to support your response.
In: Finance
Russia pulled out of Afghanistan in 1989 after a 10 year war. What effect did this have on globalization ?
In: Economics