ITCS112 - ITCS104 - ITCS102 للفصل الصيفي 2014 - 2015

في احد عنده خبر بجيبون لينه فلو جارت أو لا ؟
 
كل ش ,,
عدى السترنق هاي اللي ف البداية كلش الهرير ,,

تسلم الخوي

بس واايد يتراولي ^_^

10- Bubble Sort
11- Structures
12- Class
14-Pointers
15-Overloading
17-Recurcive

!!!:tears:
 
تسلم الخوي

بس واايد يتراولي ^_^

10- Bubble Sort
11- Structures
12- Class
14-Pointers
15-Overloading
17-Recurcive

!!!:tears:
ف احد قال لش انه شوي :99::99:
تر عادي الحياة جذي :99::99:
فن الدراسة تصيّح !!
:99:
 
انزين ابي حل توتوريال 5 و 6 و 7 ل !!!
وش د !!
محد يساعد هدا وي !!!
:RpS_sleep:
 
حل تيتوريال سبعة على الركرجن موجود في مكتبة الموقع ..
 
من عنننده
حل تتوريال 5 pointer
حل تتوريال 6 overloading & templates

؟؟؟:RpS_blink:
ضروووري
 
:tears: انزين حل نص اسالة التتوريال ع الاقل ^
 
السلام عليكم و رحمة الله و بركاته

تم فتح هذا الموضوع لمناقشة مقرر ITCS102 + ITCS104

قسم المقرر في المكتبة الجامعيه
https://www.uob-bh.com/forum/downloads.php?do=cat&id=3

موضوع الفصل السابق

ITCS102+ITCS104 للدراسة والمناقشة الفصل الدراسي الأول (2013-2014)




لأي استفسارات او طلب اي مساعده تتعلق بهذه المقررات الرجاء طرحها هنا


بالتوفيق
:smile2:
 
السلام عليكم ... شخباركم شعب ... عطووكم شي اليووم ؟؟؟
 
ارجو المساعدة في اسخدام انواع الفنكشن :smile2:
 
اللي فاهمين المقرر يتواجدوون اهني .... حتى يساعدوون غيرهممم
 
ممكن مساعده في تيتوريال 3
Write a C++ program for a video shop to handle some of the basic operation in the shop. Create a
[FONT=Times New Roman,Times New Roman][FONT=Times New Roman,Times New Roman]struct [/FONT][/FONT][FONT=Times New Roman,Times New Roman][FONT=Times New Roman,Times New Roman][/FONT][/FONT][FONT=Courier New,Courier New][FONT=Courier New,Courier New]movieItem [/FONT][/FONT]to record the movie title, the number of available copies of this movie and the genre of the movie.
In your program, it is also important to keep information about customers. Therefore, create a struct
[FONT=Courier New,Courier New][FONT=Courier New,Courier New]customer [/FONT][/FONT]to hold customer’s name, and the list of movies rented by this customer (array of type [FONT=Courier New,Courier New][FONT=Courier New,Courier New]movieItem)[/FONT][/FONT].
Your program must contain at least the following functions:
- A function that takes as parameter
[FONT=Courier New,Courier New][FONT=Courier New,Courier New]myMovie [/FONT][/FONT]of type [FONT=Courier New,Courier New][FONT=Courier New,Courier New]movieItem[/FONT][/FONT]. The function should prompt the user to enter the movie details.
- A function that takes as parameter
[FONT=Courier New,Courier New][FONT=Courier New,Courier New]myMovie [/FONT][/FONT]of type [FONT=Courier New,Courier New][FONT=Courier New,Courier New]movieItem[/FONT][/FONT]. The function should prints the movie details.
- A function named
[FONT=Times New Roman,Times New Roman][FONT=Times New Roman,Times New Roman]outOfStock [/FONT][/FONT][FONT=Times New Roman,Times New Roman][FONT=Times New Roman,Times New Roman][/FONT][/FONT]that takes as parameters an array of movies, and the number of movies in the array. The function should search the List array and print out the titles of all the movies in the List which are out of stock (number of copies equals zero).
- A function that takes as parameter
[FONT=Courier New,Courier New][FONT=Courier New,Courier New]myCustomer [/FONT][/FONT]of type [FONT=Courier New,Courier New][FONT=Courier New,Courier New]customer. [/FONT][/FONT]The function should print the titles of all movies rented by [FONT=Courier New,Courier New][FONT=Courier New,Courier New]myCustomer. [/FONT][/FONT]
[FONT=Courier New,Courier New][FONT=Courier New,Courier New][/FONT][/FONT]Test your program with samples of movies and customer details. Suppose the video shop has 20 movies, and 10 customers. Use an array of 20 components of type
[FONT=Courier New,Courier New][FONT=Courier New,Courier New]movieItem[/FONT][/FONT], and an array of 10 components of type [FONT=Courier New,Courier New][FONT=Courier New,Courier New]customer. [/FONT][/FONT]
[FONT=Courier New,Courier New][FONT=Courier New,Courier New][/FONT][/FONT]
 
الستركت ؟؟؟؟؟ تقدرون اتفهمونا اياه ؟؟
 
#include<iostream>
#include<string>
using namespace std;
struct movieItem {
string title;
int noCopies;
string type;
};

struct customer {
string name;
movieItem list[10];
int noMovies;
};
void readMovie(movieItem & myMovie)
{
cout<<"Enter Movie Title, noCopies, and type: ";
cin>>myMovie.title>>myMovie.noCopies>>myMovie.type;
}
void printMovie(movieItem myMovie)
{
cout<<"Title= "<<myMovie.title<<endl;
cout<<"No Copies = "<<myMovie.noCopies<<endl;
cout<<"Type= "<<myMovie.type<<endl;
cout<<"---------------------------"<<endl;
}
void outOfStock(movieItem list[], int size)
{
cout<<"Out of stock movies: "<<endl;
for (int i=0; i < size; i++)
if(list.noCopies==0)
cout<<list.title<<endl;
cout<<"---------------------------"<<endl;
}
int main(){
// Declare an array of type movieItem of size 3
movieItem list[3];

// Ask the user to enter title, noCopies, and type for list
// using the function readMovie
for(int i=0; i<3; i++)
readMovie(list);
 
// output the titles of out of stock movies
outOfStock(list, 3);
 
// output title, noCopies, and type of list
// using the function printMovie
cout<<"The list of movies in the shop:"<<endl;
for(int i=0; i<3; i++)
printMovie(list);

system("pause");
return 0;
}
 
تدر نزلوا الدرجات مال Test 1 علي البلاك بودر
 
عودة
أعلى أسفل