In: Economics
Consider this class with a const variable and function:
class Student {
private:
const int IDNum;
public:
Student();
int getIDNum() const:
};
a. How do you initialize the const variable IDNum to 100? Write the
code:
b. Are getters normally declared const?
c. Are setters normally declared const?
d. Can a const function call a non-const function?
e. Can a non-const function call a const function?
f. Can a const function use a non-const variable?
g. Can a non-const function use a const variable?
In: Computer Science
using matlab:
1- Using ‘input’ command, ‘prompt’ your name and ask for a grade (A, B, C, D, F should be accepted only, otherwise it should ask again)
2- Use ‘display’ command for the previous problem and display your name and your grade
In: Computer Science
In: Biology
A) Provide a PESTLE Analysis for the firm
B) Provide a SWOT Analysis for the firm
Freemark Abbey Winery
Earlier in September, William Jaeger, a member of the partnership that owned Freemark Abbey Winery, had to make a decision: should he harvest the Riesling grapes immediately or leave them on the vines despite an approaching storm?A storm just before harvest is usually detrimental, often ruining the crop. A warm, light rain, however, will sometimes cause a beneficial mold, botrytis cinerea, to form on the grape skins. The result is a luscious, complex, sweet wine, highly valued by connoisseurs.
The Winery
Freemark Abbey is located in St. Helena, California, in the northern Napa Valley. The winery produces only premium wines from the best grape varieties. Of the 25,000 cases of wine bottled each year (about the same as Chateau Lafite-Rothschild), most were Cabernet Sauvignon and Chardonnay. About 1,000 cases of Riesling and 500 cases of Petite Syrah were also bottled. (A case contains twelve 750-ml bottles.)
The Napa Valley extends for 30 miles, from Calistoga in the north to Napa in the south. The average temperature decreases as one moves south, closer to San Francisco Bay and the cold ocean waters. Freemark Abbey’s grapes come from an ideal climate in the central and southern parts of the valley.
Winemaking
Wine is produced when the fruit sugar, which is naturally present in the juice of grapes, is converted to yeast, through fermentation, into approximately equal molecular quantities of alcohol and carbon dioxide. Sparkling wines excepted, the carbon dioxide is allowed to bubble up and dissipate. The wine then ages in barrels for one or more years, until it is ready for bottling.
By various decisions during wine-making – for example, the type of wooden barrel used for aging – the vintner or winemaker influences the style of wine produced. The style adopted by a particular winery depends mainly on the owners’ preferences, though it is influenced by marketing considerations. Usually, as the grapes ripen, the sugar levels increase and the acidity levels decrease. The winemaker tries to harvest the grapes when they have achieved the proper balance of sugar and acidity for the style of wine sought. The ripening process is variable, however, and if the weather is not favorable, the proper balance might never occur.
Several different styles of Riesling (more accurately, Johannisberg Riesling) are on the market. If the grapes are harvested at 20% sugar, the wine is fermented “dry” (all the sugar is converted to alcohol and carbon dioxide) or “near dry.” The resulting wine, at bout 10% alcohol, is light bodied. If the grapes are harvested at 25% sugar, the winemaker can produce a wine with the same 10% alcohol but with 5% residual sugar; this wine is sweet and relatively full bodied.
A third and rare style results when almost-ripe Riesling grapes are attacked by the botrytismold. The skins of the grapes become porous, allowing water to evaporate while the sugar remains. Thus, the sugar concentration increases greatly, sometimes to 35% residual sugar, has extraordinary concentration, and the botrytisitself adds to the wine’s complexity. Freemark Abbey had already produced a botrytisedRiesling from an earlier vintage.
Jaeger’s Decision Problem
From the weather reports, Jaeger concluded that there was a 50 – 50 chance that the rainstorm would hit the Napa Valley. Since the storm had originated over the warm waters off Mexico, he thought there was a 40% chance that, if the storm did strike, it would lead to the development of the botrytismold. If the botrytisdid not form, however, the rainwater, which would be absorbed into the grapes through the roots of the vines, would merely swell the berries by 5 – 10%, decreasing their concentration. This would yield a thin wine that would sell wholesale for only about $2.00 per bottle, about $0.85 less than Jaeger could obtain by harvesting the not-quite-ripe grapes immediately and eliminating the risk. Freemark Abbey always had the option of not bottling a wine that was not up to standards. It could sell the wine in bulk, or it could sell the grapes directly. These options would bring only half has much revenue, but would at least avoid damaging the winery’s reputation, which would be risked by bottling an inferior product.
If Jaeger decided not to harvest the grapes immediately in anticipation of the storm, and the storm did not strike, Jaeger would probably leave the grapes to ripen more fully. With luck, the grapes would reach 25% sugar, resulting in a wine selling for around $3.50 wholesale. Even with less-favorable weather, the sugar levels would probably top 20%, yielding a lighter wine selling at around $3.00. Jaeger thought these possibilities were equally likely. In the past, sugar levels occasionally failed to rise above 19%. Moreover, while waiting for sugar levels to rise, the acidity levels must also be monitored. When the acidity drops below about 0.7%, the grapes must be harvested whatever the sugar level. If this happened, the wine would be priced at only about $2.50. Jaeger felt that this even had only about a 0.2 probability.
The wholesale price for a botrytised Riesling would be about $8.00 per bottle. Unfortunately, the same process that resulted in increased sugar concentration also caused a 30% reduction in the total juice. The higher price was, therefore, partly offset by a reduction in quantity. Although fewer bottles would be produced, there would be essentially no savings in vinification costs. The costs to the winery were about the same for each of the possible styles of wine and were small relative to the wholesale price.
In: Economics
Hart Manufacturing makes three products. Each product requires manufacturing operations in three departments: A, B, and C. The labor-hour requirements, by department, are as follows:
| Department | Product 1 | Product 2 | Product 3 |
| A | 1.70 | 3.20 | 2.20 |
| B | 2.40 | 1.40 | 2.90 |
| C | 0.45 | 0.45 | 0.45 |
During the next production period, the labor-hours available are 490 in department A, 390 in department B, and 90 in department C. The profit contributions per unit are $29 for product 1, $32 for product 2, and $34 for product 3. Use a software package LINGO.
| Max | ______P1 | + | ______P2 | + | ______P3 | ||
| s.t. | |||||||
| ______P1 | + | ______P2 | + | ______P3 | ≤ | ______ | |
| ______P1 | + | ______P2 | + | ______P3 | ≤ | ______ | |
| ______P1 | + | ______P2 | + | ______P3 | ≤ | ______ | |
| P1, P2, P3 ≥ 0 | |||||||
| Max | ______P1 | + | ______P2 | + | ______P3 | + | ______y1 | + | ______y2 | + | ______y3 | ||
| s.t. | |||||||||||||
| ______P1 | + | ______P2 | + | ______P3 | ≤ | ______ | |||||||
| ______P1 | + | ______P2 | + | ______P3 | ≤ | ______ | |||||||
| ______P1 | + | ______P2 | + | ______P3 | ≤ | ______ | |||||||
| ______P1 | + | ______y1 | ≤ | ______ | |||||||||
| ______P2 | + | ______y2 | ≤ | ______ | |||||||||
| ______P3 | + | ______y3 | ≤ | ______ | |||||||||
| P1, P2, P3 ≥ 0; y1, y2, y3 = 0, 1 | |||||||||||||
Please fill out all the blanks! Thank you!!
In: Math
A dominant gene, b+, is responsible for the wild-type body color of Drosophila. It’s recessive allele, b, produces black body color. A testcross of a wild-type female produced 52 black flies and 58 wild-type flies in the F1 generation.
a. What are the genotypes of the parents?
b. What are the genotypes of the F1 generation?
c. If the wild-type F1 females are crossed with their black F1 brothers, what genotypic and phenotypic ratios would be expected in their F2 offspring?
In: Biology
In: Chemistry
What do we do with native species that are also invasive?
In: Biology
You have a resistor of resistance 200 Ω , an inductor of inductance 0.440 H , a capacitor of capacitance 6.10 μF and a voltage source that has a voltage amplitude of 34.0 V and an angular frequency of 250 rad/s . The resistor, inductor, capacitor, and voltage source are connected to form an L-R-C series circuit. A-What is the impedance of the circuit? B-What is the current amplitude? C-What is the phase angle of the source voltage with respect to the current? D-Does the source voltage lag or lead the current? E-What is the voltage amplitude across the resistor? F-What is the voltage amplitude across the inductor? G-What is the voltage amplitudes across the capacitor? H- Explain how it is possible for the voltage amplitude across the capacitor to be greater than the voltage amplitude across the source.
In: Physics
What are the 3 goals of computer security, define them
Design a Authentication mutual protocol not subject to reflection attack
What are 3 types of hashing. Draw a diagram of hash function
What is a memory layout. Draw an example
Describe Buffer Flow attack
In: Computer Science
A rock climber stands on top of a 50 m -high cliff overhanging a pool of water. He throws two stones vertically downward 1.0 s apart and observes that they cause a single splash. The initial speed of the first stone was 2.2 m/s .
How long after the release of the first stone does the second stone hit the water?
What was the initial speed of the second stone?
What is the speed of the first stone as it hits the water?
What is the speed of the second stone as it hits the water?
Please explain how to solve the equations
In: Physics
1. Insight into RF systems
a. Would a high-gain dish antenna be suitable for use as the antenna at the base station in a PtMP (Point to Multi-Point) setup, yes or no? Explain your answer.
2. Radio frequency terminology:
Research and concisely describe the following RF terms:
In: Computer Science
16-3
Fast Co. produces its product through a single processing
department. Direct materials are added at the start of production,
and conversion costs are added evenly throughout the process. The
company uses monthly reporting periods for its weighted-average
process costing system. The Work in Process Inventory account has a
balance of $102,300 as of October 1, which consists of $22,500 of
direct materials and $79,800 of conversion costs.
During the month the company incurred the following
costs:
| Direct materials | $ | 204,050 |
| Conversion | 837,960 | |
During October, the company started 158,000 units and transferred
168,000 units to finished goods. At the end of the month, the work
in process inventory consisted of 29,000 units that were 80%
complete with respect to conversion costs.
Required:
1. Prepare the company’s process cost summary for
October using the weighted-average method.
2. Prepare the journal entry dated October 31 to
transfer the cost of the completed units to finished goods
inventory.
In: Accounting
Can Lay out the design for two between-subjects experiments: a) an experiment involving an experimental group and a control group, and b) a factorial design with three independent variables that have three, and two levels respectively be exampled in more than one way and still be the correct answer?
In: Psychology