Ping-pong is a classic programming exercise that utilizes branching and looping. Here's how it works:
- You enter a number and the application returns all numbers from 1 to the user input with the following changes:
- All numbers divisible by 3 are replaced by "ping".
- All numbers divisible by 5 are replaced by "pong"
- All numbers divisible by both 3 and 5 are replaced by "ping-pong".
- _Navigate to my Ping-Pong to view the project files and commits.
- Click on the green button labeled "Code" to copy repository URL.
- Clone the repository to your local machine by opening your machine terminal and using the command "git clone https://github.com/mandystar018/Ping-Pong".
- Navigate to the folder "/FindAndReplace.Tests"/ModelTests/ to see test files.
- Navigate to the folder "/FindAndReplace/Models/" to see C# files
- To use this application you will need to install .NET. Please, see instructions below.
C# and .NET programming are fully supported on Mac operating systems. We can install .NET and C# on a Mac in a few steps:
-
Download this .NET Core SDK (Software Development Kit) . Clicking this link will prompt a .pkg file download from Microsoft.
-
Open the file. This will launch an installer which will walk you through installation steps. Use the default settings the installer suggests.
-
Confirm the installation is successful by opening your terminal and running the command $ dotnet --version. You should see something like this in response: 2.2.105. This means both .NET and C# are successfully installed.
Note on Windows Versions These Windows instructions assume you're using Windows 10. If you currently run Windows 7 or Windows 8, you may have a free upgrade available.
If you are not running Windows 10 (and cannot or do not plan to upgrade), specific installation steps may differ. However, your instructor will be available to assist with personal laptop configurations during the first week of the course.
-
Download either the the 64-bit .NET Core SDK (Software Development Kit). Clicking these links will prompt a .exe file download from Microsoft.
-
Open the file and follow the steps provided by the installer for your OS.
-
Confirm the installation is successful by opening a new Windows PowerShell window and running the command dotnet --version. You should see something a response like this (version numbers do not need to be the same): 2.2.105
This means .NET and C# are installed and our computer recognizes the dotnet command.
You can launch our program with the following steps:
-
Navigate to the "/FindAndReplace/" folder in the command line.
-
Run the following command: $ dotnet build
-
Finilly, run the following command to execute this compiled code: $ dotnet run
App not finished working progress
If you have any questions, ideas or concerns, please, contact us:
- Amanda Otero at [email protected]
- C#
- .NET
- VisualStudio Code
- Git
- GitHub
- MSTest
This software is licensed under the MIT license
Copyright (c) 2020 Amanda Otero