Roman Numerals Write a program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that number. If the number is outside the range of 1 through 10, the program should display an error message. The following table shows the Roman numerals for the numbers 1 through 10:
Q: (Calculating the Product of Odd Integers) Write an application that calculates the product of the…
A: PROGRAM CODE: class Main{ public static void main(String args[]) { int a=1; for(int…
Q: 1. Sum of Numbers Create an application that displays a form similar to the one shown in Figure…
A: vb code is an given below : Public Class Form1 Private Sub Button1_Click(ByVal sender As…
Q: Q3. (Dice Rolling) Write a program that simulates the rolling of two dice. The program should use…
A: Given:
Q: (Financial application: calculate future investment value) Write a program that reads in an…
A: The program is written in Java. Please find the program in step 2.
Q: Land CalculationOne acre of land is equivalent to 43,560 square feet. Design a program that asks the…
A: Since programming language not mentioned, using python.
Q: 1I. Running the Race Write a program that asks for the names of three runners and the time, in…
A: The given problem is related to Java programming where the user will enter 3 names and 3 times in…
Q: 1.Balloon Emporium sells both latex and Mylar balloons. The store owner wants a pro-gram that allows…
A: Answer:-
Q: Speeding Violation Calc Design a program that calculates and displays the number of miles per hour…
A: Actually, algorithm is an step by step process.
Q: Financial application: compare loans with various interest rates) Write a program that lets the user…
A: Actually, program is a executable software that runs on a computer.
Q: Party-On sells individual hot/cold cups and dessert plates for parties. SueChen wants a program that…
A: The Party-On sells individual dessert plates and hot/cold cups for the parties. Create a program to,…
Q: 2. (Phone key pads) The international standard letter/number mapping found on the telephone is shown…
A: The required Java code is given below: import java.util.Scanner;public class Keypad{ public static…
Q: ach trial, you have to inform the user, either he/she has guessed it correctly or not, and the…
A: //Source code in python import random import math //Taking inputs lower=int (input("Enter Lower…
Q: Description Write a program that asks the user to enter an amount of money in the format of dollars…
A: Program: # Asking for a dollar and cent amount from the user # Prompting a message to enter a amount…
Q: (Financial application: compare loans with various interest rates) Write a program that lets the…
A: PROGRAM CODE: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Task4: Write a program that prompts the user to enter a number within the range of 1 through 10. By…
A: In this program we have to write a Linux based program which we can execute using Linux editor Bash…
Q: Q1: b- write a visual basic program that uses a procedure to find how many numbers between N numbers…
A: We need to first read a number (N) and then we need to use the procedure to compute the remainder of…
Q: (Find the lowest price) Write a program that prompts the user to enter the number of items and each…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //get the…
Q: A software company sells a package that retails for $99. Quantity discounts are given below:…
A: Actually, given information: A software company sells a package that retails for $99. Quantity…
Q: C++ Ingredient Adjuster A cookie recipe calls for the following ingredients: 5 cups of sugar 1 cup…
A: C++ Ingredient Adjuster A cookie recipe calls for the following ingredients: 5 cups of sugar 1 cup…
Q: (Financial application: calculate interest) If you know the balance and the annual percentage…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Write a Python program (Console and GUI) that predicts the approximate size of a population of…
A: n = int(input("Starting number of organisms: "))p = float(input("Average daily increase: "))days =…
Q: 2. The following table contains earthquake magnitude ranges on the Richter scale and their…
A: C++ code for the above problem:- #include<iostream>using namespace std;int main(){float…
Q: A prime number is a whole number greater than 1 whose only can be divided by itself and 1. Thus,…
A: code in c++ #include <iostream> using namespace std; int main() { int n, i, m = 0, flag…
Q: (Find the second lowest interger number) Write a program that prompts the user to enter a set of…
A: Note:- Please mention programming language name, This is done in c++. logic:- use while true loop…
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: Dear Student, As no language is mentioned I am doing it in C++.
Q: (Display the day and remaining hours) Write a program that prompts the user to enter the day number…
A: Given:- (Display the day and remaining hours) Write a program that prompts the user to enter the day…
Q: / MovieGuide.cpp - This program allows each theater patron to enter a value from 0 to 4 //…
A: #include <iostream> #include <string> using namespace std; int main() { // Declare…
Q: PEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. DEBUG03-03 // This…
A: To correct the pseudo code there are various while loops which is not necessary as w3e can check it…
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A:
Q: Financial application: calculate tips) Write a program that reads the subtotal and the gratuity…
A: logic:- read subtotal, gratuityRate gratuity=(subtotal*gratuityRate)/100 total=subtotal+gratuity…
Q: (Find the number of days in a month) Write a program that prompts the user to enter the month and…
A: Actually, program is a executable software that runs on a computer.
Q: A. First and Last Design a program that asks the user for a series of names (in no particular…
A: Answer: Here is the python Code : END = "END"#creating a list to store the namesls = []#prompt…
Q: write a program that asks the user to enter the number of packages purchased. the program should…
A: Initially, the package is of $99 If you buy less than 10, no discount If you buy 10-19, the discount…
Q: circles) Write a program that prompts the user to enter the center coordinates and radii of two…
A: Here is the Java program according to the problem given: import java.util.Scanner; public class…
Q: 8. Cookie Calories A bag of cookies holds 40 cookies. The calorie information on the bag claims that…
A: EXPLANATION: - Scanner class is present in util package, hence it is imported. The user is given…
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: Question 7
A: Following is the C++ program and its approach is given below: Declare necessary header files.…
Q: 3. (Palindrome number - A number is a palindrome if it reads the same from right to left and from…
A: A palindrome number can be denoted as a number that is equal to itself when it is reversed. The code…
Q: An online book club awards points to its customers based on the number of books purchased each…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT GIVEN, I HAVE USED C++ FOR THE SOLUTION. Define header…
Q: Irite a program that prompts the user to input an integer between 0 and 35. If the number is less…
A: #include <iostream>#include <iomanip> Below is the code for a given requirement using…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: public class SoftwareSales { public static void main( String[] args ) { Scanner…
Q: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking your…
A: Given: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking…
Q: 1-Write a program that will ask the user to enter an integer number and display the (even and…
A: here in this question we have asked to write a program which take an input integer and based on this…
Q: Sports exercise advisor algorithm. In this algorithm you will start out with a temperature value in…
A: The given requirement is to develop an algorithm for deciding the sports exercise based on the…
Q: (Dice Rolling) Write a program that simulates the rolling of two dice. The program should use rand…
A: #include <stdio.h>#include <stdlib.h>#include <time.h> int main() {…
Q: Software Šales A software company sells a package that retails for $99. Quantity discounts are given…
A:
Q: Question 3 Design a program that allows a user to enter any quantity of numbers until a negative…
A: Since no programming language is mentioned, I have implemented the given requirement in python. The…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Since you have not mentioned the programming language, we have provided the code in Python language.
Q: (Slope of a line) Write a program that prompts the user to enter the coordinates of two points (x1,…
A: Here is the Python program: x1 = float(input("Enter the x-coordinate for point1: "))y1 =…
Q: MovieGuide.cpp - This program allows each theater patron to enter a value from 0 to 4 // indicating…
A: The, code has given below:
language JAVA
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- The following code intends to input a user’s first name, last name, and age.However, it has an error. Fix the code.string fullName;int age;cout << "Enter your first and last name." << endl;cin >> fullName;cout << "Enter your age." << endl;cin >> age;cout << "You are " << age << " years old, " << fullName << endl;Personal BestWrite a program that asks for the name of a pole vaulter and the dates and vaultheights (in meters) of the athlete’s three best vaults. It should then report, in order ofheight (best first), the date on which each vault was made and its height.Input Validation: Only accept values between 2.0 and 5.0 for the heights.Time CalculatorWrite a program that asks the user to enter a number of seconds.-There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes and leftover seconds in that many seconds.-There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours, minutes, and leftover seconds in that many seconds.-There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours, minutes, and leftover seconds in that many seconds.
- Widgets and Gizmos An online retailer sells two products: widgets and gizmos. Each widget weighs 75 grams. Each gizmo weighs 112 grams. Write a program that reads the number of widgets and the number of gizmos in an order from the user. Then your program should compute and display the total weight of the order.Design an application that accepts 10 numbers and displays them in descending order.Sports exercise advisor algorithm. In this algorithm you will start out with a temperature value in Celsius, so you do not need to ask the user for it. First, convert the temperature to Fahrenheit. Then display a recommended sports exercise based on the Fahrenheit temperature as follows: for temperatures between 65 and 80° display tennis, for colder temperatures display ping pong, and for warmer temperatures display canoeing. thanks in advance
- 20. Random Number Guessing GameWrite a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” If the user guesses the number, the application should congratulate the user and generate a new random number so the game can start over.Optional Enhancement: Enhance the game so it keeps count of the number of guesses that the user makes. When the user correctly guesses the random number, the program should display the number of guesses. USE RAPTOR PROGRAMProblem: Feed Nibble Monster Till Full Write a program that generates a number in [0, 500] at the beginning -- this corresponds to how hungry the monster is -- and keeps asking the user to feed the monster until that number falls to zero. Each time the user feeds the monster a nibble, hunger decreases by the decimal value of the character (i.e. if the user feeds 'A' hunger decreases by 65). But when the user feeds the monster some character that isn't a nibble, the hunger increases by the decimal value of the character (since puking depletes energy). Use while loop. Sample runs: Notice the loop exits after one iteration, because hunger was very low and one nibble made the monster full: Notice hunger increasing after non-nibble (pink highlight): Notice that the program just keeps going when the user feeds the monster only non-nibbles. Do you think the program will keep running forever if the user never gives the monster nibbles?Programming Language: Java Direction: Write a program to determine the number of PASSED and FAILED out of 15 inputted names with the corresponding grade. Restrict the inputted grade for each name in the range of 50 to 100, in which 75 is the passing grade. If the inputted grade is not on the range, the program will remind the user of a message for the accepted range for the grade and allows the user to re-enter a grade. NOTE: MUST ADD COMMENTS
- // MovieGuide.cpp - This program allows each theater patron to enter a value from 0 to 4 // indicating the number of stars that the patron awards to the Guide's featured movie of the // week. The program executes continuously until the theater manager enters a negative number to // quit. At the end of the program, the average star rating for the movie is displayed. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables. double numStars; // star rating. double averageStars; // average star rating. double totalStars = 0; // total of star ratings. int numPatrons = 0; // keep track of number of patrons // This is the work done in the housekeeping() function // Get input. cout << "Enter rating for featured movie: "; cin >> numStars; // This is the work done in the detailLoop() function // Write while loop here //…Coin Converter Lab Description Write a program that asks the user to enter an amount of money in the format of dollars and remaining cents. The program should calculate and print the minimum number of coins (quarters, dimes, nickels and pennies) that are equivalent to the given amount.Hint: In order to find the minimum number of coins, first find the maximum number of quarters that fit in the given amount of money, then find the maximum number of dimes that fit in the remaining amount, and so on. File Name coins.py Score There are five tests each worth 2 points For example, an execution should look like this:Please enter the amount of money to convert:# of dollars: 2# of cents: 37The coins are 9 quarters, 1 dimes, 0 nickels and 2 pennies python labsAnagram words Write a C code that asks users to enter two words, one after the other and checks if these words are anagrams (permutations of the same letters). For instance, the words “smartest” and “mattress” are anagrams. Examplea Run 1: Please enter first word: lookplease enter the second word: coolSorry! “cool” and “look” are not anagrams. Run 2: Please enter first word: masters please enter the second word: smartes Yes! “masters” and “smartes” are anagrams. Hint: If you sort the two words that are anagrams, they will become identical! For instance, “smartest” and “masters” both sort to “aemrsstt” You can use all functions in <string.h> Sorting a string is exactly similar to sorting an array. You just need to know the length of the string and make sure you do not touch the terminating null.