合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

         代寫(xiě)COMP 218、代做C++設(shè)計(jì)編程
         代寫(xiě)COMP 218、代做C++設(shè)計(jì)編程

        時(shí)間:2024-09-30  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



        © May not be copied or duplicated 
        without the permission of the owner. 
        COMP 218 Fundamentals of Object-Oriented 
        Programming 
        Assignment 1 
         
        Please note: you are NOT allowed to post the assignment/solution anywhere on the 
        Internet. Intellectual Property rights are reserved. If any similar cases are found via your 
        account or IP, your submission will NOT be considered and will be reported 
        immediately. 
         
        General Guidelines when Writing Programs: 
        - Include the following comments at the top of your source codes 
        // ----------------------------------------------------- 
        // Assignment (include number) 
         // Question: (include number) 
         // File name: (include source code file name) 
         // Written by: (include your name and student id) 
         // ----------------------------------------------------- 
        - In a comment, give a general explanation of what your program does. As the 
        programing questions get more complex, the explanations will get lengthier. 
        - Include comments in your program describing the main steps in your program. 
        - Print a welcome message which includes your name. 
        - Display clear prompts for users when you are expecting the user to enter data 
        from the keyboard. 
        - All output should be printed out with clear messages and in an easy to read 
        format. 
        - End your program with a closing message so that the user knows that the 
        program has terminated. 
         
        © May not be copied or duplicated 
        without the permission of the owner. 
        Question #1: Display a message (3 pts) 
        Write a complete C++ program that displays the following output exactly as in the 
        sample output. You are to use a single cout statement to output the message. There is 
        no need to declare any variables for this question. 
         
        Figure 1 – Sample output for Question 1 
          
        © May not be copied or duplicated 
        without the permission of the owner. 
        Question #2: Number Generator Program (6 pts) 
        In C++, we can use rand() function (More details) to generate random numbers. In the 
        number calculation following the requirements: 
        1. Display a welcome message. 
        2. Display the randomly generated even/odd number. 
         
        Figure 2 – Sample output #1 for Question 2
        For example, if the number is 1234, change it to 4**1.
        For example, 1221 is a palindrome as it is the same if reversed.
        For example, the largest digit is 9 and smallest is 1, in 3179.
        Your program must display the same information and formatted the same.
        3. Reverse the number.
        4. Check if the number is a palindrome.
        5. Find the smallest and largest digit in the number
        question, we will generate a 4-digit random number between 1000 – 9999 and complete
        Use at least one constant variable to store value in the program.
        Following are 2 sample screen shots to illustrate the expected behavior of your
        program.
        Note: 

         
        © May not be copied or duplicated 
        without the permission of the owner. 
         
        Figure 3 – Sample output #2 for Question 2 
         
        Question #3: New Word Program (6 pts) 
         
         
        Your program should behave as follow: 
        1. Display a welcome message. 
        2. Ask the user to prompt 3 words with at least 1 letter. 
        3. Ask the user to prompt 3 numbers, that should be less than the length of each 
        word to indicate length of substring in each word. For example, if the word is 
        Ann, then the entered number should be less than 3 (the length of Ann). 
         
        5. Display the resulting new word. 
        6. Display a farewell message, so that the user knows that the program has 
        terminated normally. 
        Restriction: This questions requires the use of the functions: length(), substr(). 
        Assumption: Assume a perfect user who will always enter the correct input values. 
         
        Following are two sample screen shots to illustrate the expected behavior of your 
        program. Your program is to work with any words entered by the user. 
         
        last n characters. Concatenate the three resulting substrings into a single
        new word.
        4. For each word, create a new substring by taking the first n characters and the
        Write a program that prompts the user for three words. 

         
        © May not be copied or duplicated 
        without the permission of the owner. 
         
         
        Figure 4 – Sample output #1 for Question 3 
         
        Figure 5 – Sample output #2 for Question 3 
         
          

         
        © May not be copied or duplicated 
        without the permission of the owner. 
        Submitting Assignment 1 
        - Naming convention for zip file to submit: Create one zip file, containing all source 
        files (.cpp files only) for your assignment. The zip file should be called 
        a#_studentID, where # is the number of the assignment and studentID is your 
        student ID number. For example, for the first assignment, student 123456 would 
        submit a zip file named a1_123456.zip. (See instructions on how to zip files 
        which are posted in the Assessment section of the eConcordia course webpage.) 
        - Submit only ONE version of an assignment. 
        - Late assignments will be discounted by 25%. Late assignments are accepted up 
        to five days late (grace period) and weekends count. 
         
        Evaluation Criteria for Assignment 1 (20 pts) 
         Question #1 
        3 pts. 
        Question #2 
        6 pts. 
        Question #3 
        6 pts. 
        Format/clarity/completeness/accuracy 
        of output 
        1 pt. 4 pts. 2 pts. 
        Proper use of required C++ concepts 2 pts. 2 pts. 4 pts. 
         
         
        For all 3 questions of assignment 1 – 5 pts. 
        Comments – description of variables / description of the steps in code 
        / purpose of program 
        2 pts. 
        Choice of variable names 1 pt. 
        Indentation and readability of program 2 pts. 



         
        請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




         

        掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
      1. 上一篇:ACST2001代寫(xiě)、代做Python/c++設(shè)計(jì)編程
      2. 下一篇:代寫(xiě) cs341 Shell To-Dos 安全程序
      3. 無(wú)相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        出評(píng) 開(kāi)團(tuán)工具
        出評(píng) 開(kāi)團(tuán)工具
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)400(全國(guó)服務(wù)熱線)
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話24小時(shí)服務(wù)熱線
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
      4. 短信驗(yàn)證碼 酒店vi設(shè)計(jì)

        亚洲国产成人超福利久久精品| 亚洲国产精品福利片在线观看| 国产伦精品一区二区三区四区| 亚洲日韩精品无码专区加勒比| 中国精品videossex中国高清| 久久久久人妻精品一区蜜桃| 精品少妇一区二区三区视频| 99re国产精品视频首页| 国产精品自在线拍国产电影| 日韩三级电影视频| 亚洲性色AV日韩在线观看| 免费观看四虎精品国产永久| 国产精品国产精品偷麻豆| 国内精品视频一区二区三区八戒| 欧美日韩亚洲精品| 九九热在线视频精品| 亚洲а∨天堂久久精品9966| 国产成人精品18| 亚洲Av永久无码精品黑人 | 久久精品无码一区二区三区日韩| 最新国产午夜精品视频成人| 精品久久亚洲一级α| 国产精品视频免费一区二区三区 | 日韩视频在线精品视频免费观看 | 一本大道久久a久久精品综合| 久久久久免费精品国产小说| 无码精品久久久天天影视| 五月花精品视频在线观看| 无码人妻精品一区二区三区久久 | 精品无码久久久久国产| 99视频有精品视频免费观看 | 精品91一区二区三区| 日韩aⅴ人妻无码一区二区| 青青草99热这里都是精品| 无码精品人妻一区| 国产成人精品在线观看| 精品偷自拍另类在线观看丰满白嫩大屁股ass| 国产成人毛片亚洲精品| 香蕉久久综合精品首页| 丰满人妻熟妇乱又伦精品视| 精品少妇一区二区三区视频|