Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Temple University Vision Studio Code Javascript Project

Temple University Vision Studio Code Javascript Project

<!DOCTYPE html>

<html>

<body>

<script>

//

// Write a function that calculates the amount of money a person would earn over

// a period of years if his or her salary is one penny the first day, two pennies

// the second day, and continues to double each day. The program should ask the

// user for the number of years and call the function which will return the total

// money earned in dollars and cents, not pennies. Assume there are 365 days

// in a year.

//

function totalEarned(years) {

/////////////////////////////////////////////////////////////////////////////////

// Insert your code between here and the next comment block. Do not alter //

// any code in any other part of this file. //

/////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////

// Insert your code between here and the previous comment block. Do not alter //

// any code in any other part of this file. //

/////////////////////////////////////////////////////////////////////////////////

}

var years = parseInt(prompt(‘How many years will you work for pennies a day? ‘));

var totalDollarsEarned = totalEarned(years);

alert(‘Over a total of ‘ + years + ‘, you will have earned $’ + totalDollarsEarned);

</script>

</body>

</html>

<!DOCTYPE html>

<html>

<body>

<script>

//

// Assuming the ocean’s level is currently rising at about 1.6 millimeters per

// year. Write a function that is passed a number of years and then uses a loop

// that calls the alert() function to display the total rise in ocean level for each.

//

// For example, if looking at the ocean level rise over 5 years the program would

// display the following five alert with the values (don’t worry about rounding and

// formatting the output to look nice):

//

// Year 1 – 1.6 millimeters

// Year 2 – 3.2 millimeters

// Year 3 – 4.8 millimeters

// Year 4 – 6.4 millimeters

// Year 5 – 8.0 millimeters

//

// When the loop ends the function will return the number of millimeters the ocean

// has risen during this period. In this exampe,

//

function oceanRise(numberOfYears) {

/////////////////////////////////////////////////////////////////////////////////

// Insert your code between here and the next comment block. Do not alter //

// any code in any other part of this file. //

/////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////

// Insert your code between here and the previous comment block. Do not alter //

// any code in any other part of this file. //

/////////////////////////////////////////////////////////////////////////////////

}

var numberOfYears = prompt(‘Over how many years would you like to display the rising in ocean levels? ‘);

alert(‘In the next ‘ + numberOfYears + ‘ years, the ocean will have risen ‘ + oceanRise(numberOfYears) + ‘ millimeters’);

</script>

</body>

</html>

<!DOCTYPE html>

<html>

<body>

<script>

//

// The following program will prompt the user for a starting number and an

// ending number. Assume that these are whole numbers (no decimal points),

// assume the numbers are not negative and assume that the first number is

// not larger than the second number.

//

// write a funcTion that returns the sum of the numbers from the starting

// number to the ending number. For example, if the starting number is 13

// and the ending number is 18 then the function will return the value of

// 13 + 14 + 15 + 16 + 17 + 18. If the starting number is equal to the ending

// number then simply return that number.

//

//////////////////////////////////////////////////////////////////////////

function sumOfNumbers(startingNumber, endingNumber) {

/////////////////////////////////////////////////////////////////////////////////

// Insert your code between here and the next comment block. Do not alter //

// any code in any other part of this file. //

/////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////

// Insert your code between here and the previous comment block. Do not alter //

// any code in any other part of this file. //

/////////////////////////////////////////////////////////////////////////////////

}

var startingNumber = parseInt(prompt(‘What is the starting number? ‘));

var endingNumber = parseInt(prompt(‘What is the ending number? ‘));

var sumOfNumbersPassed = sumOfNumbers(startingNumber, endingNumber);

alert(‘The sum of the numbers from ‘ + startingNumber + ‘ to ‘ + endingNumber + ‘ is ‘ + sumOfNumbersPassed);

</script>

</body>

</html>

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: School Assignment only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by School Assignment are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. School Assignment is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At School Assignment, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.