2. Write a complete program following the algorithm given below. 2.1 Print a message to ask user to enter their name. 2.2 Read name. 2.3 Print a message to ask user to enter their height and weight in kg and m. 2.4 Read weightand height. 2.5 Print name. 2.6 Print weightand height.
Q: a program that stores and prints the months of a year:
A: a program that stores and prints the months of a year:
Q: a-) Write a pseudocode that receives a positive number from the user, and then, starts printing and…
A: a) import java.util.Scanner;//to read input from userpublic class Main{ /* pseudocode: n =…
Q: Write a program that does the following: 1. prompts the user to enter a word 2. using that word,…
A: To Do: To write the C++ Code.
Q: Write a program that calculates the average word length in a sentence entered by a user.
A: please do upvote for mt efforts thanks! answer: if __name__ == '__main__': s = input("Enter the…
Q: Sometimes we write similar letters to different people. For example, you might write to your parents…
A: Note: Since no programming language is mentioned in the question, the program has been provided in…
Q: Take input from the user a single character from the alphabet. Write a JAVA program to print "Vowel"…
A: Range of uppercase alphabets: 65 to 90 Range of uppercase alphabets: 97 to 122 Vowels: 'a', 'e',…
Q: 4.Write a program to select your favorite food among 5 foods. i) ii) Pizza Burger iii) Hot dog…
A: Note: Below is the required program in the C language. Program Approach: Including necessary header…
Q: 2. Write a program to print the Result of Final exam of 25 students in a class. Accept the name and…
A: INTRODUCTION: Here we need to create a flowchart of the result of the final exam of 25 students in a…
Q: 1. What is the order of calculations in the conversion of a temperature? Write an ordered list of…
A: Note :- As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: Write a program that displays the following two tables side by side (note that 1 kilogram is 2.2…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: Write a program that keeps accepting words as inputs from user repeatedly until the user enters…
A: Declare empty string variable to hold input word. Initialize both word and vowel word counts as 0.…
Q: 4. Write a program that prompts the user to enter a greeting and a name. The program should output…
A: The above program makes use of Scanner class defined in java.util package. This class takes in user…
Q: Write a complete program that: 1. Prompts the user to enter an integer and reads in an integer…
A: CODE:- #include <iostream>using namespace std;int main(){ int f, s, sum , sub , divi ,…
Q: 5. Write a program that reads 3 items, item1, item2, item3, from the keyboard a. if 1 and 2 are the…
A: I give the code as per your requirement along with output and code screenshot in python
Q: Write a program to replace a forbidden word with asterisks in a set of text and prints the text to…
A: Please find the answer below :
Q: 16.Write a Java Applet program to display sum of two numbers. The numbers must be passed as…
A: An applet is a Java program that runs in a Web program.. Applets are intended to be implanted inside…
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 a library catalog, the followings are stored about each book: the author and the title, available…
A: Sol: Algorithms Step1: First of all we have taken input n for count the book Step2 then we have…
Q: Suppose you deposit $50 in a bank account every month for a year. Every month after the deposit has…
A: I give the code in Matlab as per your requirement along with output and code screenshot
Q: Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome.
A: 1. Input the string 2. Remove spaces from the input string 3. Reverse the string 4. If the reversed…
Q: 1. Write a program that prints your name, age, and department in console 2. Write a program that…
A: As no programming language is mentioned, it is solved using C++
Q: Write a program that does the following: 1. prompts the user to enter a word 2. using that word,…
A: Code: Output:
Q: The name of the sum of odd integers from 1 to N in a program (T1), the name of the sum of even…
A: Algorithm for T1: Take the input for N Initialize Sum=0 Start loop from I=1 and repeat step 4,5,…
Q: Write a program whose inputs are three integers, and whose output is the smallest of the three…
A: Given: Three integers given as input from user. Requirement: Write a program in python language to…
Q: Exercise 1: In this exercise we are asked to write a program that prompts the user for a positive…
A: Input n if(n>0) { while(n>0) { r=n%10; //find remainder…
Q: (b) In a crypto-arithmetic puzzle, a mathematical equation is written using letters. Each letter can…
A: Python Program: From itertools import combinations, permutations x = input("Enter the value of x: ")…
Q: 11. Write a JAVA program to read input 2 positive integers greater than or equal to 10 and check…
A: PROGRAM EXPLANATION: Import java.util package. Create the main class. Define the main method. Ask…
Q: Write a program that, given the time duration of a task in the number of hours, minutes, and…
A: I have provided c++ code in step2
Q: Write a program that reads in a farenheit temperature as a decimal number and outputs the equivalent…
A: C++ program to solve the given problem is below. ****As there is no programing language…
Q: 1. Write a program that prints your full name. Write a program that prints your full name using…
A: 1.) #include <iostream> using namespace std; int main(){string name;cout<<"Write your…
Q: Write a program that helps the teacher to correct the exam automatically. The program should work as…
A: Accept input as string Then count the number of matching responses of each student Based on the…
Q: 1. Write a program that converts miles to feet. If the distance is more than 15,000 feet, tell the…
A: C program to solve the given problem is below.
Q: 43) Review the given program below and answer the questions that follows. Vinclude int i, j; int…
A: answers:- 4.3 (a) the program is giving the sum of the first n natural numbers. example:- 3 is…
Q: def notRelPrime(a,b): for i in range(2,a+1): if(a%i==0 and b%i==0): return True; return False; x =…
A: EOFError When one of the built-in functions input() or raw input() encounters an end-of-file (EOF)…
Q: Write an algorithm that asks the user to enter 10 test scores and do the following: (a) Print out…
A: First, write the code in python as well as output, then let's write the algorithm : print("Enter the…
Q: 02: write a complete program in e++ Language to input a number and check if a number is less than or…
A: Program: #include <iostream> using namespace std; int main(){ int num;…
Q: 12. Write a JAVA program to print the sum of odd natural numbers in the range [n1,n2] where n1, n2…
A: Write a JAVA program to print the sum of odd natural numbers in the range [n1,n2] where n1, n2 are…
Q: Create a program that takes in a student’s full names and marks for 3 In-class exercises, then…
A: Since the programming language is not mentioned in the question. So, we have solved this question…
Q: 1- Write a java Program to read a number from user and print inverted half pyramid using *: Note :…
A: Given:-
Q: Write a program that inputs a line of text, replaces all punctuation marks with spaces.
A: Program: //header files #include <iostream> #include <string> using namespace std;…
Q: 4. Sum of Everything by Jemar Jude Maranga Write a program that will repeatedly ask the user to…
A: Program is in step 2. In the program, as you said input should be in series and output is the sum of…
Q: Write and implement an algorithm that gets the amount of electricity used in kilowatt-hours and the…
A: Actually, the answer has given below:
Q: Write a program that does the following: 1. prompts the user to enter a word 2. using that word,…
A: Here I have taken input from the user and stored it into a variable of type string. Next, I have…
Q: E2.8 Write a program that asks the user for the lengths of the sides of a rectangle. Then print •…
A: As you have not mentioned any specific language so I give the code in Python along with output and…
Q: 4.2 Write a JAVA program to read input two integer values x,y and print the absolute difference in…
A: Here have to determine about the print difference between cube of numbers problem statement.
Q: Write a java program to find how much time required to execute a function which only have a print…
A: Algorithm: Start Implement a method display() with one print statement In the main method, create…
Q: Find an example of a Python program on the Web that illustrates the program’s decisions using if and…
A: algorithm:- read the data from user until they press -999, this is done using while true loop use…
Q: 2. Write a complete program following the algorithm given below. 2.1 Print a message to ask user to…
A: Here no language is mentioned so I have given code in python below based on algorithm.
Q: Write a creative quiz program with three original questions that you make up as specified below.…
A: The program contains questions: How many rings are there on olympic logo? Answer: 5 What is the…
Q: Find the attached file.
A: output for the code is:- bananasbicyclesbananasapples
pls answer as soon as possible
Step by step
Solved in 3 steps with 2 images
- Design a program that takes a string as input from the user and prints its length.7. Create a script that takes a string as input from the user and prints it reversed.8. Create a Python script that asks the user to enter two strings and then prints their concatenation.9. Create a Python program that asks the user for their age and prints out a message saying whether theyare a teenager (between 13 and 19 years old) or not.10. Design a program that prompts the user to enter a positive integer and then prints whether it is a primenumber or not.11. Design a program that calculates the factorial of a given number using a loop. Ensure the input numberis a positive integer.12. Develop a program that prompts the user for the lengths of three sides of a triangle and prints whetherthe triangle is equilateral, isosceles, or scalene.Write an algorithm that asks the user to enter 10 test scores and do the following:(a) Print out the highest and lowest scores.(b) Print out the average of the scores.(c) Print out the second largest score.(d) If any of the scores is greater than 100, then after all the scores have been entered, print a message warning the user that a value over 100 has been entered.(e) Drop the two lowest scores and print out the average of the rest of them.2. Write a complete program following the algorithm given below. 2.1 Print a message to ask user to enter their name. 2.2 Read name. 2.3 Print a message to ask user to enter their height and weight in kg and m. 2.4 Read weightand height. 2.5 Print name. 2.6 Print weightand height.
- design a program for a professor to calculate the average of the three test scores for the students and congratulate the student enthusiastically if the average is greater than 95. here is the algorithm below. write the pseudocode for this program: 1. get the first test score. 2. get the second test score. 3. get the third test score. 4. calculate the average. 5. display the average. 6. if the average is greater than 95, congratulate the student.Excercise2 1. Write a program to find the square of two numbers 10, -4. 2. Write a program to find the square of any two numbers. (Hint: Use the inte 3. Write a program to input (a) number of tomatoes in kg (b) Price for 1kg (c) Print the complete bill. Enter the number of tomatoes (kg): 2 Enter the price for 1kg tomato (OMR) : 0.700 Bill: 2kg Tomatoes price is : 1.400 (Price per kg OMR 0.700) Upload the jupyter notes here come3 Use input/output statements, conditional statements, loo g manipulationuse flowcharts 4. Accept two integers from computer user and check whether they are equal or not. 5. Write a program to check whether a given number is even or odd. 6. Write a program to check whether a given number is positive or negative 7. Write a program to read the value of an integer m and display the value of n is 1 when m is larger than 0, 0when m is 0 and -1 when m is less than 0
- A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome. Ex: If the input is: bob the output is: palindrome: bob Ex: If the input is: bobby the output is: not a palindrome: bobby Hint: Start by just handling single-word input, and submit for grading. Once passing single-word test cases, extend the program to handle phrases. If the input is a phrase, remove or ignore spaces. 367012.2549490.qx3zqy7 LAB 5.25.1: LAB: Palindrome 6/ 10 АCTIVITY LabProgram.java Load default template... 1 import java.util.Scanner; 2 3 public class LabProgram { public static void main(String[] args) { 4 Type your code here. */ } 7 } 8A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome. Ex: If the input is: bob the output is: palindrome: bob Ex: If the input is: bobby the output is: not a palindrome: bobby Hint: Start by removing spaces. Then check if the string equals itself in reverse.24. Write a program which asks the user for an integer number and prints out whether the input number is a multiple of 7. A. Example 1 i. Input: • ii. Output: B. Example 2 i. Input: Please enter number: 9 ii. Output: Number is not a multiple of seven 25. Write a program which asks the user for two integer numbers (say N1 and N2) and prints out whether the input number NI is a multiple of N2. A. Example 1 i. Input: • B. Example 2 ii. Output: • i. Input: A. Example Please enter number: 49 Number is a multiple of seven i. Input: ii. Output: Number 40 is not a multiple of 3 26. Write a program which asks the user for an integer number and prints out whether the input number is even or odd. Please enter first number: 49 Please enter second number: 7 Number 49 is a multiple of 7 Please enter first number: 40 Please enter second number: 3 • Please enter number: 42 i. Input ii. Output: Number is even 27. Write a program that asks the user for an integer number and prints a pattern. A. Example…
- of the two numbers. 6. Write a program that reads in the radius of a circle as an integer and prints the circle's diameter, circumference and area. Use the constant value 3.14159 for pi. 7 Writo set inpuuts a five-digit integer senarates the integer into its individual cdigits andInstructions A local biologist needs a program to predict population growth. The inputs would be: 1. The initial number of organisms, as an int 2. The rate of growth (a real number greater than 1), as a float 3. The number of hours it takes to achieve this rate, as an int 4. A number of hours during which the population grows, as an int For example, one might start with a population of 500 organisms, a growth rate of 2, and a growth period to achieve this rate of 6 hours. Assuming that none of the organisms die, this would imply that this population would double in size every 6 hours. Thus, after allowing 6 hours for growth, we would have 1000 organisms, and after 12 hours, we would have 2000 organisms. Write a program that takes these inputs and displays a prediction of the total population. An example of the program input and output is shown below: Enter the initial number of organisms: 10 Enter the rate of growth (a real number › 1]: 2 Enter the number of hours to achieve the…A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome. Ex: If the input is: bob the output is: bob is a palindrome Ex: If the input is: bobby the output is: bobby is not a palindrome Hint: Start by removing spaces. Then check if a string is equivalent to it's reverse. python