Create a java program that will check if a given word is a palindrome or not a palindrome.
Q: (C PROGRAMMING ONLY) 3. Starting My Business by CodeChum Admin I want to be an entrepreneur! But I…
A: The C program is given below with code and output screenshots
Q: The code should be in C++ language Write a program that prompts the user to input a string and…
A: The below give C++ program code will obey the following rubrics: Including necessary header files.…
Q: Please modify the program: Add prompt "Do you want to run the program again; Yes or No" * If…
A: Use do while for asking user about the continuation of the program . below is the code :
Q: Problem 1: Decimal to Binary Conversion Write a program that takes an integer value as an input…
A: import java.util.*;class Test109 { public static void main(String args[]) { Scanner sc = new…
Q: Create reversit class andWrite a function called reversit () that reverses a C-string (an array of…
A: PROGRAM: //Adding the required header files #include <iostream> #include <cstring>…
Q: (Average a Sequence of Integers) Write a program that calculates and prints the average ofseveral…
A: PROGRAMING CODE: #include<stdio.h> int main() { int n,count=0;float avg=0; printf("enter the…
Q: JAVA Programming Problem 5 – CharacterArray Write a program which will store the following string…
A: i wll provide two solutions for this question public class CharacterArray {public static void…
Q: Java Program (Display the prime factors) Write a program that prompts the user to enter a positive…
A: In the java program, the necessary libraries are included for the Math and Scanner classes. Create a…
Q: Java programming Write a program to check a string is palindrome or not Take string from user
A: Required: None
Q: Find the C program language Starting My Business by CodeChum Admin I want to be an entrepreneur!…
A: The if statement evaluates the test expression inside the parenthesis (). If the test expression is…
Q: Forms often allow a user to enter an integer. Write a program that takes in a string representing an…
A: In step 2, you will get java code. In step 3, you can see the sample output.
Q: C program Andrew likes the topic of strings a lot and tries to solve as many problems as he could…
A: Program: #include <stdio.h> int main(){ char num1[20], num2[20]; //two string…
Q: Obviously that the program has many syntax errors. Rewrite the entire program after correcting…
A: A class is a user-defined data type that combines data members and methods for manipulating that…
Q: # TODO: Import the random module def number_guess(num): # TODO: Get a random number between 1-100 #…
A: import random def number_guess(num): # DONE: Get a random number between 1-100 rand =…
Q: Please help me solve this problem
A: Program design:Since the corner positions are a1,a8,h1,h8 in a chess board and the borders are any…
Q: Debugging Exercises • 1. The programmer intends for this pseudocode to display three random numbers…
A: answer is given below:
Q: Credit card numbers follow certain patterns: It must have between 13 and 16 digits, and the number…
A: Algorithm: 1. Double every second digit from right to left. If doubling of a digit results in a…
Q: __________ Arrays where the index is a string value. a. Positive b. None c. Associative d. Numeric
A: Given: __________ Arrays where the index is a string value. a. Positive b. None c.…
Q: 2.15 (Geometry: area of a hexagon) Write a program that prompts the user to enter the side of a…
A: Given: To write a python program to find the area of hexagon.
Q: Make Camel Case. Create a program that reads a multi-word phrase, and prints the Camel Case…
A: Algorithm: Start Read a string Split the string using space Initialize s="" Convert the first word…
Q: PYTHON. Write a program that displays the first and last words of a sentence input by the user.…
A:
Q: write kotlin program to print hello expert using define array and strings
A: Solution :
Q: please code in python Forbidden concepts: arrays/lists (data structures), recursion, custom classes…
A: Below is the required code in python and sample output:
Q: Write a program that: Gets a character array (C-string) using cin.g
A: Write a program that: Gets a character array (C-string) using cin.get to allow blanks in the…
Q: Create a new string from a given string changing the position of first and last characters. The…
A: As per the given problem we have to Create a new string from a given string changing the position of…
Q: This exercise is designed to assess student’s skills of writing programs using arrays and loops.…
A: Answer in step2
Q: Python Programming Question
A: Program: #import the header file import random #definition of main method def main():…
Q: C++ c ode. Write a program that prompts the user to input a string and outputs the string in…
A: Program: #include <iostream> using namespace std; int main() { char str[100]; cout…
Q: 6. A String object is called palindrome if it is same when read from the front and the end. For…
A: Read string as a user input. Check if the entered string's length is not equal to 5, then print…
Q: Use unary and arithmetic operators, control flows, arrays for basic mathematical operations • Use…
A: Answer: Our guideline is answer first three subpart from first question. so I have answered in java…
Q: Ugly Numbers: Numbers whose only prime factors are 2, 3 or 5. 1 is also a ugly number by convention.…
A: import java.util.*; class Main { /*This function divides a by greatest divisible power of b*/…
Q: (Count the letters in a string) Write a function that counts the number of letters in a string using…
A: CODE:- def countLetters(s) : return len(s)string = input("Enter a string : ");print("number of…
Q: Factoring of integers. Write a program that asks the user for an integer and then prints out all its…
A: Program of factors of the given number #include <iostream> using namespace std; int main() {…
Q: Design program performs föllow 1. Read your student number on the command line when you call the…
A: It is defined as a powerful general-purpose programming language. It can be used to develop software…
Q: 6. Create a program that will compute and display the area of a square. Recall that the formula to…
A: #include <iostream>using namespace std;int main() { float s,area; cout<<"Enter…
Q: program is also acceptable. Use the concepts, techniques and good programming practices that you…
A: Program code - import java.util.Scanner; public class Salaries { public static void…
Q: 2. (Sentinel.java) Write a program that reads several numbers, determines how many positive and…
A: As per guidelines we are supposed to answer only one question. Kindly repost the other questions as…
Q: Automatic lyncs generator: write a program that asks the user to enter a number between 6 and 11,…
A: import io import os import sys import string import numpy as np import pandas as pd from tensorflow…
Q: Python calendar library. Write a program that takes input year number from user and prints the…
A: Python supports Calendar Library which can print the calendar of any valid year number passed to it.…
Q: Python Coding Create a mini-lottery with TEXT ticket. The user is going to save three numbers…
A: Programming Instructions:Create a python program and declare all required variables as well as…
Q: (java programming language) Using while do, generate 10 random numbers between 10 to 30 inclusive.…
A: Required: Using while do, generate 10 random numbers between 10 to 30 inclusive. Find the number,…
Q: Don't delete the code. Fix the error and make sure it runs. #include using namespace std; class…
A: The code is written in C++.
Q: . Given a string of at least 3 characters as input, if the length of the string is odd return the…
A: The code has given below
Q: Write a program that lets the user enter a string and displays the character that appears most…
A: Start Input the string Convert to Upper case Count the frequency of each character Find the maximum…
Q: Write a program in java to concatenate two strings and display the concatenated string.
A: Note - We are authorized to answer one question at a time since you have not mentioned which…
Q: This exercise is designed to assess student’s skills of writing programs using arrays and loops.…
A: The complete code is given below.
Q: Thue–Morse weave. Write a program ThueMorse.java that takes an integer command-line argument n and…
A: import java.util.Scanner;public class ThueMorse { public static String thurMorse(int steps) {…
Q: correct pseudocode
A: Given :- The Pseudocode is mention in the above given question is intended to display employee net…
ARRAY & STRING MANIPULATION
Create a java program that will check if a given word is a palindrome or not a palindrome.
EXPECTED OUTPUT:
Step by step
Solved in 3 steps with 1 images
- import math # Lab 3 - Road Trip # Program determines the time it takes to complete a road trip from Chicago to other cities in the US # and how many podcasts you can listen to on the road trip # TODO: Add your name and the names of your team members # Get input from user of what city they would like to visit city = input("What city would you like to visit? ") distance_to_city = { 'Chicago': 0, 'Minneapolis': 410, 'Columbus': 350, 'Nashville': 475, 'Denver': 1005 } speed = 70 # miles per hour hours_per_day = 8 # hours you can travel per day podcast_length = 25 # minutes # TODO: finish the code herePhython assignment Exercise 1: Oreo cookies Check out the nutritional values of an Oreo cookie (Koppelingen naar een externe site.). Write code that does the following: calculate how much one Oreo cookie is concerning: calories, sodium, carbohydrate, fat create a user input that asks how much cookies you ate calculate how much calories, etc. you consumed warn the user that if he/she surpasses 2000kcal he/she should stop eating these darn delicious cookies use variables!Module main() // Local variables Declare Real centigrade, fahrenheit // Set centigrade For centigrade = 0 to 20 Call setFahrenheit(centigrade, fahrenheit) // display values Call showTemperatures(centigrade, fahrenheit) End For End Module // The setFahrenheit module calculates degrees fahrenheit // equivalent to centigrade. Module setFahrenheit(Real centigrade, Ref fahrenheit) Set fahrenheit = ((9 * centigrade) / 5) + 32 End Module // The showTemperatures module shows centigrade degrees // and shows corresponding Fahrenheit degrees Module showTemperatures(Real centigrade, fahrenheit) Display centigrade, " degrees centigrade = ", fahrenheit, “ degrees fahrenheit” End Module pseudocode, program analysis and flowchart please.
- Restaurant: Point-of-Sales System Create a software application that can be used for a Restaurant using C language. The expected minimum functionality are as follows: Menu Display It must display at least 10 choices with their corresponding prices On your menu, at least one of the categories/choice should have customization/add-on. You should have at least 3 customization/add-on (e.g. In Starbucks, you can have extra espresso shot). Taking Orders As a customer, I want to select which of the choices I want to order As a customer, everytime I specify select my choice, I want to specify the quantity of my selected choice. After I finished my order, it should ask, "Anything Else?". Afterwards, as a customer, I should be to enter my succeeding choice. In order to stop taking order, the exit should be part of the menu. As a customer, I would only select that choice to exit If the customer selects a choice qualified for customization, after specifying the quantity, I should be asked,…Visual Basic For tax purposes an item may be depreciated over a period of several years, n.With the straight line method of depreciation, each year the item depreciates by 1/nth of itsoriginal value. With the double declining balance method of depreciation, each year the itemdepreciates by 2/nths of its value at the beginning of that year. (In the final year it is depreciatedby its value at the beginning of the year.)Write a program that performs the following tasks:1.1 Request a depreciation of the item, the year of purchase, the cost of the item, the number ofyears to be depreciated (estimated life), and the method of depreciation. The method ofdepreciation should be chosen by clicking on one of two buttons.1.2 Display a year by year description of the depreciation.Visual Basic For tax purposes an item may be depreciated over a period of several years, n.With the straight line method of depreciation, each year the item depreciates by 1/nth of itsoriginal value. With the double declining balance method of depreciation, each year the itemdepreciates by 2/nths of its value at the beginning of that year. (In the final year it is depreciatedby its value at the beginning of the year.)Write a program using Visual Basic that performs the following tasks:1.1 Request a depreciation of the item, the year of purchase, the cost of the item, the number ofyears to be depreciated (estimated life), and the method of depreciation. The method ofdepreciation should be chosen by clicking on one of two buttons.1.2 Display a year by year description of the depreciation.
- ITP 100 Programming Logic & Design Project In this project, you will design a program to perform the following task: Design a program, the STAR Movie Rating App, which can be installed in a kiosk in theaters and patrons can immediately give their rating of a movie they’ve just seen. Each theater patron enters a value of 0, 1, 2, 3, or 4 indicating the number of stars that the patron awards to the App’s featured movie of the week. If a user enters a star value that does not fall in the correct range, the program will prompt the user continuously until a correct value is entered. The program executes continuously until a negative number is entered to quit. At the end of the program display: the number of ratings given the average star rating for the movie of the week the following message depending on the average rating. 3 or better – “Great movie choice!” 2 up to 3 – “Good movie choice!” 1 up to 2 – “Not a Good movie choice.” 0 up to 1 – “Bowling would have been a better…Cell Phone Packages use Java Swing(GUI)Cell Solutions, a cell phone provider, sells the following packages:300 minutes per month: $45.00 per month800 minutes per month: $65.00 per month1500 minutes per month: $99.00 per monthThe provider sells the following phones (a 6 percent sales tax applies to the sale of a phone):Model 100: $29.95Model 110: $49.95Model 200: $99.95Customers may also select the following options:Voice mail: $5.00 per monthText messaging: $10.00 per monthWrite an application that displays a menu system. The menu system should allow the user to select one package, one phone, and any of the options desired. As the user selects items from the menu, the application should show the prices of the items selected.2 - Dictionaries emy cructions Tutoring Word2SMS Run Ter OProblem program.py > Most non-smartphone mobile phones have keypads like this: 100 2 abc 3 def 4 ghi 5 jkl 6 mno 7 pgrs 8 tuv 9 wxyz Image source Given a word of input, all in uppercase letters, print the numbers you would need to type on a standard mobile phone keypad to enter that word. Assume that the phone can perfectly predict the word you want, and there are no numbers or punctuation symbols in the word. A Submissions Output
- ne: ID: A 7. A game is played by moving a game piece left or right along a horizontal game board. The board consists of spaces of various colors, as shown. The circle represents the initial location of the game piece. Yellow Black Green Green Red Yellow Yellow Black Black Black The following algorithm indicates how the game is played. The game continues until the game is either won by landing on the red space or lost when the piece moves off either end of the board. Step 1: Place a game piece on a space that is not red and set a counter to 0. Step 2: If the game piece is on a yellow space, move the game piece 3 positions to the left and go to step 3. Otherwise, if the game piece is on a black space, move the game piece 1 position to the left and go to step 3. Otherwise, if the game piece is on a green space, move the game piece 2 positions to the right and go to step 3. Step 3: Increase the value of the counter by 1. Step 4: If game piece is on the red space or moved off the end of the…Using Visual Basic 2019 programming language: VB.NET Franks Software Sales AssignmentYou have been hired by Franks Software Sales to write a program to figure the total cost to customers that order Slappy’s software packages. Discounts are given based on the number of units sold:Number of Units Sold Discount Amount 1–9 None10 – 19 20% 20 – 49 30% 50 – 99 40%100 or more 50% Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Style properties. The program should read the number of units sold and figure a base cost. The units cost $99 each. A discount should then be figured and subtracted from the base cost. The subtotal, discount amount and total cost should be displayed, as currency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing. Use constants for the discount rates and base price.Copy your code and paste it into a…PYTHON ONLY PLZZZZ Create a car object with the following attributes and actions: Name Make Model Year price Actions: Compute the age of the car Compute the cost plus a 9% tax Compute a 10% depreciation for every 5 years To string Test your object: Ask the user for all the information compute using all the actions of the object print using the to string action Describe the numbers and text you print. Do not just print numbers or strings to the screen explain what each number represents.