Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to convert Task List Application into a Windows Form application. The objective of this assignment is to change the user interface of

You are required to convert Task List Application into a Windows Form application. The objective of this assignment is to change the user interface of the Console Application Task List from a command-line interface to a graphical user interface while maintaining full functionality.

Your application should have at least four basic forms: -Main Dashboard -Add New Task -Edit Selected Task -View All Task -Delete Specific Task -Delete All Task

Additionally, users should be able to specify expiry dates for each task, as well as, set the priority level (Normal, Medium, High, Urgent)

You are free to choose whether or not your application will persist data in a database or rely on temporarily in memory.

Completed Task List Application  using System; class Program { static void Main() { //variables to hold the task count and choices int choice, task_count = 0; string[] tasks = new string[10]; //display the choices while (true) { Console.WriteLine("1.Add a task"); Console.WriteLine("2.View all tasks"); Console.WriteLine("3.Delete all tasks"); Console.WriteLine("4.Exit"); Console.Write("Enter your choice: "); choice = Convert.ToInt32(Console.ReadLine()); //Implement the choices switch (choice) { case 1: { while (true) { string choice1; //if the task_count is less than 10 if (task_count < 10) { //Ask the task name Console.Write(" Enter the task name: "); //add the task tasks[task_count++] = Console.ReadLine(); Console.WriteLine(" Task successfully added. "); //prompt for adding other task Console.Write("Do you want to add another task? [y/n] "); choice1 = Console.ReadLine(); //if choice y or Y then re prompt else break if (choice1[0] == 'y' || choice1[0] == 'Y') continue; else break; } //if the tasks is full display the message else { Console.Write(" No space for new task."); break; } } break; } //for viewing the tasks added case 2: { //if the task count is not 0 the loop and display the tasks stored if (task_count != 0) { int i; Console.Write(" The task added are ..."); for (i = 0; i < task_count; i++) Console.Write(" " + Convert.ToString(i + 1) + ". " + tasks[i]); } //if not display no tasks added else Console.Write(" No tasks available"); break; } //for deleting the tasks case 3: { int i = 0; //assign all the assigned tasks to empty slots for (i = 0; i < task_count; i++) tasks[i] = ""; //make the task count to 0 task_count = 0; Console.WriteLine(" All tasks cleared successfully."); break; } //exit case case 4: { return; } //default case default: Console.WriteLine("Invalid Choice "); break; } Console.WriteLine(" "); } } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategy, Value And RiskThe Real Options Approach

Authors: J. Rogers

2nd Edition

0230577377, 9780230577374

More Books

Students also viewed these Accounting questions

Question

Find the exact value of cot /4.

Answered: 1 week ago

Question

We are interviewing quite a few people, why should we hire you?

Answered: 1 week ago

Question

iaker tition 3+134: iaker tition 3+134

Answered: 1 week ago