Provide a recursive definition of some sequence of numbers or function (e.g. log, exponent, polynomial). Choose one different from that of any posted thus far. Write a recursive method that given n, computes the nth term of that sequence. Also provide an equivalent iterative implementation. How do the two implementations compare?
In: Computer Science
Chapter 4 Assignments - Part #1 (Part #2 is on next page)
Submit an HTML file attached to an email with your web page containing the elements below.
- Create a web page with a comment containing your name after this line.
o
- In the head section, add character encoding.
- Add the title "Chapter 4 Web Page #1 - by yourname"
- Create a file called myStyles.css as the style sheet for the web page.
- Add the link for the style sheet in the index.html file.
- Create a banner ~180x800 for the web page using Snip, Paint, PowerPoint, or another program and add the banner (non-elastic banner) to the web page by creating a banner class in the style sheet and a "div" in index.html.
o Include a graphic and text in the banner.
- In the style sheet, redefine h1 as Tahoma, green, and 30 pixels.
- In the style sheet, redefine h2 as Arial, blue, and 20 pixels.
- Create a page box class in the style sheet with a background color and center the box on the page.
o Use a padding of 20%, and width of 80%, and a rounded corner border of 15px radius and 3px thick of some color.
o Inside the page box, add the text shown and answers to the questions below.
o Make the page box as wide as the banner regardless of browser resizing.
- Create a footer class with your name, the copyright symbol, and year centered.
o The footer will have a color background, a border 1 pixel thick that is a different color than the background.
o The footer text will use h3 and be white and italic o The footer text will be padded with 2 pixels top and bottom
Questions:
1. CSS documents the ________________ status of each style property.
2. CSS is used to define _________ _________ and attach them to HTML elements.
3. This statement /* browser note */ is a ____________ in CSS.
4. The _______ element for a CSS is placed inside the head element of the page.
5. The ____________ associates a rule to a set of HTML elements.
6. a:visited { color: #300 } will make __________ _________ red.
In: Computer Science
Using HTML/Javascript (if needed) I want to create a table for a website that pulls data from another website where the data is being updated on. Example: https://investors.coca-colacompany.com/stock-information/historical-data
I cannot just put in the numbers to a table as they will be getting updated daily. So it needs to link the the website elements.
DATE | OPEN | HIGH | LOW | CLOSE | VWAP | VOLUME | % CHG | CHANGE | TRADE VAL | TOTAL TRADES |
---|---|---|---|---|---|---|---|---|---|---|
2020-10-13 | -- | -- | -- | 51.09 | -- | -- | 0.00% | -- | -- | -- |
2020-10-12 | 50.84 | 51.525 | 50.83 | 51.09 | 51.155 | 11.39m | 0.55% | 0.28 | 582,437,982.00 | 70,341 |
2020-10-09 | 50.67 | 51.23 | 50.60 | 50.81 | 50.874 | 11.41m | 0.69% | 0.35 | 580,070,644.00 | 80,826 |
Table from:
https://investors.coca-colacompany.com/stock-information/historical-data
In: Computer Science
Kansas Instruments manufactures two models of pocket calculators. Per unit of the Basic model sells for $5.50, has direct material cost of $1.25 and requires 0.25 hours of labour to produce. Each calculator of the Scientist model sells for $7.50, has direct material cost of $1.63 and takes 0.375 hours to produce.
Each labour hour costs Kansas Instruments $6 and labour is currently very scarce, even though the demand for the company’s calculators is very high. The company is currently producing 8,000 Basic calculators and 4,000 Scientist calculators each month. Fixed costs per month amount to $24,000.
Kansas Instruments has received a request from an overseas potential customer to manufacture a batch of calculators made to specific requirements. The overseas customer is offering the company a contract worth $35,000 for this order. The production manager has estimated the following facts with respect to this special order:
• The labour time required for this contract would be 1,200
hours.
• The material cost would be $9,000 (excluding the cost of a
special component not normally used by the company for
manufacturing its regular calculators).
• The special components could either be purchased from a supplier
for $2,500 or produced internally using materials that would cost
$1,000 and additional labour time of 150 hours.
Required:
Advise the management of Kansas Instruments on the appropriate course of action.
In: Accounting
could you do all the challenges?
public class Main
{
public static void main(String[] args)
{
// declare an array so you can easily use them under
// one name
//ex1 array of test score 0-100
int[] testScores = new int[100];
//ex2 array of 200 gpa
double[] gpa = new double[200];
//ex3 50 element array of age
int[] age; //1 - declares age array
age = new int[50]; //2 - instantiates age array
age[0] = 10; //3 - put initial values in
age[1] = 15; // each element
// challange: initialize testScores with random
{
Random int=new Random();
int score;
for (int i = 0; i < 100 ; i++)
{testScores[i] = rand.nextInt(101);
System.out.println(testscores[i] + " "); }
// scores using a loop. Do not print (we'll later)
// challenge: using the OTHER LOOP print the elements of the
array
int i=0;
while(i< 100)
{testScores[i] = rand.nextInt(101);
System.out.println(testscores[i] + " ");
i++;
}
// challange: look through your testScores array and count
// how many falling scores were there i.e. <68
int falling = 0;
// challenge: ask the user for a numberScore i.e. 77
// and count how many times a testScore is
// within 5 of numberScore
//challenge: put random gpa's into the gpa array.
// print the average GPA.
//challenge: on each element of the GPA array, print the
// GPA and the next GPA if they are equal
}
}
In: Computer Science
I need this in C# please.
Exercise #2: Design and implement a programming (name it NextMeeting) to determine the day of your next meeting from today. The program reads from the user an integer value representing today’s day (assume 0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, etc…) and another integer value representing the number of days to the meeting day. The program determines and prints out the meeting day. Format the outputs following the sample runs below.
Sample run 1:
Today is Monday
Days to the meeting is 10 days
Meeting day is Thursday
Sample run 2:
Today is Wednesday
Days to the meeting is 7 days
Meeting day is Wednesday
Sample run 3:
Today is Friday
Days to the meeting is 20 days
Meeting day is Thursday
In: Computer Science
The corresponding age ranges are
(3,13],(13,18],(18,60],and (60,120]. For example, one must be older
than 3 and not older than 13 to be called a child. The contents of
ageFac should be as follows:
[1] child adult child senior adult child adult
[8] adult adult teen
Levels: child teen adult senior
In: Computer Science
Holl Corporation has provided the following data for November. Denominator level of activity 5,500 machine-hours Budgeted fixed manufacturing overhead costs $ 68,750 Standard machine-hours allowed for the actual output 5,800 machine-hours Actual fixed manufacturing overhead costs $ 67,650 Required: a. Compute the budget variance for November. b. Compute the volume variance for November. (Input all amounts as positive values.)
Budget Variance: ______ ______
Volume Variance: _______ _______
In: Accounting
A tuning fork generates sound waves with a frequency of 230 Hz. The waves travel in opposite directions along a hallway, are reflected by walls, and return. The hallway is46.0 m long and the tuning fork is located 14.0 m from one end. What is the phase difference between the reflected waves when they meet at the tuning fork? The speed of sound in air is 343 m/s. (Ans in degrees)
In: Physics
Beryl's Iced Tea currently rents a bottling machine for $ -56,000 per year, including all maintenance expenses. It is considering purchasing a machine instead and is comparing two options: a. Purchase the machine it is currently renting for $ 163,000. This machine will require $ 22,500 per year in ongoing maintenance expenses. b. Purchase a new, more advanced machine for $ 258,000. This machine will require $ 18,750 per year in ongoing maintenance expenses and will lower bottling costs by $ 17,000 per year. Also, $ 34,000 will be spent up front to train the new operators of the machine. Suppose the appropriate discount rate is 7.5 % per year and the machine is purchased today. Maintenance and bottling costs are paid at the end of each year, as is the cost of the rental machine. Assume also that the machines will be depreciated via the straight-line method over seven years and that they have a 10-year life with a negligible salvage value. The marginal corporate tax rate is 38 %. Should Beryl's Iced Tea continue to rent, purchase its current machine, or purchase the advanced machine? To make this decision, calculate the NPV of the FCF associated with each alternative.
In: Finance
In: Psychology
For an economy to grow it must increase labor, capital and/or productivity. While there are diminishing returns to capital and labor, growth from productivity is unlimited.
Governments have a role in providing the framework for sound economic growth. This includes having sound fiscal and monetary policy. Other factors that encourage GDP growth are reasonable taxes and regulation, low corruption, and openness to trade and foreign direct investment.
For this assignment you will write a paper analyzing the growth of a specific country. Identify one country that has demonstrated high GDP growth rates (over any time period) and answer the following:
In: Economics
1. Please use Python 3 programing.
2. Please share your code.
3. Please show all outputs.
Create a GUI Calculator with the following:
Title : Calculator
Label and Entry box for 1st Number
Label and Entry box for 2nd Number
Buttons for *, /, +, -
Label for result and Displaying the result
In: Computer Science
In: Chemistry