اسئلة واجوبة لسنوات سابقة   أستــاذ المــادة  هديل قاسم غني   تـاريـخ النشــر   10/01/2018 Q1/ Suppose you have a box of Keys you would like to buy, write a C++ program to check if the number is greater than 66 divide the keys on 3, and then compare whether the output is greater than 30 then the price will be 25 otherwise would be 20, but if the number is less than 66 then the price is equal to 10. Sol. #include #include Void main() { clrscr();   Int x; Cin>>x; If(x>=66) { av=x/3;   If(av>30)  Cout<<"The Price is 25"<>x; Y=x/10; Switch(y) { Case 10: Case 9: cout<< A ; break; Case 8: cout<< B ; break; Case 7: cout<< C ; break; Case 6: cout<< D ; break; Case 5: Case 4: Case 3: Case 2: Case 1: cout<< F ; break; Default: cout<<"Error"; Getch(); } Q3/ Write a C++ program to read a number of days and then find the number of years, the number of months and the number of days in that number. Sol. Int day,year,month; Cin>>day; Year=day/365; Month=day/30; Cout<<" We have "<
{"ft_lang_label":"__label__en","ft_lang_prob":0.70786625,"math_prob":0.9606636,"size":1232,"snap":"2019-43-2019-47","text_gpt3_token_len":412,"char_repetition_ratio":0.13517915,"word_repetition_ratio":0.01746725,"special_character_ratio":0.3806818,"punctuation_ratio":0.19,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9923737,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-19T16:13:17Z\",\"WARC-Record-ID\":\"<urn:uuid:ffa5bf70-a80a-4c98-8635-2c89d574ba8a>\",\"Content-Length\":\"20134\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7df60df6-64f7-4b66-8082-db814187ac43>\",\"WARC-Concurrent-To\":\"<urn:uuid:f3604d87-92e4-427c-9fb0-18aa114d3d01>\",\"WARC-IP-Address\":\"5.77.37.165\",\"WARC-Target-URI\":\"http://www.uobabylon.edu.iq/uobColeges/review.aspx?fid=6&cdt=4850\",\"WARC-Payload-Digest\":\"sha1:S2YPSDBSKTS4MHPIDQ22MPYE623LYAN6\",\"WARC-Block-Digest\":\"sha1:ZIKKPH5YS2RUUYPV35YEI7LQFHFY5GMB\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496670156.86_warc_CC-MAIN-20191119144618-20191119172618-00471.warc.gz\"}"}