Questions
I need assistance on what I am doing wrong, I've been trying to declare "getRandomLetter" as...

I need assistance on what I am doing wrong, I've been trying to declare "getRandomLetter" as a scope, but haven't found how to all day. It's been about 3+ hours and I still have nothing. Please help fix these and let me know what I am doing wrong (There may be more simple ways of coding all this, but I just need help fixing the errors with current code, thank you). I am trying to have buildAcronym() hold the position of going from A-Z , & as well as getRandomLetter() choose a letter from A-Z using the ASCII character set. This is a bit of the prompt where it asks to set these up. If I am off, I do apologize.

Define and overload two void-typed functions named buildAcronym that assign a (pseudo)-random uppercase letter to two (2) or three (3) character parameters, depending on the version called. Each character in an acronym must be a unique uppercase letter. Two arguments (or three, depending on the version called) will be assigned a random character literal, which can then be printed out in main.

These are my errors.

Acronyms.cpp: In function 'void buildAcronym(char, char, char)':
Acronyms.cpp:13:35: error: 'getRandomLetter' was not declared in this scope
getRandomLetter(a , b , c)
^
Acronyms.cpp: In function 'void buildAcronym(char, char)':
Acronyms.cpp:25:24: error: 'getRandomLetter' was not declared in this scope
getRandomLetter(a,b)
^
Acronyms.cpp: In function 'int main()':
Acronyms.cpp:50:39: error: 'getRandomLetter' was not declared in this scope
cout << getRandomLetter(a,b) ;
^
Acronyms.cpp:56:42: error: 'getRandomletter' was not declared in this scope
cout << getRandomletter(a,b,c);
^
Acronyms.cpp:60:9: error: expected ';' before '{' token
{
^
Acronyms.cpp:67:1: error: expected 'while' at end of input
}
^
Acronyms.cpp:67:1: error: expected '(' at end of input
Acronyms.cpp:67:1: error: expected primary-expression at end of input
Acronyms.cpp:67:1: error: expected ')' at end of input
Acronyms.cpp:67:1: error: expected ';' at end of input
Acronyms.cpp:67:1: error: expected '}' at end of input

------------------------------------------------------------------------------------------------------------------------------------

--

--------------------------------------

(there are 3 lines above include Name: Date: Filename: apologies that it is missing)

#include
using namespace std;


void buildAcronym(char a ,char b , char c)
{
if('A'<= b && 'A' <= b && 'A' <= c && a <= 'Z' && b <= 'Z' && c <= 'Z')
{
getRandomLetter(a , b , c)
{
cout << a + rand() % 65 + 90 << "." ;
cout << b + rand() % 65 + 90 << "." ;
cout << c + rand() % 65 + 90 << "." ;
}
}
return ;
}

void buildAcronym(char a , char b)
{
getRandomLetter(a,b)
{
cout << a + rand() % 65 + 90 << "." ;
cout << b + rand() % 65 + 90 << "." ;
}

return ;
}

int main()
{
char a , b , c ;
int choice ;
do
{
cout << "Press 1 for a two letter acronym, and 2 for a three letter acronym. " ;
cin >> choice ;
switch(choice)
{
case 1 :

if (choice == 1)
{

cout << getRandomLetter(a,b) ;
break ;
}
case 2 :
if (choice == 2)
{
cout << getRandomletter(a,b,c);
break;
}
else (choice != 1 && choice != 2)
{
cout << "Press 1 for a two letter acronym, and 2 for a three letter acronym. ";
}
}while(choice!=1 && choice != 2);

return 0;
}

In: Computer Science

Your firm has estimated the following inverse demand curve for the market in which your firm...

Your firm has estimated the following inverse demand curve for the market in which your firm operates:

P = 600 - 1/3Q(d)

The prevailing market price is currently $100 a unit.

Determine which of the following statements are correct (multiple statements may be correct).

A.) When price is equal to $700 a unit, quantity demanded is equal to -300.

B.) At a prevailing market price of $100 a unit, consumer surplus is equal to $375,000 and consumer expenditure would be $150,000.

C.) If the price rises from $100 to $200 a unit, the resulting consumer surplus at $200 a unit would be $375,000

D.) At $100 a unit, consumer surplus is equal to $150,000.

E.) If the price rises from $100 to $200 a unit, the resulting consumer surplus at $200 a unit would be $240,000

F.) At $100 a unit, consumer expenditure is equal to $150,000.

In: Economics

A trader buys 200 put options on a stock with a strike price of $100 when...

A trader buys 200 put options on a stock with a strike price of $100 when the option price is $3 and the stock price is $102. The trader holds the options to the maturity date when the stock price is $107. What is the trader’s net profit or loss?

In: Finance

You bought a 10-year bond with $100 face value at a price of $101 with a...

You bought a 10-year bond with $100 face value at a price of $101 with a coupon rate of 5.00% paid semiannually. After 5 years, (5 years left in maturity) you decide to sell it and you find that the new yield to maturity is 6.00% APR. What is the percentage change in the bond’s price?

Group of answer choices

-1.46%

-8.36%

-5.21%

5.50%

In: Finance

If the price is $5.00 and Average Total Costs are $10.00 when the firm sells 100...

If the price is $5.00 and Average Total Costs are $10.00 when the firm sells 100 pizzas, find the total profits.

(if you need a negative sign, it MUST be included. Type in $ format, like -$200.00)

In: Economics

supose that the demand of healthcare is given by P=100-10hc. Suppose that the price of healthcare...

supose that the demand of healthcare is given by P=100-10hc. Suppose that the price of healthcare is $20 per visit. What is the consumer surplus at equilibrium?

In: Economics

You own 100 shares in the firm Alfa. The current share price is £10 and the...

You own 100 shares in the firm Alfa. The current share price is £10 and the earnings per share is £0.70. Assume there are no capital market imperfections and that Alfa’s annual earnings will remain constant in future. Alfa pays out all of its earnings each year as dividends. You prefer to invest your money in the firm, so you reinvest each year’s dividend in the firm by buying more of its shares. Your investment horizon is 10 years.

i. What is the value of your investment after 10 years? What would the value of your investment have been, if Alfa’s policy was a zero dividend payout over the same period?

Assume now that there are personal taxes but no other market imperfections. The tax rate on both dividends and capital gains is 30%.

  1. Assume again that Alfa pays out all its earnings as dividends. You reinvest all your dividends back in the firm but decide to sell your shares at your 10 year investment horizon, immediately after the last dividend was paid. What is the value of your wealth?

What would be your answer in (ii), assuming now that Alfa’s policy was a zero dividend payout over the 10 years? Is it different? Why/why not?

In: Finance

A bond has a 6% coupon with a face value of 100. Calculate its price for...

A bond has a 6% coupon with a face value of 100. Calculate its price for a yield-to-maturity of 5%, for each of the following maturities: a) 10 years b) 5 years c) 0 years Use these results to answer the following questions: Suppose the bond is sold today with ten years to maturity at a y-t-m of 5%. Assuming its y-t-m is unchanged, what would its price be five years from today? What about five years after that?

In: Finance

A firm facing a price of $15 in a perfectly competitive market decides to produce 100...

A firm facing a price of $15 in a perfectly competitive market decides to produce 100 widgets. If its marginal cost of producing the last widget is $12 and it is seeking to maximize profit, the firm should

Question 9 options:

shut down

produce more widgets

continue producing 100 widgets

produce fewer widgets

In: Economics

If quantity is 100 when price is $50, what is total revenue? Given a quantity of...

If quantity is 100 when price is $50, what is total revenue?

Given a quantity of 1,000, a price of $10, and a total cost of $8,000, calculate total profit.

On a monopoly graph, how do you find the profit maximizing level of output?

At the intersection of demand and marginal cost and drop straight down.
At the intersection of marginal revenue and marginal cost and drop straight down
At the minimum of the average total cost curve and drop straight down

I don't know, I didn't learn the graphs.

Which of the following is a characteristic of monopolistic competition?

One firm
Strong barriers to entry
No close substitutes
Many, small firms

If the 5 firms in an industry have market shares of 40, 30, 15, 10, and 5, calculate the Hirerfindahl-Hirschman Index.

What is the general solution for dealing with the market failure of public goods?

It is best to leave things to private markets
Have the government regulate the industry
Have the government provide the good and force people to pay for it with taxes

Have the government sue the industry to pay for all of the costs of production

Does the existence of a negative externality result in the market system producing too much or too little of the product compared to what is best for society?

Too much
Too little
Just the right amount

In: Economics