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...

  • Create a GUI program (a Windows Forms Application) called GooseEggCalculator that lets a user enter the...

    Create a GUI program (a Windows Forms Application) called GooseEggCalculator that lets a user enter the number of eggs produced by each of four geese. Your program should provide textboxes with labels for the user to enter the values. When the user clicks a Calculate button, your app should sum the textboxes, then display the total number of eggs, as well as the number of eggs in dozens and remaining eggs, as shown on the example. Feel free to make...

  • Please note: This is in Visual Basic. Create an application (windows forms app). Add a label...

    Please note: This is in Visual Basic. Create an application (windows forms app). Add a label and a button to the form. The button’s Click event procedure should declare and initialize a one-dimensional Double array. Use any six numbers to initialize the array. The procedure should display (in the label) the lowest value stored in the array. Code the procedure using the For...Next statement.

  • 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...

  • **This program is to be created using Visual Studio C#**Create as a Windows Form application** 1....

    **This program is to be created using Visual Studio C#**Create as a Windows Form application** 1. Output a header in the console: "Program 1" 2. Next you will ask the user to enter three floats and read the values into variables. 3. Perform addition, multiplication, and division examples with the numbers entered. 4. Implicitly cast the floats into doubles. 5. Explicitly cast the floats into ints. 6. Use conversion methods to convert the floats into strings. 7. Ask the user...

  • Using Visual Studio 2017 Create This Program Using C# implement source code Program 5: The concept...

    Using Visual Studio 2017 Create This Program Using C# implement source code Program 5: The concept of a 5-digit palindrome number is a 5-digit number that reads the same from left to right and from right to left. For example, 12121, 45454, and 14741 are valid 5-digit palindrome numbers. Design (pseudocode) and implement (source code) a program (name it FiveDigitPalindrom) that reads a 5-digit number from the user (as integer value, not string) and then mathematically (using division and remainder...

  • 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...

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