write a program that prompts the user to enter 10 names. each with a minimum of 30 characters. Output the name that starts with letter A and its corresponding length.
Q: Create a program that converts a temperature in degrees Fahrenheit to the corresponding temperatures…
A: NOTE: Since the programming, langauge is not mentioned therefore answering the question in python…
Q: Write a program that prompts the user to enter the x- and y-coordinates for the three points p0, p1,…
A: As no specific language is mentioned in the question so writing it in JAVA language. Code: import…
Q: Write a program that prompts the user to enter three cities and displays them in ascending order.
A: #include<iostream>#include<string.h>using namespace std;int main(){char nameAll[5][20],…
Q: Write a program in python that asks the user to enter a word and then capitalizes every other letter…
A: Capitalize every other letter in string using python code
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: NOTE: SINCE THE LANGUAGE OF THE PROGRAM IS NOT GIVEN, I HAVE USED PYTHON FOR THE SOLUTION Define…
Q: Write a program that displays a random uppercase letter.
A: CODE: public class Main{ public static void main(String[] args) { char ch =(char)((int)'A'+…
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: Write a program that prompts the user to enter an uppercase letter and converts it to a lowercase…
A: Program plan: Take input in uppercase add 32 to in ( ascii code) print character
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: Build a program to input student grade by Text1 and print (A or B or C) by the following conditions:…
A: Dim x as integerPrivate sub command1_click()x= val (text1.text)If x<= 100 And x>=80 then…
Q: Write a program that prompts the user to enter the number of students and each student’s name and…
A: Since the coding language is not given, I have done the code in Python. Algorithm : Step 1 : ask for…
Q: Write a program that prompts the user to enter a three-digit integer and determines whether it is a…
A: JAVA CODE IS GIVEN BELOW:
Q: Write a program that prompts the user to enter the year and the first three letters of a month name…
A: CODE TO COPY:- month_lst = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',…
Q: Write a program that prompts the user to enter an integer and checks whether the number is divisible…
A: The c++ program is given below, as language is not mentioned.
Q: Write a program that asks the user to input 10 numbers and counts how many odd numbers that user…
A: Algorithm:- (I) declare array of size 10. (II) using loop take input . (III) use modulo 2 to…
Q: Write a program that prompts the user to enter a letter grade A/a, B/b, C/c, D/d, or F/f and…
A: PYTHON Program:- grade=input('Enter a letter grade:') # Take input grade # Check all grades with…
Q: Write a program that prompts the user to enter the three dimensions, possibly with decimals, of a…
A: //Solution in C++ #include<iostream>#include <iomanip>using namespace std;int main(){…
Q: Write a program that asks the user for a number and prints out 100 divided by the number: Enter a…
A:
Q: Write a program that asks for the user’s name and then the program will output the last 4 characters…
A: Note : Since the programming language is not mentioned , I have used C++ language Algorithm : 1 :…
Q: Write a program that keep asking for a number until you enter a negative number. At the end, print…
A: I give the code in Python because you have not specified any language along with output and code…
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: Write a program that prompts the user to enter a three-digit integer and determines whether it is a…
A:
Q: Write a program that prompts the user to enter 10 names, each with maximum of 30 characters. output…
A: Program: #include<iostream>using namespace std; int main(){string input[10];for(int i = 0; i…
Q: Write a program that will count the number of votes for each candidate, show the total number of…
A: Use an array to store the votes for each candidate and keep on voting till user wish to quit
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 prompts the user to enter an integer and determines whether it is divisible by…
A: Since there is no programming language, below is the program in python.
Q: write a program that asks the user to enter an angle in degrees and prints out the sine of that…
A: We need to write a program that takes input of an angle from user in degrees and print the sine of…
Q: Write a program that prompts the user to enter 10 names, each with maximum of 30 characters. Output…
A: The program defines an array called name of type string which have size 10. A for loop is used to…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: Note: Programming Language not specified using C++ to implement code: //include the necessary…
Q: Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid.
A: #include <iostream>#include <iomanip> int main(){ std::cout << "Enter the…
Q: Write a program that reads 6 integers and displays the largest and the smallest amongst those…
A: C++ code: To displays the largest and the smallest amongst 6 integers #include <iostream>using…
Q: Write a program that displays, ten per line, all the leap years in the twenty-first century (from…
A: Approaches: Define a main category. within the most category outline a main perform.Inside the most…
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 displays the numbers from 20 to 10 on a single line.
A: In programming, loops are utilized to rehash a block of code until a predetermined condition is…
Q: Write a program that shows the numbers up to the entered number that are divisible by 6 but not…
A: Here I have first of all asked the user to enter a number and stored it into a variable num. Now I…
Q: Write a program that reads the 10 student grades () from keyboard and calculates the class average.
A: Code in python programming language #Program to read grades of 10 students from teh keyboard and…
Q: Write a program that prompts the user to enter 10 names, each with maximum of 30 characters. Output…
A: Program Algorithm – Include the important header files. Define the main function. Declare the…
Q: Write a program that prompts the user to enter the number of items and each item’s name and price,…
A: Step 1:- Program Approach:- 1.Include the header files 2.Declare variables, an array of data type…
Q: Write a program that will ask the user to enter the name of the course they're taking (should be…
A: Since you have not mentioned the name of the programming language. i will use python: code:…
Q: Write a program to print the diamond shape using user specified character and size. For example:…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Write a program that ask the user to enter his/her letter grade and then respond with an appropriate…
A: grade = input("Enter your grade : ") #taking user inputif(grade == 'a' or grade == 'A'):…
Q: CREATE A PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZEN IF YES, THEN GIVE 20% OFF IF…
A: As no programming language is mentioned here, we are writing this program in python price =…
Q: Write a program that prompts the user to enter the number of students and each student’s score, and…
A: Given:- Write a program that prompts the user to enter the number of students and each student’s…
write a
Step by step
Solved in 2 steps with 1 images
- Assume letters A/a, E/e, I/i, O/o, and U/u as the vowels. Write a program that prompts the user to enter a letter and check whether the letter is a vowel or consonant.Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking your weight in kilograms and dividing it by the square of your height in meters. Write a program that prompts the user to enter a weight in pounds and height in inches and displays the BMI. Note that one pound is 0.45359237 kilograms and one inch is 0.0254 meters.
- The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.The date June 10, 1960, is special because when we write it in the following format, the month times the day equals the year: 6/10/60 Write a program that ask the user to enter a month in numeric format, a day and a two-digit year. The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is Magic. Otherwise, it should display a message saying the date is not Magic. Output should look as shown below. Create test data and place in a file. Name the code file Last Name + First Initial + "-MagicDates.s", for example "SmithJ- MagicDates.s". Name the test data file in a similar manner. Upload the program and test data files to the Dropbox. 6/10/60 is Magic! 6/10/70 is not Magic. 2/11/22 is Magic!Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, the 405 services the 5, and the 290 services the 90. Your program will prompt the user to type a highway number ("Please enter a highway number, Ex: 65: "), read in the number typed by the user, and print out whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also your program must indicate if the (primary) highway runs north/south or east/west, that it is an invalid number if not between 0 and 999. Ex: If the input is: 90 the output is: The 90 is primary, going east/west. Ex: If the input is: 290 the output is: The 290 is auxiliary, serving the 90, going east/west. Ex: If the input is: 0 the output is: 0 is not a valid interstate highway number. #include <iostream>using…
- A retail store grants its customers a maximum amount of credit. Each customer’s available credit is his or her maximum amount of credit minus the amount of credit used. Write a program that asks for a customer’s maximum amount of credit and then asks for the amount of credit used. The program should then properly display the customer’s available credit.5-WRITE A PROGRAM THAT CALCULATESA STUDENT'S AVERAGE IF IT IS LESS THAN 50, SPECIFYING THE STUDENT'S NAME AND AVERAGE IN RED 6-WRITE A PROGRAM THAT CHECKS THE VALUE OF A VARIABLE, WHETHER THE NUMBER ONE IS PRINTED ON SUNDAY, AND IF THE NUMBER TWO IS PRINTED ON MONDAY, AND IF THE NUMBER THREE IS PRINTED ON TUESDAY, ETC., UNTIL WE REACH FRIDAY, IT WILL PRINT A ZERO. 7-A COMPUTER COMPANY SELLS 200 PIECES OF MOTHERBOARD PER DAY, HOW MUCH DO YOU SELL PER MONTH, KNOWING THAT FRIDAY IS THE COMPANY'S HOLIDAY, KNOWING THAT THE COMPANY CONTAINS 150 EMPLOYEES AND THE SALARY OF EACH EMPLOYEE IS 2000 DOLLARS PER MONTHThe date June 10, 1960, is special because when we write it in the following format, the month times the day equals the year. 6/10/60 Write a program that asks the user to enter a month (in numeric form), a day, and a two- digit year. The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date is not magic. Input Validation: Think about what legal values the program should accept for month and day.
- Write a program to ask the user to choose from 2 temperature unit, Fahrenheit and Celsius. The user will then enter the temperature. The program will display the following based on the input •“Boiling Point” if the temperature is above 100 degrees Celsius or 212 degrees Fahrenheit, •“Freezing Point” if the temperature is below 0 degrees Celsius or 32 degrees Fahrenheit. •“Normal Temperature” if it is in between.Write a program that prompts the user to enter a string and displays the number of the uppercase letters in the string.السبت ۲ أكتوبر المحاولة رقم 1 :2 HW • Write a program that computes the average of 5 students grades which are entered by the user. Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. محتوى إضافي؟ يمكنك إضافة نص وملفات تدعم إجاباتك. إضافة محتوی إرسال الحفظ لوقت لاحق