Design a system that can be used to issue mobile devices to students. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Design a system that can be used to issue mobile devices to students.

Your application must have the following classes and properties: mobile devices: brand, model, type, student name, student number. Laptop: storage size, processor speed. Tablet: Screensize. Write c# code for the creation of the specified classes. Your application must have methods to print the details of an allocated device, the details must be printed out to a listview.Your properties must have appropriate constructors that take all the given properties for each respective class. Complete the given method for the AddMobileDevice button on your form to demonstrate how your classes can be used by instantiating a Laptop object and a Tablet object. private void AddMobileDevice_Click(object sender, Event Args e) { //Add your code here for instantiating the objects }

3rd Feb 2021, 2:25 PM
Siyasamkela Lumbo
Siyasamkela Lumbo - avatar
3 Answers
+ 3
Siyasamkela Lumbo Show your attempt
3rd Feb 2021, 2:31 PM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
+ 1
Siyasamkela Lumbo Use sololearn code playground run program there after that tell us what's your problem?
3rd Feb 2021, 3:09 PM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
0
public partial class MobileDevice : Form { public string Brand{get;set;} public string Model{get;set;} public string StudentName{get;set;} public int StudentNumber{get;set;} class Laptop: MobileDevice// derived class { public double storageSize{get;set;} public int processorSpeed{get;set;} public Laptop( double storageSize,int processorSpeed,string model,string type,string studentName,int studentNumber) { txtStorage.Text = Convert.ToString(txtStorage.Text); int Processor; Processor = Convert.ToInt32(txtProcessor.Text); } class Tablet : MobileDevice { public decimal screenSize{get;set;} public Tablet(decimal screenSize,string model,string type,string studentName,int studentNumber) { decimal Screensize = Convert.ToDecimal(txtScreensize.Text); } public MobileDevice(string model, string type,string studentName,int studentNumber) { InitializeComponent(); ComboBox.ObjectCollection items = comboBoxBrand.Items; txtModel.Text = Convert.ToString(txtModel.Text); txtStudentName.Text = Convert.ToString(txtStudentName.
3rd Feb 2021, 2:59 PM
Siyasamkela Lumbo
Siyasamkela Lumbo - avatar