Write an application that allows a user to enter the names and birth dates of up to 10 friends. Continue to prompt the user for names and birth-dates until the user enters the sentinel value “ZZZ” for a name or has entered 10 names, whichever comes first.
Q: Body Mass Index (BMI) is a measure ofhealth on weight. It can be calculated by taking your weight in…
A: Program code: //import the required packages import java.util.Scanner; //define a class BMI public…
Q: Write an application that allows a user to enter the names and birthdates of up to 10 friends.…
A: import java.util.*; public class BirthdayRemainder { public static void main(String args[]) {…
Q: Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently…
A: Algorithm: Start READ Num Compute: lastDigit = Num % 10 Compute: modNum = Num / 10 IF modNum% ==…
Q: Problem: Write a program that prompts the user to enter 10 names, each with maximum of 30…
A: GIVEN CODE: //Start of program #include <iostream>//Line 1// #include <cstring>//Line…
Q: void removeStudent() { System.out.print("\n Enter StudentID to remove: "); long id =sc.nextLong();…
A: I reason why it is going back to the menu after reading ID is, after removing you are not printing…
Q: Create a VB.NET Console Application that uses the While loop to display all leap years between 2010…
A: Actually, program is an executable software that runs on a computer.
Q: Modify your working program from Assignment #19 so that when the user enters data into the Selling…
A: Description : Entry widgets are the basic widgets of Tkinter used to get input, for example text…
Q: Modify your working program from Assignment #19 so that when the user enters data into the Selling…
A: Note: Follow proper indentation to get output. Basic Methods used in Program: mainloop(): mainloop…
Q: Write an application that allows a user to enter the names and birthdates of up to 10 friends.…
A: import java.util.*;public class BirthdayReminder { public static void main(String args[]) { Scanner…
Q: Java Programming Write an application that prompts the user for two integers and then prompts the…
A: 1.Take 2 numbers as input from user.2. we have to use switch for menu driven program.3. give option…
Q: 1. Let's make the game more playable! Currently, the player wins every other round and each game…
A: The solution for the above given question is given below:
Q: You have been asked to develop the new system. You are to write an application to assign seats in an…
A: Actually, program is a executable software that runs on a computer.
Q: Examine1 is the name of a recent Java project/class. Allow the consumer to choose how many numbers…
A: System.out.printf("%.2f",average) This statement can be used to round upto two decimal formating for…
Q: Create a program using a console application name "DragonKiller". The program should ask the user to…
A: Code: import java.util.*;public class DragonKiller { public static String RemoveSpace(String…
Q: You can enter 1, 2, 3, or 4 for choosing an addition, subtraction, multiplication, or division test.…
A: Note: Here you didn't mention any programming language so we are solving this problem using the C++…
Q: Write a small application to maintain contact information about people. For each person in your…
A: used to create computer programs. An example program of C++ is : #include <iostream> using…
Q: Please draw the correct flowchart for this game ?
A: The flowchart is given below along with output of code
Q: Create an application that reads numbers from a file into an array, displays the array’s contents in…
A: program is an given below : using System; using System.Collections.Generic; using…
Q: Write an application that prompts the user for two integers and then prompts the user to enter an…
A: Here is the program screenshot in java:
Q: This is for C++. Trainer's enrollment Trainers at Tom's Athletic Club are encouraged to enroll new…
A: c++ C++ is a cross-platform language for producing advanced applications. Bjarne Stroustrup created…
Q: Write an application that allows a user to enter the names and birthdates of up to 10 friends.…
A: Source Code: import java.util.*; public class BirthdayReminder { public static void main(String[]…
Q: This code is correct but can you add to the code this instructions: If the father's age is equal to…
A: Your C++ program is given below as you required with an output. Below in source code i'm add to the…
Q: Software Requirements: • Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1.…
A: I have given java code to perform the given question.
Q: Create a VB.NET Console Application that uses the While loop to display all leap years between 2010…
A: Algorithm: 1. Start 2. Initilaize y to 2010 3. Using while loop traverse from 2010 to 2050 4. Inside…
Q: What does the following error message normally mean: IndentationError: unexpected indent Select one:…
A: Introduction: When writing python code, we have to define a group of statements for functions and…
Q: Ask the user to enter the new rating for food. Validate the rating. If the rating is not within the…
A: Objective: This program receives details of some restaurants (like food and service ratings) and…
Q: Create a visitors application that prompts the user for the number of visitors each day for the past…
A: Below is the code in the C programming language. The explanation is given in the comments in the…
Q: Write an application that allows a user to enter the names and birthdates of up to 10 friends.…
A: Program code: import java.util.*;//define class BirthdayReminderclass BirthdayReminder { public…
Q: a) A prime number is an integer greater than 1 that is evenly divisible by only 1 and itself. For…
A: """PrimeNumber application that prompts the user for a number and thendisplays a message indicating…
Q: Create a VB.NET Console Application that uses the While loop to display all leap years between 2010…
A: Visual Basic .NET is a multi-paradigm, object-oriented programming language, implemented on the .NET…
Q: What would the following code display? for (int count = 1; count <= 5; count++) {…
A: Given code: for (int count = 1; count <= 5; count++) { MessageBox.Show(count.ToString()); }…
Q: Select code that jumps to a label if an integer value in AL is negative. O test al,00000011b jnz…
A: Jump to label if integer value in AL is negative
Q: / This program displays a hot beverage menu and prompts the user to // make a selection. A switch…
A: The, code has given below;
Q: Create a program that reads integers from the user until the enter key is pressed. Once all of the…
A: since programming language is not mentioned, I am attempting this in python, if you need it in any…
Q: Create a program using a console application name "DragonKiller". The program should ask the user to…
A: Java Source Code: package Dragonkiller; import java.util.*;public class DragonKiller{ // This…
Q: 4.35 (Sides of a Triangle) Write an application that reads three nonzero values entered by the user…
A: import java.util.Scanner; public class ValidateTriangle { public static void main(String[]…
Q: Question 3 Write an application that prints each number between 1 and 100 that are divisible by 5 or…
A: Code: public class Main{ public static void main(String[] args) { //declaring required variables…
Q: 6. Prompt user to enter an integer number from console. Adjust this number if it is not in the…
A: Below is the complete solution with explanation for the given question in detail.
Q: Using Flowgorithm, create an application that reads two integers, determines whether the first is a…
A: To write an algorithm and draw a flowchart for reading two numbers, determines whether the first is…
Q: in visual basics. (1) The following program asks the user for two numbers and then outputs the…
A: Program: According to the given question, we need to perform certain tasks using the for... next…
Q: ShowCurrentTime.py, gives a program that displays the current time in GMT. Revise the program so…
A: Code to copy:- import time print("This Program Displays The Time In The Specified Time…
Q: A Company wants to produce a product orders report from its product orders file. Each record on the…
A: Pseudo code: It is a compact and informal high level…
Q: A game program contains the following code to update three score variables, health, food, and…
A: GIVEN: A game program contains the following code to update three score variables, health, food,…
Q: Create a program using a console application name "DragonKiller". The program should ask the user to…
A: import java.util.*;public class DragonKiller { public static int RemoveSpace(String name){…
Q: 2. Write an application that will calculate the Cummulative Grade Point Average [CGPA] using While…
A: The code and the output has been given in step 2.
Q: What would the following code display? for (int count = 0; count <= 500; count += 100) {…
A: For loop For loop is the looping statement used to execute a piece of code (or set of statements)…
Q: Allow the user the choice of displaying either a random line or a random word from a file they…
A: Answer is given below .
Q: Costumers do online shopping using ATM cards. The card number contains 16 digits having 4 parts with…
A: Lets analyze what information we are given and what is expected out of it. User Input : Card number…
Q: The intNums array is declared as follows: Dim intNums() As Integer = {10, 5, 7, 2}. Which of the…
A: Calculate the average value Calculate the average of values stored in the intNums array using…
ava problem: Write an application that allows a user to enter the names and birth dates of up to 10 friends. Continue to prompt the user for names and birth-dates until the user enters the sentinel value “ZZZ” for a name or has entered 10 names, whichever comes first.
When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birth-date or an error message if the name has not been previously entered. The loop continues until the user enters “ZZZ” for a name.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Please solve this using java Write an application that allows a user to enter the names and birth dates of up to 10 friends. Continue to prompt the user for names and birth-dates until the user enters the sentinel value “ZZZ” for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birth-date or an error message if the name has not been previously entered. The loop continues until the user enters “ZZZ” for a name.Java Write an application that allows a user to enter the names and birthdates of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value ZZZ for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or "Sorry, no entry for name" if the name has not been previously entered. The loop continues until the user enters ZZZ for a name.Write an application that allows a user to enter the names and birthdates of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value ZZZ for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or "Sorry, no entry for name" if the name has not been previously entered. The loop continues until the user enters ZZZ for a name. import java.util.*; public class BirthdayReminder { public static void main(String[] args) { // Write your code here } }
- Write an application that allows a user to enter the names and birthdates of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value ZZZ for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or "Sorry, no entry for name" if the name has not been previously entered. The loop continues until the user enters ZZZ for a name.Write an application that allows a user to enter the names and birthdays of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value “ZZZ” for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or an error message if the name has not been previously entered. The loop continues until the user enters “ZZZ” for a name. Save the file as BirthdayReminder.java.Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive -integer lower than it. For example, 4 factorial is 4 * 3 * 2 * 1, or 24. Save the file as Factorials.cpp.
- Write an application that determines whether a phrase entered by the user is a palindrome. A palindrome is a phrase that reads the same backward and forward without regarding capitalization, spaces or punctuation. And it will allow the user to enter as many phrases as he likes after each iteration.Write a program which should handle books information for a book shop. It should be able to handle atleast 100 records. Your program should store following information against a book. Book Id (you may use index number as book ID) Book Code Book Name Author Name Publish Date Price No of copies in hand No of Copies sold Initialize 10 Books and initialize remaining with 0 and spaces. Create a menu, as given below, which should use above information to perform selected action from the given menu on the screen Add book (One book will be added. User will enter book id i.e. index number Record will be placed if code at that index is 0) Display book (Display Books in tabular format with nonzero codes only) Delete book (Place an empty record with 0 code and spaces at the selected index) Search book Sale book (First locate the book Id and check if code is not 0 then update No of Copies in hand and No of Copies sold accordingly) Exit Your assignment will be evaluated on the following basis:…Challenge Problem (pyhton) T E S T S C O R E S Write a program that implements a test scores program. Valid test score entries are between 0 and 100 inclusive. The program should display a welcome message and run everything through the "main" function. have the ability to enter several test scores (try a loop) and print out the total score, as well as, the average score. continuously ask for test scores until the number 99.9 has been entered. test for valid entries and the value 99.9. If a test score is valid, the program should add the current score to the total score and update the number of test scores by one (+1), otherwise it displays an error message. Note : This assignment involves the use of a while loop and if-else decision making controls. You CANNOT use the reserved keywords break and continue for any portion of this program or any program for that matter throughout this course.
- A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product3, $9.98; product 4, $4.49 and product 5, $6.87. Write an application that reads a series of pairs of numbersas follows:a) product numberb) quantity soldYour program should use a switch statement to determine the retail price for each product. It should calculateand display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the programshould stop looping and display the final results. give answer in java language sample output: Enter product number (1-5) (0 to stop): 1Enter quantity sold: 5Enter product number (1-5) (0 to stop): 5Enter quantity sold: 10Enter product number (1-5) (0 to stop): 0Product 1: $14.90Product 2: $0.00Product 3: $0.00Product 4: $0.00Product 5: $68.70A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product3, $9.98; product 4, $4.49 and product 5, $6.87. Write an application that reads a series of pairs of numbersas follows:a) product numberb) quantity soldYour program should use a switch statement to determine the retail price for each product. It should calculateand display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the programshould stop looping and display the final results.A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product3, $9.98; product 4, $4.49 and product 5, $6.87. Write an application that reads a series of pairs of numbersas follows:a) product numberb) quantity soldYour program should use a switch statement to determine the retail price for each product. It should calculateand display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the programshould stop looping and display the final results sample output: Enter product number (1-5) (0 to stop): 1Enter quantity sold: 5Enter product number (1-5) (0 to stop): 5Enter quantity sold: 10Enter product number (1-5) (0 to stop): 0Product 1: $14.90Product 2: $0.00Product 3: $0.00Product 4: $0.00Product 5: $68.70