联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2021-01-24 06:14

Week #1 Practice Homework

Deadline: 11:40am on 23 January 2021 (start of lab)

Submission format: Upload your properly named JavaScript file as described below

Rubric:

1 point: File is submitted on time

1 point: File shows an attempt at completing all homework steps

1 point: File is submitted using correct naming conventions

No partial points are awarded. If you submit the file late or if your file is named even a little bit

incorrectly, you lose that point.

Steps

1. Complete the temperature converter project from JSB video chapter 3, part 5.

2. Save a copy of this project as familyName_givenName_w1practice.js following exactly

these specifications. Normally we will not be so detailed in explaining how to type a file

name, but for this first week, we want to make sure you do it right!

a. Put your family name ("last name" in the US) first, in all lowercase letters

b. Put an underscore after your family name. Underscore is "shift-dash" on US

keyboards; do not use a dash or a space!

c. Put your given name ("first name" in the US) as it appears in Canvas next, again

in all lowercase letters

d. If your name has any spaces, hyphens, or other special characters in it, you must

remove these characters; if you have any accented characters in your name

(such as é) please replace it with an unaccented character (such as e).

e. Put _w1practice after your name

f. Make sure the file extension is .js Additionally, make sure there is only one copy

of the file extension; some computers "hide" the extension, and you do not want

to upload a file ending in ".js.js"!

g. As an example, my name is Jay Taylor-Laird, so I would upload my file as

taylorlaird_jay_w1practice.js (all lowercase, with the dash removed from my

family name)

3. Look online to find the average temperature for the region (e.g., city, state, county,

district— something smaller than a country!) where you were born for the month you

were born in. Change the fahrenheit variable's value to this number.

4. Write an end-of-line code comment that explains what this value is -- i.e., explain where

and when your temperature represents! End-of-line code comments begin with //

5. Add a new console.log line that outputs the value of variable fahrenheit preceded by a

clear label such as "Temperature (fahrenheit):" HINT: You will need to find out from the

videos and readings how to "add" two Strings together.

6. Modify the other two existing console.log lines so that a clear and accurate label

appears before each of the other output values (celsius and kelvin).

7. Test your modified JS file. Once it works as you want it to, upload it to the homework

submission space.


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp