Resolved I really need help with an assignment

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
Hi Everyone, I'm currently on my first semester of learning programming C# and I need your help with my first assignment please
If someone can help me with that, add me on discord : <removed by moderator>
Thank you very much
 
Last edited by a moderator:

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
Why not write down here what you are trying to do, what you have done to try to achieve that goal, and what problems you are running into? Show us your code (as text in code tags -- not a screenshot).
 

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
I'm sorry, yeah I could but it's a private project, I just need help with writing a 5 lines codes, I think if someone really has knowledge in this domain he can solve it in 10seconds, but I'm a beginner and I don't know how, if you can help me, just add me on discord and I'll share with you the file and what i need to do
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
If you describe your problem, someone here can likely help you.

This forum aims to help the community. Chances are that others will have similar questions as you do. By having the discussion here in my public, they can learn to. Any one-on-one tutoring isn't going to aid the community as a whole.
 

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
This is my problem :

Open the project in Visual Studio.
Important: You MUST only add code as indicated by the comments in that file. If you don't, you're virtually guaranteed to fail all the test cases in the automated grader.

Requirements

Your solution must do the following:
- Print the symbol for each of the first 10 elements of the periodic table, with each symbol appearing on its own line in the output
- In case you’re having a hard time understanding what your output should look like, here are the first 3 lines of required output (you’ll have 10 lines of output):

H

He

Li

Thank you for helping me
 

Attachments

  • eoJnQpKlS9iCZ0KSpVvYUg_07dd8bccb21c48d4a78bfb7c7b52e2f1_1-Windows-Programming-Assignment-1-Mat...zip
    77.6 KB · Views: 3

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
I tried to solve it but I can't write Debug.Log or Print to write the 10 symboles, if you want to help me thank you, if no, just tell me I can remove the post,
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
4,466
Location
Sydney, Australia
Programming Experience
10+
We do want to help but, in order to do that, we need an actual explanation of an actual problem. If you're just here to get a programming tutor or to get someone to do your assignment for you then you'll be disappointed. If you're prepared to do what you can and then explain the issue when you encounter one then we can actually help you.
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
4,466
Location
Sydney, Australia
Programming Experience
10+
It sounds like you might benefit from working through a debugging tutorial. You probably don't need to write any extra code. Just set a breakpoint and you can then simply hover the mouse over a variable to see its value. You also have the Autos and Locals windows to automatically display various values.
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
I tried to solve it but I can't write Debug.Log or Print to write the 10 symboles, if you want to help me thank you, if no, just tell me I can remove the post,
That's because Debug.Log and Print are not in C#'s library. Perhaps you should be using Console.WriteLine(). On the other hand, I highly doubt that a teacher would give an assignment that requires writing to the console without first teaching their students about Console.WriteLine(). Did you miss (or skip) a few lectures?
 
Last edited:

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
That's because Debug.Log and Print are not in C#'s library. Perhaps you should be using Console.WriteLine(). On the other hand, I highly doubt that a teacher would give an assignment that requires writing to the console without first teaching their students about Console.WriteLine(). Did you miss (or skip) a few lectures?
I studied console.writeline and debug.log and print, but in this project or assignment, I don't know where or how to use the console.WriteLine code because I'm used to simple exercises and this is my first week of learning. Help please, I need to get the assignment done and know how to do it again by myself before 29th may
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
Here's a freebie:
C#:
Console.WriteLine("H");
 

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
Yes I know how to do the same for the 10 ones but I don't understand where and how, Like do i have to open Visual studio first or Unity ? and Where to write the 10 lines code and how to save the file ^^' I'm still new to this, first assignment,
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
How did your teacher demonstrate to do things?
 

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
He told us how to write the consolewriteline code but in the assignment, he tells in the file if you open it in visual studio where to put the codes, but I didn't understand his writing, so can you help ?
I just need to know :

Where to put the 10 codes
What to do after I write them to test them
How to save the file

Thank you man for your patience
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
1. You would download that ZIP file and extract all the files out to a directory.
2. Within that directory you would double click on the .SLN file. That will launch Visual Studio.
3. In Visual Studio, open the Program.cs. The instructions are there for where to put in your code.
4. To save a file in Visual Studio, you would go to the File menu and select Save.

As for how to send your assignment back to your teacher you would need to talk to your teacher.

In fact, the teacher should have told you the first things I listed above. How many lectures did you miss?
 

horus

Member
Joined
May 26, 2022
Messages
10
Programming Experience
Beginner
The other students started the courses way earlier than me because they paid for it, but I couldn't pay so I demanded a financial help and I got it late, so I'm trying to self-learning this first week because I missed the first classes, but for the second week I will be okay, I may comeback here to this Forum but I will be sure to be more way better than now

Thank you for the instructions, I'll try again and see what I'll get
Have a good day!
 
Top Bottom