精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 英語(yǔ)翻譯

    英語(yǔ)翻譯
    write a program to allow a user to do conversions between two different units of measurement.So the user might type in an amount,and the naems of two units of measurement,for example:5,ounce,gram
    In this case the program should then print out the number of grams equal to 5 ounces,thus:5 ounces is 140 grams (1 ounce is 28 grams)
    The unit names and conversion factors will be supplied as a file convert.txt,and this should be read in by the program at start-up.The file consists of a series of lines,each consisting of two unit names(both strings) and a conversion factor (a number with a decimal point) seqarated by commas,for example:ounce,gram,28.0
    This means that one ounce equals 28.0 grams.A sample file is available on the portal,but your program should be able to cope with any file laid out in this way.There is code in section A of the " LinkedList" project to read from such as file; you need" using System.IO;" at the start of the program.
    英語(yǔ)人氣:899 ℃時(shí)間:2020-05-24 02:48:14
    優(yōu)質(zhì)解答
    寫一個(gè)讓用戶可以對(duì)兩個(gè)度量單位進(jìn)行轉(zhuǎn)換的程序.用戶可以輸入數(shù)量,兩種度量單位的名稱,比如盎司,克,用戶就可以據(jù)以算出5盎司是多少克,1盎司是28克那么5盎司是140克.單位名稱及計(jì)算方式會(huì)在一個(gè)TXT格式的轉(zhuǎn)換文件中提供,程序開(kāi)始時(shí)要進(jìn)行讀入.文件中,每一行包括兩個(gè)單位名稱和一個(gè)十進(jìn)位的計(jì)算方式,分別用逗號(hào)隔開(kāi),例如:盎司,克,28.0,即表示,每盎司等于28.0克.門戶網(wǎng)站已有一個(gè)樣本文件,但你設(shè)計(jì)的程序應(yīng)兼容所有符合這種方式的文件.在鏈接單(linkedlist)的section A部分有這樣的文件,請(qǐng)?jiān)诔绦蜷_(kāi)始時(shí)設(shè)定系統(tǒng)using system .IO.
    我來(lái)回答
    類似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁(yè)提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版