+ 1
Works
Hello , I learn C# and a lot of people say , to learn programing you need to practics, so can you say me some HOME WORK? i mean right now "classes & objects" and " Strings & Arrays" Bye!
4 Respuestas
+ 10
Write the class to check the mark of student in array and output or return to String and run your program on the main method.
+ 4
~~ Practice Problems ~~
Strings:
Create a program that will tell the user whether or not the input is a Palindrome.
(A word that is spelt the same backwards).
Ex/
Racecar
Arrays:
Create a Program that will reverse the elements of an array.
Ex/
[3, 2, 7, 9]
Becomes:
[9, 7, 2, 3]
Classes & Objects:
Create a class called Robot.
This Robot will take the following attributes as the parameters of its constructor: age, name, and date of birth.
Create many of those Robots (lets say 5), each with unique attributes.
Then, print the information about all the Robots you have created.
Use an array that will contain all the Robots.
**Bonus**
(I recommend you do not do this on CodePlayground, use an IDE)
Define a chat() method inside the Robot class.
This method will allow the user to ask the Robot some questions about itself:
* If the user inputs "exit", the user will no longer be chatting to the Robot. The Robot must then say something like "GoodBye.".
* The user can ask for the Robots Age, name, or date of birth. Upon which if the user does, the Robot must say the answer in a sentence.
Example/
User: "What is your name?"
Robot: "My name is Damon."
* If the user does not enter something from above, the Robot cannot understand the user.
The Robot must then tell the user "Sorry, I do not Understand".
You must then make the user chat with a RANDOM Robot.
+ 3
look into leet code and do some of those little programming challenges. It helps you and is alot of fun
0
Nithiwat?
Good? https://code.sololearn.com/cX735fIB7oOB/#cs