What's new

Help C# DATA STRUCTURES PATULONG PO

Status
Not open for further replies.

PHC - Nexus

Eternal Poster
Established
Joined
Sep 16, 2015
Posts
916
Reaction
2,092
Points
497
Age
27
Honestly po, wala akong natutunan sa Data Structures prof namin. Kasi yung routine ko is ganito, wala po akong laptop or computer. Pero nakikigamit po ako sa kapit bahay namin, na installan kona po ng visual studio 2010. Kasi low spec po yung computer niya. Everytime na nag didiscuss yung prof namin, para bang nag didiscuss siya na akala niya alam nanamin mga sinasalita niya or terms na ginagamit niya. Halos kami po lahat di nakaka intindi sa kanya. Tapos nag pa activity po siya samin di po namin alam anong gagawin namin sa activity namin. May mga classmates kami na mga third year pero nakapa selfish po nila kahit patingin lang ng code nila para magka idea kami. So nag post po ako ng thread dito nag babasakali na may tumulong.



FOR CC104
Create a C# console application named ShoesPurchase. Create another Java class named Shoes which has the following fields: brand (string), size (int), and unitPrice (double). The Shoes class must have a constructor that accepts brand, size, and unitPrice as its parameters.

In the main method, declare five (5) Shoes objects using an array and instantiate each objects.
Create a method within the main class that displays a menu (in table format) which shows the brand, size, and unitPrice of each Shoes object.


In continuation to Machine Problem 1 above, the application must prompt the user to make an order among the five (5) shoe brands displayed on the menu. The customer must have at least one order. Display the total cost of the order after an order is made.

Yan po yung problem. Sana po may tumulong. 🙃
 
And honestly yang pinapagawa sainyo wala naman yan kinalaman sa data structure. Yung pinapaimplement sainyo ay Object Oriented Programming.

Dissect the problem,
first, create a C# console application named ShoePurchase

second, create a class named Shoes and inside that declare variables
Java:
Shoes {
    string brand;
    int price;
    double unitPrice;

    // insert constructor here
}

third, create a constructor, if you dont know how to you can use google for free to get the answer.
This is a constructor:
Java:
Shoes (string b, int s, double uP) {
    this.brand = b;
    this.size = s;
    this.unitPrice = uP;
}

In the main method declare five objects using an array and instantiate each objects
Java:
Shoes sapatos[] = new Shoes[5];
sapatos[1] = {"Nike", 10, 299.99}
And so on ...

Now, all you need to do is stitch this all up to form the program.
 
Last edited:
And honestly yang pinapagawa sainyo wala naman yan kinalaman sa data structure. Yung pinapaimplement sainyo ay Object Oriented Programming.

Dissect the problem,
first, create a C# console application named ShoePurchase

second, create a class named Shoes and inside that declare variables
Java:
Shoes {
    string brand;
    int price;
    double unitPrice;

    // insert constructor here
}

third, create a constructor, if you dont know how to you can use google for free to get the answer.
This is a constructor:
Java:
Shoes (string b, int s, double uP) {
    this.brand = b;
    this.size = s;
    this.unitPrice = uP;
}

In the main method declare five objects using an array and instantiate each objects
Java:
Shoes sapatos[] = new Shoes[5];
sapatos[1] = {"Nike", 10, 299.99}
And so on ...

Now, all you need to do is stitch this all up to form the program.


Thank you po, naka idea na ako. God bless po
 
sana po pag natuto kanadin o mag improve ka man sana wag ka din maging selfish gaya ng iba hehe
 
Status
Not open for further replies.

Similar threads

Back
Top