合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

        代做CMPT 477、Java/Python程序代寫
        代做CMPT 477、Java/Python程序代寫

        時間:2024-11-19  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



        CMPT **7/777 Formal Verification
        Programming Assignment 3
        This assignment is due by 11:59pm PT on Friday Nov 15, 2024. Please submit it to Canvas.
        Late policy:
        Suppose you can get n (out of 100) points based on your code and report
        • If you submit before the deadline, you can get all n points.
        • If you submit between 11:59pm PT Nov 15 and 11:59pm PT Nov 16, you get n − 10 points.
        • If you submit between 11:59pm PT Nov 16 and 11:59pm PT Nov 17, you get n − 20 points.
        • If you submit after 11:59pm PT Nov 17, you get 0 points.
        1. (20 points) Verify the program in Algorithm 1. Note that you cannot change the existing implementation.
        Algorithm 1 Find an element in the array
        method Find(a : array⟨int⟩, v : int) returns (index : int)
        ensures index ≥ 0 → index < a.Length ∧ a[index] = v
        ensures index < 0 → ∀k. 0 ≤ k < a.Length → a[k] = v
        1: var i : int := 0;
        2: while i < a.Length do
        3: if a[i] = v then
        4: return i;
        5: i := i + 1;
        6: return −1;
        2. (20 points) Verify the program in Algorithm 2. Note that you cannot change the existing implementation.
        Algorithm 2 Sum of 10n + 10(n − 1) + . . . + 10
        method Sum(n : int) returns (sum : int)
        requires n > 0
        ensures sum = 5n × (n + 1)
        1: sum := 0;
        2: var i : int := n;
        3: while i > 0 do
        4: var k : int := 0;
        5: var j : int := i;
        6: while j > 0 do
        7: k := k + 10;
        8: j := j − 1;
        9: sum := sum + k;
        10: i := i − 1;
        1
        3. (30 points) Given a non-empty array of integers, write a method called ArrayMin that finds the minimum
        value min in the array. Verify the method can ensure
        • min is less than or equal to all elements in the array
        • min is equal to some element in the array
        4. (30 points) Given an array of coins showing either Front or Back side on top, write a program with a
        SortCoins method that sorts the coins. Verify it can ensure
        • All coins showing the Front side occur before those showing Back
        • The sorted array is a permutation of the original array
        Deliverable
        A zip file called P3 SFUID.zip that contains at least the followings:
        • A file called P3 SFUID.dfy that contains Dafny programs for the above four questions.
        • A report called P3 SFUID.pdf that explains the design choices, features, issues (if any), and anything
        else that you want to explain about your programs.
        2

        請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

        掃一掃在手機打開當前頁
      1. 上一篇:程序File Recovery代寫、代做C/C++編程設計
      2. 下一篇:中國周易姓名學泰斗思想家起名大師顏廷利教授起名官網及電話號碼聯系方式地址大全
      3. 無相關信息
        合肥生活資訊

        合肥圖文信息
        挖掘機濾芯提升發動機性能
        挖掘機濾芯提升發動機性能
        戴納斯帝壁掛爐全國售后服務電話24小時官網400(全國服務熱線)
        戴納斯帝壁掛爐全國售后服務電話24小時官網
        菲斯曼壁掛爐全國統一400售后維修服務電話24小時服務熱線
        菲斯曼壁掛爐全國統一400售后維修服務電話2
        美的熱水器售后服務技術咨詢電話全國24小時客服熱線
        美的熱水器售后服務技術咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
        海信羅馬假日洗衣機亮相AWE 復古美學與現代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
        合肥機場巴士2號線
        合肥機場巴士2號線
      4. 幣安app官網下載 短信驗證碼 丁香花影院

        關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

        Copyright © 2024 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
        ICP備06013414號-3 公安備 42010502001045

        主站蜘蛛池模板: 日本韩国一区二区三区| 一区二区在线免费视频| 久久久无码精品国产一区 | 亚洲高清毛片一区二区| 精品一区二区无码AV| 成人h动漫精品一区二区无码| 夜夜嗨AV一区二区三区| 国产无吗一区二区三区在线欢 | 国产精品香蕉一区二区三区| 国产探花在线精品一区二区| 一级特黄性色生活片一区二区| 国产精品乱码一区二区三| 中文字幕一区二区精品区| 亚洲一区二区三区电影| 无码囯产精品一区二区免费| 久久精品一区二区三区不卡| 国产精品区AV一区二区| 国产福利一区二区在线视频 | 在线|一区二区三区| 亚洲变态另类一区二区三区| 亚洲AV日韩综合一区尤物| 色妞色视频一区二区三区四区| 亚洲国产成人一区二区三区 | 日韩精品电影一区亚洲| 国产精品一区二区无线| 精品理论片一区二区三区| 日本强伦姧人妻一区二区| 日本精品夜色视频一区二区| 国产激情一区二区三区 | 亚洲乱码一区二区三区在线观看| 色噜噜AV亚洲色一区二区| 久久99热狠狠色精品一区| 免费无码一区二区三区| 亚洲AV无码一区二区三区久久精品| 影音先锋中文无码一区| 激情久久av一区av二区av三区| 一区二区三区在线观看中文字幕 | 免费看AV毛片一区二区三区| 日本免费精品一区二区三区| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 国产一区二区久久久|