Skip to content

Ahmed task2 #5

Open
H25l wants to merge 1 commit intoProgramming-Club-IAU:masterfrom
H25l:master
Open

Ahmed task2 #5
H25l wants to merge 1 commit intoProgramming-Club-IAU:masterfrom
H25l:master

Conversation

@H25l
Copy link

@H25l H25l commented Oct 11, 2023

Finished task2 after watching ryamm video explanation.

Copy link

@RyamAlmalki RyamAlmalki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, great job Ahmed! I'm very proud of you for completing Task 2.


class TaskListApp {
// TODO: Implement Task list app
class Funcions {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a class name that clearly indicates that these are task functions.



int ? choice = int.tryParse(stdin.readLineSync() ?? "you did't pick a choice ") ;
if (choice != "") {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When parsing an integer, you should check if the result is null before using it instead of checking if it's an empty string.

if (choice == null) {
print('Invalid input. Please enter a number between 1 and 4.');
continue;
}

}}

//Complete Task
void CompleteTask(int taskID) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's good practice to use camelCase CompleteTask to completeTask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants