Make a Quiz Game App in Windows Forms with C#

所在平台: Udemy

课程主页: https://www.udemy.com/course/c-sharp-course-quiz-maker-app-development-windows-forms/

课程评论:没有评论

第一个写评论        关注课程

课程简介

本 Coursera 课程“使用 C# 和 Windows Forms 制作测验游戏应用”将指导您使用 C# 和 Visual Studio 中的 Windows Forms 构建功能齐全的桌面应用程序。 **核心功能包括:** * **创建测验:** * 设计一个支持多项选择题的测验制作器。 * 为每个问题添加文本、多个答案选项(使用单选按钮选择正确答案)以及可选的图像。 * 利用面向对象编程,创建“问题”类来组织和管理测验内容。 * 使用 Windows Forms 组件(标签、单选按钮、按钮、文本框、图片框)构建用户界面。 * 通过事件处理实现组件的功能,例如创建、更新和删除问题。 * 使用列表管理文本框和单选按钮,实现它们之间的交互。 * 实现将测验问题保存为文本文件,并支持从文件加载、添加新问题、更新现有问题或删除问题。 * 集成异常处理,以应对文件格式错误或空文件等问题。 * **玩测验:** * 创建一个“玩测验”窗口,允许用户加载先前创建的测验文本文件。 * 实现测验问题的随机播放功能(洗牌)。 * 为每个问题设置时间限制,并在时间耗尽时自动移动到下一题。 * 使用计时器和进度条来显示问题倒计时。 * 在测验结束时,显示一个包含测验结果的窗口,统计正确率,并针对回答错误的问题提供正确答案。 **主要技术和概念:** * C# 编程语言 * Windows Forms 应用程序开发 * Visual Studio 集成开发环境 * 面向对象编程(OOP) * 事件处理 * 数据结构(列表) * 文件 I/O(文本文件读写) * 异常处理 * 用户界面设计 通过本课程,您将学习如何从头开始构建一个交互式且用户友好的测验应用程序,并掌握实际的软件开发技能。

课程评论(0条)

课程详情

In this course, we will create a desktop application using C# and Windows Form in Visual Studio. The application we will be making is a quiz maker application that will allow you to create a multiple-choice quiz. You can upload an image per question, add the question and answers. We will be using radio buttons to select the correct answer from the list of questions. Once you've created a question, you can then save that question to the program and create a new question. You can also save the question as a text file to the computer, load it up later to add more questions, update the questions, or delete any question. All of this will be done inside the application. We will also be performing exception handling in the program to solve the problem of files not being in the right format or empty file detection.We will also create the play quiz window with this program. In this window, you will be able to load the quiz text file you have created and play the quiz. In this window, you will be able to randomize the questions for the quiz, where it will shuffle all the questions from the text file and randomly display them in the quiz. When the quiz starts, it will have a time limit per question, and it will automatically move to the next question if it has not been answered. At the end of the quiz, it will show a Q and A window that will contain the results of the quiz. It will show how many questions were answered correctly and show the answers for questions answered incorrectly. The program will keep track of all the questions from the text file. Quiz Maker Window -Using object-oriented programming to create a questions class and organize the questions using it.Use windows forms components such as Labels, Radio Buttons, Buttons, Text Boxes and Picture Boxes to create the interface in Visual Studio.Create events for each of the necessary components.Use Lists to organize the text boxes and the radio buttons to communicate with each other.Use custom function to show, update or delete questions from the quiz.Load and Save text files from the quiz maker window.When loading the text file, check if its in the correct format, if it is not the show an error message on the screen.Use the back and next button o navigate the available questions from the quiz.Create new quiz questions that will be added to the questions bank automatically.Delete any quiz questions.Clear all the elements.And morePlay Quiz WindowLoad the text file and perform checks to ensure that its in the correct format.Enable and disable necessary components when conditions are met, such as game is running, file is loaded, quiz has ended etc.Use windows forms components same as the quiz maker window to create the interface.Use the questions class created earlier to load the questions, images, and answers to the screen.Allow the users to shuffle the questions, therefore random questions will display on the screen.If the user answers the questions correctly keep score of that in the programDisplay the result in a new window, give answers for the questions answered incorrectly.Use the timer and progress bar to display a specific time limit per question.Automatically change the questions when the timer limit is reached.

课程标签

0人关注该课程

主题相关的课程