五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

iOS移動應(yīng)用程序開發(fā) | 第二講-變量、常量和數(shù)據(jù)類型:Swift by Na

2023-01-08 11:34 作者:陳鵬宇老師  | 我要投稿

?
01:33:33
?

第二次作業(yè)

作業(yè)一:完成Playgrounds App《學(xué)習(xí)編程1》4-7章


作業(yè)二:完成下面的練習(xí)題

1. Consider the following array, containing a collection of our favorite pizzas:

Create a new Playground and write some code to do the following:

(i) Create this array, as a variable, storing the pizza names in it.

(ii) Print the element of the array that contains "Vegetarian".

(iii) Append the pizza "Pepperoni" to the array, without changing the rest of the array.

(iv) Insert a new pizza, "Ham, Pineapple, and Pesto", at index 2, shuffling everything after along by one index.

(v) Remove the "Cheese" pizza from the array entirely, leaving the rest intact.

(vi) Swap the "Prosciutto" pizza for a "Pumpkin and Feta" pizza, without changing the rest of the array.

(vii) Print out the whole array.


2. Consider the following questions about sets, and see if you can figure out the answer. Then run them in a Playground to find out.

(i)

What would be printed?

(ii)

What’s in this collection?

(iii)

What’s in this set?

(iv)

What does forbiddenPizzas contain now?


3. Consider the following dictionary, representing a bunch of dessert pizzas and the quantities that have been ordered:

Using Swift code, print the quantity of Rocky Road, and the quantity of Caramel Swirl. And then add a new order for 17 Banana Split pizzas.

iOS移動應(yīng)用程序開發(fā) | 第二講-變量、常量和數(shù)據(jù)類型:Swift by Na的評論 (共 條)

分享到微博請遵守國家法律
偏关县| 正宁县| 上蔡县| 江孜县| 台北市| 延津县| 南城县| 定结县| 星座| 防城港市| 双流县| 进贤县| 屏东市| 信阳市| 万全县| 新宁县| 巴彦淖尔市| 九龙坡区| 定日县| 丹寨县| 辽源市| 枞阳县| 蚌埠市| 南乐县| 凤庆县| 安阳县| 新巴尔虎左旗| 比如县| 彩票| 文水县| 夏河县| 酉阳| 北流市| 黄梅县| 壶关县| 金溪县| 邵东县| 大港区| 茶陵县| 南丹县| 金堂县|