摘要:
第一章 1.所有的编程语言的最终目的都是提供一种“抽象”方法。抽象的层次越高,越接近人的思维。越接近人的思维,越容易使用。 2.越高级的语言越容易学习;当然,这只意味着容易入门;不意味着成为高手越容易,高手仍然需要修炼。 3.Java的核心优势:跨平台。跨平台是靠JVM(虚拟机)实现的。 4.Jav 阅读全文
摘要:
Day 5: Loops 给一个整数,打印他的十个倍数,每个倍数需要单独开启一个新行,格式:n x i = result. Sample Input 2 Sample Input Sample Input 2 2 Sample Output 2 x 1 = 2 2 x 2 = 4 2 x 3 = 6 阅读全文
摘要:
Day 4: Class vs. Instance Task Write a Person class with an instance variable, age, and a constructor that takes an integer, initialAge, as a paramete 阅读全文
摘要:
1、Higher Than 75 Marks Query the Name of any student in STUDENTS who scored higher than 75 Marks. Order your output by the last three charactersof eac 阅读全文
摘要:
Day 3: Intro to Conditional Statements 阅读全文
摘要:
Day 2: Operators Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent(t 阅读全文
摘要:
Day 1: Data Types 阅读全文
摘要:
Sock Merchant Function Description Complete the sockMerchant function in the editor below. It must return an integer representing the number of matchi 阅读全文
摘要:
function main() { let r = readLine(); const PI = Math.PI; // Print the area of the circle: let area; area = PI * r * r console.log(area); // Print the perimeter of the ci... 阅读全文
摘要:
/* * Create the function factorial here */ function factorial(n) { return (n >= 1 && n <= 10) ? n * factorial(n - 1) : 1; } 阅读全文