Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete each of the following exercises from the Deitel book, using the indicated C# project names. You should use a .NET Framework Console application type

Complete each of the following exercises from the Deitel book, using the indicated C# project names. You should use a .NET Framework Console application type for each project. All projects should be part of a single solution named: Cs2Apps.

How to setup multiple Projects in one Visual Studio Solution

When creating the first Project, make sure to uncheck the box for putting the solution and the project in the same folder. This will create a separate folder with the solution file by itself and the first project in a folder under that. For each subsequent project, use the "File->Add->New Project" to add each project to the **same** solution.

To switch projects among those listed in the Solution Explorer window, right click on the project and select "Set as StartUp Project". The selected startup project will display as bold text in the Solution Explorer window.

7.30 - Guess-the-Number Game (Project Name: GuessTheNumber) - Write an app that plays Guess the Number as follows: Your app chooses the number to be guessed by selecting a random integer in the range 1 to 1000. The app displays the prompt "Guess a number between 1 and 1000: ". The player inputs a first guess. If the players guess is incorrect, your app should display Too high. Try again. or Too low. Try again. to help the player zero in on the correct answer. The app should prompt the user for the next guess. When the user enters the correct answer, display Congratulations. You guessed the number! and allow the user to choose whether to play again. [Note: The guessing technique employed in this problem is using a similar strategy to a binary search, which is discussed in Chapter 18 (Links to an external site.) ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

7.39 - Computer-Assisted Instruction (Project Name: AITeacher) - The use of computers in education is referred to as computer-assisted instruction (CAI). Write a program that will help an elementary-school student learn multiplication. Use a Random object to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the students answer. If it is correct, display the message "Very good!" and ask another multiplication question. If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student gets it right. A separate method should be used to generate each new question. This method should be called once when the app begins execution and each time the user answers the question correctly.

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

More Books

Students also viewed these Databases questions