Homework for me
i will show you very soon what i need to do hum i'm not a pro ( sorry for the english i'm french)
12 Replies
here : Write a program that randomly draws a single card from a deck of cards. A deck of cards consists of 52 cards, with:
Suits: Hearts, Diamonds, Spades, and Clubs
Ranks: Ace, 2 through 10, Jack, Queen, and King
Then print the result in the following format:
The drawn card is the Ace of Spades
Or
The drawn card is the 8 of Hearts
Or
The drawn card is the Queen of Diamonds
and i see this : 02 Variables
03 Calculations
04 Conditional statements
05 Loops
06 One-dimensional arrays (vectors)
What's the problem here?
at the really right now none but it will probably have one soon
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
This is not ChatGPT, we won't write the program for you if that's what you wanted.
nor do we condone cheating
Did i start good?
Did you?
i don't know if i can put a int because i write string
oops sorry i forogt something
I suggest you find out what a class and an enum is.
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/tutorials/classes
If you're entirely new to C# I recommend checking this out $helloworld
it's because i start my class of programming but i'm a bit late (but it's still the beginning )