Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

function _one() Create a JavaScript function that meets the following requirements: Creates the following variables that assign your unique profile information: o your_name o number_of_courses

function _one() Create a JavaScript function that meets the following requirements:

Creates the following variables that assign your unique profile information:

o your_name

o number_of_courses (this semester),

o program o part_time_ job (true/false).

Create a Boolean variable, set to true or false, based on whether you have a part time job. Store the string have or dont have into another variable, based on the Boolean.

Display your student information to the cosole (console.log()) as illustrated below:

"My name is ???. Im in the ??? program. Im currently taking ??? courses." I ??? have a part time job.

Where ??? should be replaced with your variable data

function _two(cents)

Create a JavaScript function that meets the following requirements:

Is passed an integer parameter, representing a number of Canadian cents.

The function uses the parameter to determine the smallest number of Canadian quarters, dimes, nickels and pennies that are equal to the given (parameter) amount.

Displays the calculated information.

function _three(miles, kilometers)

Create a JavaScript function that meets the following requirements:

Receives two distances, one distance in miles and the other, a distance in kilometers value.

Converts the miles to the equivalent kilometer value

Converts the kilometer value to the equivalent miles

Displays the calculated information

function _four( array )

Create a JavaScript function that meets the following requirements:

Receives an integer array as a parameter

The function transverses the array to determine the minimum and maximum values in the array.

Displays the calculated information as illustrated below:

************** STEP 4 **************

Calling _four([-8, -1, -87, -14, -81, -74, -20, -86, -61, -10]);

The minimum value in the array is: -87, the maximum value is -1

function _five(string, char)

Create a JavaScript function that meets the following requirements:

Accepts two input parameters, a string and a character letter.

The function determines the number of occurrences of the character in the string.

Displays the result to the console as illustrated below.

************** STEP 5 **************

Calling _five(map, p);

The word map has 1 occurrences of the character p

function _six( grade )

Create a JavaScript function that meets the following requirements:

Is passed a numeric grade, calculating and displaying the corresponding letter grade based on:

100 - 90 = A+, 89 - 85 = A, 84 - 80 = A, 79 -76 = B+, 75 73 = B, 72 70 = B-, 69 66 = C+,

65 63 = C, 62 60 = C-, 59 56 = D+, 55 53 = D, 52 50 = D-, < 50 = F

Displays the result to the console

function _seven(array)

Create a JavaScript function that meets the following requirements:

Receives character array

The function reverses the order of the of the character array.

Displays the results to the console as illustrated below:

************** STEP 7 **************

Calling _seven([j, p, g, F, c, x, A, c, q, I]);

Original order array = [j, p, g, F, c, x, A, c, q, I]

Reversed order array = [I, q, c, A, x, c, F, g, p, j]

function _eight()

Create a JavaScript function that meets the following requirements:

Receives no input parameters

Determines the number of days until the end of the school year

Please note the last day of the W2021 School Calendar is: Friday, April 23rd, 2021

Displays the result to the console

function _nine(word)

Create a JavaScript function that meets the following requirements:

Accepts a string parameter, counting the number of vowels within the string.

The function should be case insensitive, handling both upper and/or lowercase letters.

Displays the result to the console as illustrated below.

************** STEP 9 **************

Calling _nine(flugelhorn);

Vowel count: A=0, E=1, I=0, O=1, U=1, Y=0

function _ten(my_string)

Create a JavaScript function that meets the following requirements:

a. Create a JavaScript function that accepts a string parameter, then organizes the string so its in alphabetical order.

b. The function is case insensitive, that is, it does not distinguish any difference between upper or lower case.

c. Displays the result to the console as illustrated below.

************** STEP 10 **************

Calling _ten(Sameer);

The string converted in alphabetical order is: aeemrS

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions