1. Write a program that reads an integer from the user. Then your program should display a message indicating whether the integer is even or odd.
Q: Write a program that will determine if a number is positive or negative. If positive it should be…
A: Given: Write a program that will determine if a number is positive or negative. If positive it…
Q: Write a program that prompts the user toenter the year and first day of the year, then displays the…
A: PROGRAM EXPLANATION: - Three static []s are declared and initialized for names of months, days in…
Q: Write a program that will ask the user to enter an integer number and display the message ‘ Prime ‘…
A: Programming language is missing in the question. So we will answer this program in C++. If you want…
Q: Python Write a program that receives a number from a user and checks if it's float or integer. In…
A: a=float(a)if int(a)/a==1: if a%2 == 0: print("This is Integer and Even Number") else:…
Q: Write a program that reads the income of a user and computes his/her income taxes according to the…
A: 1:Read the income 2:If income is negative then print error and exit 3:Determin the tax slab as per…
Q: Write a program that reads an integer and checks whether the number is odd or even. You should use…
A: #include<iostream> using namespace std; int main(){ int n; cout << "Enter a…
Q: Write a program which calculates the balance of a savings account after the first three months. To…
A: The question has been succesfully solved with Screenshot of code and output with 100%…
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: Note: since the programming language is not the question is implemented using C++.
Q: 9. Write a program that inputs two real numbers then exchanges their values. 10. Make a program that…
A: 9 Solution
Q: 3) Write a program that reads an integer and prints how many digits it has by checking whether the…
A: Python program to solve the given problem is below.
Q: 7. Write a program that asks the user's name, and then greets the user by name. Before outputting…
A: The problem is based on writing the code to input users' name and to greet the user after converting…
Q: In this exercise you will create a program that reads a letter of the alphabet from the user. If the…
A: In this program Get the input alphabetical letter from the user Using if statement check the entered…
Q: Write a program which reads two integer numbers from users and then display all prime numbers within…
A: According to the Question below the Complete Program: Program Output:
Q: Write a program that reads the following information and prints a payroll statement: Employee’s name…
A: Answer:
Q: Write a program that asks the user to type 2 integers A and B and exchange the value of A and B.
A: Integer variables are variables that must take an integer value
Q: 5) Write a program to determine the number of thousands, hundreds, tens, and ones in a given integer…
A: #include <stdio.h> int main() { int n=8532; // declare and initialize the digit int…
Q: write a program to print the name of day when entering the number of the day. (For example, when the…
A: read a value convert it into int using Integer.Parse() if x=1 then display “sunday” else if x=2 then…
Q: Write a program that reads from the user the initial KiloMeters of the car, the current KiloMeters,…
A: Note: as programming language is not mentioned c++ is used. The program with output is given below
Q: Write a program for weekdays. Read a number, between 0 and 6, from keyboard, and then print out the…
A: C program for weekdays. Read a number from 0 to 6. Using the switch function Display the…
Q: Write a program that prompts the user to enter the month and first day of the month, and displays…
A: /*program that prompts the user to enter the month and first day of the month, and displays all the…
Q: Create a program that reads two integers, a and b, from the user. Your program should compute and…
A: #asking user for inputa=int(input("Enter a number "))b=int(input("Enter a number "))#find…
Q: Write a program that prompts the user to read two integers and displays their sum. Your program…
A: import java.util.InputMismatchException; import java.util.Scanner; public class Exercise_02 {…
Q: Write a program that prompts the user to input a positive integer. It should then output a message…
A: Given The condition of a prime number and to do a program to check given number is prime or not.
Q: 9) Write a program that reads a temperature value and the letter C for Celsius or F for Fahrenheit.…
A: According to the question below the solution: Output:
Q: 4) Write a program that reads three numbers and prints "all the same" if they are all the same, "all…
A: CODE:- x = input("Enter the 1st integer ")y = input("Enter the 2nd integer ")z = input("Enter the…
Q: Write a program that reads from the user a character ('q' or 'c'). If the character is 'c', the…
A: Note: As the programming language is not mentioned, program is written in c++ ALGORITHM Step 1:…
Q: 9. Write a program that inputs two real numbers then exchanges their values. 10. Make a program that…
A:
Q: Write a program that accepts two numbers and determines whether they are equal. If they are equal,…
A: According to the question: We have to write a program that accepts a number and determines whether…
Q: Write a program that prompts the user to enter the currency exchange rate between U.S. dollars and…
A: GIVEN: Write a program that prompts the user to enter the currency exchange rate between U.S.…
Q: Write a program which repeatedly reads numbers until the user enters "done". Once "done" is entered,…
A: As per the question statement, We will run this code and try out different input value and will…
Q: Write a program that prompts the user to enter the numberof students and each student’s name and…
A: Program: import java.util.*; public class Main { static void LowestScores(String name[], float…
Q: Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total.…
A: GIVEN: Write a program that reads the subtotal and the gratuity rate and computes the gratuity and…
Q: Write a program that prompts the user to enter the number of seconds, displays a message at every…
A: Program Code in Python seconds = int(input("Enter the number of seconds: "))while seconds > 2:…
Q: Write a program that reads from the user a character ('q' or 'c'). if the character is 'c', the…
A: Java Program for above : import java.util.Scanner; class Prog{ public static void main…
Q: Write a program that prompts the user to enter 10 integers, and normalizes the integers to be in the…
A: we get- 10 user-inputted integers. we have to normalize the numbers by dividing each number by the…
Q: Write a program that takes in the user’s name and age. Then displays his/her name’s initial letter…
A: Algorithm: Start Var name, age Accept name from user Accept age from user Display(name[0]) Display…
Q: Write a program that creates a login name for a user, given the user's first name, last name, and a…
A:
Q: C++: Write a program that prompts the user to enter the weight of a person in kilograms and outputs…
A: C++ used to answer this question
Q: Write a program that reads an unspecified number of scores and determines how many scores are above…
A: # include <iostream> using namespace std; int main() { int i=0; int scores[i]; int count = 0;…
Q: Write a program that asks user to enter two numbers. Then the program should print the even numbers…
A: Task : Write a program to print even numbers between two numbers. C++ program :- #include…
Q: Write a program that receives an integer from the user and prints Large if that number is greater…
A: Step-1 StartStep-2 Declare a variable 'a' and take input from userStep-3 if a is greater than equal…
Q: Write a program that asks the user his/her name(first letter), semester, mlarks, and age and then…
A: Code : import java.util.*;class input{ public static void main(String[] args){ Scanner input = new…
Q: 7) Write a program that asks the user the number of hours an employee worked and his hourly wage,…
A: code:-- #include <iostream>using namespace std; int main(){ // to store the total_hour and…
Q: Write a program to convert an integer to binary number. Ask the user to enter an integer and convert…
A: Write a C++ program to convert an integer to a binary number Answer: Given a decimal number as…
Q: Write a program that accepts a number entered by the user and prints its Fibonacciseries up to 10…
A:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
- 1. Write a program that reads an integer from the user. Then your program should display a message indicating whether the integer is even or odd. 2. A string is a palindrome if it is identical forward and backward. For example "anna","civic","leveľ"and“hannah"are all examples of palindromic words. Write a program that reads a string from the user and uses a loop to determines whether or not it is a palindrome. 3. Write a program that reads integers from the user and stores them in a list. Yourprogram should continue reading values until the user enters 0. Then it should display all of the values entered by the user (except for the 0) in order from smallest to largest,with one value appearing on each line. 4. Two words are anagrams if they contain all of the same letters, but in a differentorder. For example, "evil" and “live" are anagrams because each contains one 'e', one 'i', one l', and one 'v'. Create a program that reads two strings from the user, determines whether or not they…A string is a palindrome if it is identical forward and backward. For example “anna”,“civic”,“level”and“hannah”are all examples of palindromic words.Write a program that reads a string from the user and uses a loop to determines whether or not it is a palindrome.A string is a palindrome if it is identical forward and backward. For example “anna”,“civic”, “level” and “hannah” are all examples of palindromic words.Write a programthat reads a string from the user and uses a loop to determines whether or not it is apalindrome. In java
- A string is a palindrome if it is identical forward and backward. For example "anna", "civic", "level" and "hannah" are all examples of palindromicwords. Write a program that reads a string from the user and uses a loop to determine whether or not it is a palindrome. Display the result, including a meaningful output message.Write a complete program to generate a username based on a user's first and last name. Part One: Get a Valid First and Last Name ask the user for and read in their first and last name use a loop to validate the first name: it must be at least one character long and it must start with a letter use a loop to validate the last name: it must not contain any spaces Hint: use a nested loop. The outer loop will iterate until there is valid input. The inner loop will check each character in the String to see if any of them are whitespace. Part Two: Generate a Username generate a two-digit random number (i.e., a random number between 10 and 99, inclusive) create a username that is the following data concatenated: the first letter of their first name in lower case the first five characters of their last name in lower case; if the name is shorter than five characters, use the whole last name the two-digit number output the username to the user Additional Coding Requirements code…Java Program A string is a palindrome if it is identical forward and backward. For example “anna”,“ civic”, “level” and “hannah” are all examples of palindromic words.Write a programt thatreads a string from the user and uses a loop to determines whether or not it is appalindrome Display the result, including a meaningful output message.
- COUNT LETTER CASE PROGRAM Create a new project and name it YourName_CountLetterCase (example: Alyaa_CountLetterCase) and start your program with your (Name, ID, GROUP) as a comment. Question: Write a Java program that reads one line of String from the user then counts the occurrences of upper-case letters and lower -case letters in that string. Tip:Use while/for loop to search and count the occurrences of upper-case letters and lower-case letters in the string. EXAMPLES OF THE OUTPUT: E Output - CountLetterCase (run) x run: Enter a line of string: Welcome to Java Programming Language! Found 4 upper-case letters in the stringn is an integer variable.Write a while loop that prints integer numbers starting with n and dividing the number to 4 each time, while the new number is greater than 0.(Example: If n is 2077, it will print 2077 519 129 ...)Write only the statements to perform the above explained task, nothing else.Use while loop, don't use for loop.Write a program that asks a user to input the height of triangle and draw a triangle that has the following pattern. Use nested loops for this problem. If the user enter height as 4 Then the triangle output is 1 1 2 1 2 3 1 2 3 4 We make the following assumptions • There is no space between the margin and first number in each row • There could be a space after the last number on every line • There is pne space between numbers on every line • There maybe a newline at the end of last line There is one test-case to check your code, there are two hidden testcases that tests correctness of your code 376584 2469
- "Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequence. Create a for loop that compares the two strings. For each match, add one point to user_score. Upon a mismatch, end the game.Sample output with inputs: 'RRGBRYYBGY' 'RRGBBRYBGY'User score: 4Code in Java using Do-while Loop Write a program that accepts an integer input. If the integer is positive, print the values from the positive integer down to zero. Otherwise, if it is negative, print the values from the negative integer up to zero. Separate each number with a space. Input 1. One line containing an integer Output Enter a number: 5 5 4 3 2 1 0Forms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outputs yes if every character is a digit 0-9. You may assume that the string does not contain spaces and will always contain less than 50 characters. Ex: If the input is: 1995 the output is: yes Ex: If the input is: 42,000 or 1995! the output is: no Hint: Use a loop and the isdigit() function (don't forget to include the ctype library). please use c programming language