五月天青色头像情侣网名,国产亚洲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的評論 (共 條)

分享到微博請遵守國家法律
富源县| 巴东县| 翁源县| 景东| 莆田市| 伊春市| 永清县| 平原县| 汤原县| 弋阳县| 施秉县| 武隆县| 合江县| 翁牛特旗| 文化| 仪陇县| 那坡县| 堆龙德庆县| 邵阳县| 临海市| 繁昌县| 朝阳市| 余江县| 乌审旗| 曲靖市| 巨野县| 清河县| 桂林市| 张家口市| 全州县| 习水县| 邵武市| 铅山县| 泸定县| 木兰县| 辽源市| 循化| 乌恰县| 永康市| 阜平县| 宜丰县|