Question

Using Windows Form App create an application that determines if an entry from the user is...

Using Windows Form App create an application that determines if an entry from the user is a palindrome. A palindrome is a series of numbers that can be read from left to right or right to left. Examples of palindromes are 22222, 12321 and 89298. A palindrome must be 5 digits long. Using modulus and division evaluate digits one at a time from right to left. The user should enter their palindrome into the palindrome checker application using a text box. When they click a button that says check if palindrome, a label should be populated to prompt the user whether their entry was a true palindrome or not.

Language C#

0 0
Add a comment Improve this question Transcribed image text
Answer #1

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PalindromeApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
int inputNumber,tempNum,rem,rev=0;

inputNumber = Convert.ToInt32(txtInput.Text);

tempNum = inputNumber;

while (inputNumber > 0)
{
rem = inputNumber % 10;
inputNumber = inputNumber / 10;
rev = rev *10 + rem;
}

if (rev == tempNum)
{
lblOuput.Text = tempNum + " is a palindrome number.";
}
else
{
lblOuput.Text = tempNum + " is not a palindrome number.";
}
}

private void button2_Click(object sender, EventArgs e)
{
Close();
}
}
}

Add a comment
Know the answer?
Add Answer to:
Using Windows Form App create an application that determines if an entry from the user is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A fitness tracking app company has asked you to develop a windows application using a GUI...

    A fitness tracking app company has asked you to develop a windows application using a GUI to determine the total amount of hours somebody has exercised during their lifetime, assuming on average a user has exercises 2.5 hours per week. When the user uses the app, they will enter the following: First Name: Last Name: Date of Birth (in mm/dd/yyyy): Current Date (in mm/dd/yyyy) This program should display the users name and the number of hours the user has exercised...

  • Write an application in java that reads in a five-digit integer and determines whether it is...

    Write an application in java that reads in a five-digit integer and determines whether it is a palindrome. If the number is not five digits long, display an error message and allow the user to enter a new value. Tips: 1. Determine the number of digits in the value input by the user , i.e. prompt the user to enter the number of digits of the number. Use a while loop to determine whether the user input contains the proper...

  • 1. Describe how a Windows Store app is displayed differently from a Windows application. 2. Instead...

    1. Describe how a Windows Store app is displayed differently from a Windows application. 2. Instead of icons, Windows Store apps are launched by tapping or clicking _________. 3. What is the file extension of an app package in the Windows Store? 4. What does touch-first mean when using Windows Store apps? 5. How many touch points does a Windows 8 device typically have? 6. Windows Store apps can be written in which programming languages? 7. What does XAML stand...

  • Develop a Windows Forms application that will allow a user to select between the 5 different...

    Develop a Windows Forms application that will allow a user to select between the 5 different soring algorithms. • The application’s GUI should include / perform the following: o A textbox to enter a string value o A button to submit the string value o A listbox to store all of the submitted string values. The entries in this list will always be unsorted, i.e. it should list the entries in the sequence in which they have been captured. o...

  • Create a windows form application in c# The form must look like a calculator and do...

    Create a windows form application in c# The form must look like a calculator and do the following. Add, subtract, multiply, and divide. Account for division by zero. Show at least two decimal places. Retain the last number on the window so that, when the user opens the calculator the next time, the number that was in the window at the last close appears. Have a memory, so that users can store values and recall them. Operate with a mouse...

  • This assignemnt for Android development using Java Weather Forecaster App Goal: Create an app to display...

    This assignemnt for Android development using Java Weather Forecaster App Goal: Create an app to display a weather forecast for the user’s current location Create the app titled Weather Forecaster The first screen will have a textbox for the user to enter a zip code and a button to submit When the user enters the zip code and clicks the button, the app will navigate to the weather forecast screen. The weather forecast screen will show the current weather for...

  • C# Windows Form Application (CALCULATOR): (This is the instruction below): Windows Calculator that will going to...

    C# Windows Form Application (CALCULATOR): (This is the instruction below): Windows Calculator that will going to create a Windows Form Application that will mimics a calculator. This is the screenshot how it shouldl look like. Calculator It should have a textbox and the following buttons: + Addition - Subtraction * Multiplication / Division = Equals (Will perform the final calculation) C Clear (Will clear the text box) There will be no maximize or minimize buttons. The rules are these: 2...

  • (Android Studio) Create a camera app that allows the user to upload a picture from their...

    (Android Studio) Create a camera app that allows the user to upload a picture from their phone camera gallery, see the picture via summary page, and edit the picture as well. Clicking on "Insert picture here from camera photo gallery" in the add page will allow the user to upload a picture from their existing camera photo gallery on their phone. The user can choose where to save the picture, starting with Picture 1-5. Once they choose where to save...

  • Integer Math- Console based---uses Windows Form in Visual Basic   Create an application that uses random integers...

    Integer Math- Console based---uses Windows Form in Visual Basic   Create an application that uses random integers to test the user’s knowledge of arithmetic. Let the user choose from addition, subtraction, multiplication, and division. The integers used in the problems should range from 20 to 120. When giving feedback, use color to differentiate between a correct answer response, versus an incorrect answer response. Also check for non-integer input. Preparing division problems requires special consideration because the quotient must be an integer....

  • For this week's assignment , please create an application following directions in the attached document.(windows form...

    For this week's assignment , please create an application following directions in the attached document.(windows form application) Create a base class named Account and derived classes named SavingsAccount and CheckingAccount that inherit from class Account. Base class Account should include one private instance variable of type decimal to represent the account balance. The class should provide a constructor that receives an initial balance and uses it to initialize the instance variable with a public property. The property should validate the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT