Proje yardım

ChiristofClomb

Yeni üye
16 Tem 2016
2
0
Arkadaşlar bir proje ödevim var ve nerden başlayacağım bilmiyorum ufak bi yardım edebilecke varsa seviniirm projem aşşağıdaki gibidir
Basit bir Cloud computing system yapman bekleniyor ve aşağıdaki senaryolar olacak:
Each user is allowed to upload and keep 5 files at max in the system and the size of each file
should be less than or equal to 1000 MB.
Her kullanıcı sisteme maximum 5 dosya yükleyebilecek ve her dosyanın boyutu 1000 MB eşit ya da daha az olmalı.
File size of 0 means "No file". So, for example "Aretha_Franklin" has 3 files whose sizes are 961,
491, and 995.
Eğer dosya boyutu 0 MB olduğu zaman bu dosya yoktur deme. Örneğin Aslı’nın 961, 491 ve 995 MB olarak üç dosyası var yüklemek için.
The whole data is kept at "data.h" in global arrays and this file is already included from in the
uploaded project. It is also available in the excel file uploaded to itslearning with the project
********ations. You can use this excel file to validate the outputs that your program generates.

Tüm verileri data.h global arrayed tutmalısın ve bu veriler senin yüklediğin projende olmalı. Aynı zamanda itlearning de yüklenmiş proje dosyalarında excel dosyası var.
DATA: A small portion of the data is given below:
Verilen dataların küçük bir kısmı:
username password
size of
file1
size of
file2
size of
file3
size of
file4
size of
file5
ABC ezz117 467 334 500 169 724
A_R_Rahman yx2e6rs 0 0 0 0 0
Al_Green a58172vh7 0 0 0 0 0
Alicia_Keys 7i7b5w 464 705 145 281 0
Aretha_Franklin 24evd 961 491 995 0 0
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Requirements
Gereklilikler
Write a function that performs each of the below given tasks (the ones given in menu)
Verilen menüdeki gibi verilen taskı uygulayan bir fonksiyon yazmalısın
The program will display the following menu when executed.
Program çalıştığında menüyü göstermelidir.
When the user enters a choice, call the related function and execute the task.
Kullanıcı bir seçenek girdiğinde, alakalı olan fonksiyonu çağır ve task’I execute et.
The menu will be displayed at each time until 0 is entered by the user.
Menu
[FONT=&quot]1) [/FONT][FONT=&quot]Display number of files and sum of file sizes for each user // Dosyaların sayısını ve her kullanıcı için toplam dosya büyüklüklerini göster[/FONT]
[FONT=&quot]2) Display usernames of the users who have no files in the system// Sistemde hiçbir dosyası bulunmayan kullanıcıların kullanıcı adlarını göster[/FONT]
[FONT=&quot]3) Display average file size for each user// Her kullanıcı için ortalama dosya boyutunu göster.[/FONT]
[FONT=&quot]4) Display password of a username entered by the user// Kullanıcı tarafından girilen kullanıcı adının şifresini göster.[/FONT]
[FONT=&quot]5) Search user (get username as input and display password and size of each file of that user)// kullanıcı arama(kullanıcı adını input olarak al ve o kullanıcının şifresini ve her dosyanın büyüklüğünü göster.[/FONT]
[FONT=&quot]6) Display the minimum file size (0 (zero) means nothing which should be ignored)// Minimum dosya büyüklüğünü göster.(0 dosya yok anlamına gelir vey ok sayılmalıdır.[/FONT]
[FONT=&quot]7) Display the maximum file size (0 (zero) means nothing which should be ignored)// Maximum dosya büyüklüğüne göster.[/FONT]
[FONT=&quot]8) Upload a new file for a user// Kullanıcı için yeni bir dosya yükle[/FONT]
[FONT=&quot]a) Get the username//Kullanıcı adını al[/FONT]
[FONT=&quot]b) If there is no available free file slot for that user, display warning message and the menu// Eğer o kullanıcı için bir dosya yok ise uyarı mesajı ve menüyü göster[/FONT]
[FONT=&quot]c) If there is available free file slot get the file size// Eğer uygun bir dosya var ise dosya boyutunu al[/FONT]
[FONT=&quot]i) If file size is less than or equal to 1000, set it to free slot of that user// Eğer dosya boyutu 1000’e eşit ya da küçük ise o kullanıcı dosyayı yükleyebilsin[/FONT]
[FONT=&quot]ii) If file size is greater than 1000, display warning message and the menu// Eğer dosya boyutu 1000’den büyük ise uyarı mesajı ver ve menüyü gööster.[/FONT]
[FONT=&quot]9) Get a character (a single char) from the user and display all usernames beginning with the entered[/FONT]
[FONT=&quot]Character // Kullanıcıdan bir karakter al (a single char) ve o karakter ile başlayan tüm kullanıcı adlarını göster.[/FONT]
[FONT=&quot]0) Exit //Çıkış[/FONT]
[FONT=&quot]Enter your choice:// Seçimini yaz[/FONT]
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.