Scientists measure an object’s mass in kilograms and its weight in Newtons. If you know the amount of mass of an object, you can calculate its weight, in Newtons, with the following formula: Weight = Mass × 9.8Create an application that lets the user enter an object’s mass and then calculates its weight. If the object weighs more than 1000 Newtons, display a message indicating that it is too heavy. If the object weighs less than 10 Newtons, display a message indicating that it is too light.
Q: Question: Party budget planning - complex Prompt the user to enter their current budget and the…
A: You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3
Q: handler: This method retrieves whatever the user has typed into the upper entry, converts it into an…
A: import tkinter as tkfrom tkinter import messageboxdef getAge(years): if years <= 0:…
Q: Three-letter acronyms are common in the business world. For example, in Java you use the IDE…
A: import java.util.*; public class ThreeLetterAcronym{ public static void main(String []args){…
Q: Also, workers in skill level 3 can elect to participate in the retirement plan at 3% of their gross…
A: Note: Comments mentioned in the code for understandability. In the implementation: If skill level…
Q: Magic Dates The date June 10, 1960, is special because when it is written in the following format,…
A: Program Plan: Input month, day, and year from the user. Determine whether the month times the day…
Q: You can divide the code for an application into logical parts by moving some of the code from the…
A: In Programming writing all the code inside main() method is not recommended. When ever possible we…
Q: Java Write an application that determines whether a phrase entered by the user is a palindrome. A…
A: The complete code along with the comments and attached output is given below.
Q: ** THE CODE SHOULD BE IN JAVA** Assume that the population of Mexico is 128 million and that the…
A: Java Program for above : class Prog{ public static void main (String[] args){ double…
Q: Visual Studio 2017 Using C#. How to write this in C#. The problem is : A software company sells a…
A: Answer:
Q: What is the java code for: Use the following statement to generate and use a dialog box that…
A: Note: The code is executed in Java Eclipse.The program is written as per the requirements of the…
Q: In physics, an object that is in motion is said to have kinetic energy. The following formula can be…
A: Program: #include <iostream>using namespace std;double kineticEnergy(double mass, double…
Q: Kinetic Energy In physics, an object that is in motion is said to have kinetic energy. The following…
A: Program: #include <iostream>using namespace std;double kineticEnergy(double mass, double…
Q: Inches ToCentimeters program to an interactive application named InchesToCentimeterslnteractive.…
A: Note: since program language is not specified, we are providing answer in cpp #include…
Q: The following method DisplayValuedisplays the variable value in a messagebox in the following format…
A: Code: private void DisplayValue(decimal value) { MsgBox("The Value is " & value) }
Q: 2) Write pseudocode that performs the following: Ask a user to enter a number. If the number is…
A: Declare Number as integer Accept Number from user if number >=0 and number <=10 then print…
Q: When an object is falling because of gravity, the following formula can be used to determine the…
A: To perform the given task, an application in C++ language will be developed by following the below…
Q: A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an…
A: import java.util.ArrayList;import java.util.List;import java.util.Scanner; public class Main {…
Q: Write an application that asks a user to enter an integer. Display a statement that indicates…
A: Java program that prompts the user to enter an integer value. Then check if the user entered number…
Q: In Chapter 4, you created a Die application that randomly “throws” five dice for the computer and…
A: public class FiveDice2 { /** * Application that randomly "throws" five dice for the computer and…
Q: Also, workers in skill level 3 can elect to participate in the retirement plan at 3% of their gross…
A: Actually, java is a object oriented programming language. The given information: Skill Level Hourly…
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: A code in c++ or python A program that asks you to enter the name of a movie or series, and then…
A: #using python#asking user to enter movie or series namename = input('Enter name of a…
Q: C# Question Create a desktop application that allows the user to enter a maximum integer. The…
A: Steps to create a C# Windows Form Application Open visual Studion C# Windows Application Create a…
Q: Computer Science Build an application which checks eligibility to enter a party venue. Prompts the…
A: Younger than 18 is denied entry Between 18 and 35 is allowed entry 35 and older is too old. Extend…
Q: This question requires that you evaluate the underlined text to determine if it is correct. You are…
A: Required: This question requires that you evaluate the underlined text to determine if it is…
Q: A store is having a (Buy One, Get One Half Off) sale. The store manager wants an application that…
A: Code : Public Class frmMainPrivate Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles…
Q: write an application that creates a quiz.
A: Program: // java version 7import javax.swing.JOptionPane;// class declaration for Quiz gamepublic…
Q: JAVA Create an application that allows you to enter the amount of purchase and then display the…
A: The complete code is given below with detail output.
Q: what will be displayed when you run the code ? a=0;while a<10; value = %2.2f',a) a=a+3;…
A: The while loop evaluates an expression, and repeats the execution of a group of statements in a loop…
Q: Write an application in Visual Studio with C# that handles a student report card. The application…
A:
Q: Write an application that determines whether a phrase entered by the user is a palindrome. A…
A: Input : str = "madam Im adam" Output : Sentence is palindrome. Input : str = "welcome to java"…
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A: PROGRAM CODE: import java.util.*; // import utility package of javapublic class…
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: Code: import java.util.Scanner;public class CookieCalorieCounter{ public static void main(String[]…
Q: PLEASE USE FLOWGORITHM DOES NOT HAVE TO BE COMPLEX In Chapter 2 you learned that in many…
A: Here is the answer with explanation:-
Q: A Paint Company has asked you to write an application that calculates the quantity and price of…
A: Required: C++ program to calculate the quantity and price of Paint required to a paint for…
Q: blem: Meal gift card. Your favorite campus restaurant sells meals for $13 each meal. The restaurant…
A: Note: Answering the question in java as no language is mentioned. Input : Amount value. Output :…
Q: write the pseudo-code for the above-given scenario
A: Given: Assume you are one of the programmers in the IT firm. You have assigned the application…
Q: uppose you have a certain amount of money in a savings account that earns compound monthly…
A: According to the information given:- We have to follow the instruction to get desired outcome.
Q: cation that prompts a user for the number of years the user has until retirement and then the amount…
A: Code: import java.util.Scanner;public class Main{ public static void main (String[] args) {…
Q: You can use the addition operator (+) in several ways in JavaScript. However, you CANNOT use the…
A: We can use the addition operator (+) in several ways in JavaScript such as :- 1. Number + Number =…
Q: Three-letter acronyms are common in the business world. For example, in Java you use the IDE…
A: Approach Built-in methods used: toUpperCase() length() charAt()
Q: Assume that the population of Mexico is 128 million and that the population increases 1.01 percent…
A: public class Population { privatestaticdoubleMexico = 128.0; // initial population of Mexico…
Q: There are 3 parts to each question. Please give me the code for all the 3 parts . Any kind of help…
A: Programming language is missing in the question. So we will answer this program in Python. If you…
Q: Also, workers in skill level 3 can elect to participate in the retirement plan at 3% of their gross…
A: kindly check the step 2 for code and step 3 for output
Q: Scientists measure an objects mass in Kilograms and its weight in newtons. If you know the mass of…
A: Here I have created 3 functions getInput() , calculateWeight(), and showResult(). getInput()…
Q: Property Tax If you own real estate in a particular county, the property tax that you owe each year…
A:
Q: Project 10-3: Interest Calculator Create a program that calculates the interest on a loan. This…
A: Below is the solution, we have used import of regular index to index K and make it 100.
Q: If you execute the following code, what will it display if the user enters 5? 15? 30? −1? int…
A: GIVEN: If you execute the following code, what will it display if the user enters 5? 15? 30? −1? int…
Q: JAVA Guess-the-Number Game Write an application that plays “guess the number” as follows: Your…
A: The code is given in next step:-
Scientists measure an object’s mass in kilograms and its weight in Newtons. If you know the amount of mass of an object, you can calculate its weight, in Newtons, with the following formula:
Weight = Mass × 9.8
Create an application that lets the user enter an object’s mass and then calculates its weight. If the object weighs more than 1000 Newtons, display a message indicating that it is too heavy. If the object weighs less than 10 Newtons, display a message indicating that it is too light.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. The next problems rely on the generation of a random number. You can create a random number that is at least mi n but less than max using the following statements: Random ranNumberCenerator = new Random(); int randomNumber; randomNumber = ranNumberGenerator .Next(min, max);Kinetic Energy In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a moving object’s kinetic energy: KE =1/2mv2 In the formula KE is the kinetic energy, m is the object’s mass in kilograms, and v is the object’s velocity in meters per second. Create an application that allows the user to enter an object’s mass and velocity and then displays the object’s kinetic energy. The application should have a method named KineticEnergy that accepts an object’s mass (in kilograms) and velocity (in meters per second) as arguments. The method should return the amount of kinetic energy that the object has.Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d =1/2gt2 The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time in seconds that the object has been falling. Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a method named FallingDistance. The FallingDistance method should accept an object’s falling time (in seconds) as an argument. The method should return the distance in meters that the object has fallen during that time interval.
- In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a moving object’s kinetic energy:KE = 1/2 mv2In the formula KE is the kinetic energy, m is the object’s mass in kilograms, and v is the object’s velocity in meters per second. Create an application that allows the user to enter an object’s mass and velocity and then displays the object’s kinetic energy. The application should have a method named KineticEnergy that accepts an object’s mass (in kilograms) and velocity (in meters per second) as arguments. The method should return the amount of kinetic energy that the object has.Carpet Calculator The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms. To calculate the price, you multiply the area of the floor (width times length) by the price per square foot of carpet. For example, the area of floor that is 12 feet long and 10 feet wide is 120 square feet. To cover that floor with carpet that costs $8 per square foot would cost $960. First, you should create a class named RoomDimension that has two fields: one for the length of the room and one for the width. The RoomDimension class should have a method that returns the area of the room. (The area of the room is the room’s length multiplied by the room’s width.) Next you should create a RoomCarpet class that has a RoomDimension object as a field. It should also have a field for the cost of the carpet per square foot. The RoomCarpet class should have a method that returns the total cost of the carpet. Figure 8-20 is a UML…Property Tax If you own real estate in a particular county, the property tax that you owe each year is calculated as 64 cents per $100 of the property’s value. For example, if the property’s value is $10,000, then the property tax is calculated as follows: Tax = $10,000 ÷ 100 × 0.64 Create an application that allows the user to enter a property’s value and displays the sales tax on that property.
- When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period:d =1/2 gt2The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time in seconds that the object has been falling. Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a method named FallingDistance. The FallingDistance method should accept an object’s falling time (in seconds) as an argument. The method should return the distance in meters that the object has fallen during that time interval.Python programming language You will be creating an application to calculate the maximum amount of contribution a person can make to a Roth IRA based on their age and income. Over 50 years old and your contribution limit goes up from $6000 to $7000 dollars. However, if the person is married and the combined household income is over $206,000 a year, or a single person with income over $139,000, you are not allowed to contribute. Write an application that asks the user their age and their income. Using this information use a nested if statement to calculate the maximum allowable contribution.Retail Price Calculator Create an application that lets the user enter an item's wholesale cost and its markup percentage. It should then display the items retail price. For example: If an item's wholesale cost is $5.00 and its markup percentage is 100 percent, then the item's retail price is $10. If an item's wholesale cost is $5.00 and its markup percentage is 50 percent, then the item's retail price is $7.50. The program should have a method named CalculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item. In addition, there should be the name of the Wholesale Company displayed (be creative). If the cost is over $500, display a $20 discount on the retail price. For example: If an item's wholesale cost is $600.00 and its markup percentage is 100 percent, then the item's retail price is $1,180. ( Markup = $600 * 100% = 600 Retail Price = $600 + $600 - $20 (wholesale cost + markup - discount)
- Retail Price Calculator Create an application that lets the user enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is $5.00 and its markup percentage is 100 percent, then the item’s retail price is $10.00. • If an item’s wholesale cost is $5.00 and its markup percentage is 50 percent, then the item’s retail price is $7.50. The program should have a method named CalculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item.Create an application that calculates a car’s gas mileage. The formula for calculating the miles that a car can travel per gallon of gas is: MPG=milesgallonsIn the formula MPG is miles-per-gallon, miles is the number of miles that can be driven on a full tank of gas, and gallons is the number of gallons that the tank holds. The application’s form should have TextBox controls that let the user enter the number of gallons of gas the tank holds and the number of miles the car can be driven on a full tank. When the Calculate MPG button is clicked, the application should display the number of miles that the car can be driven per gallon of gas. The form should also have a Clear button that clears the input and results, and an Exit button that ends the application. If the user fails to enter numeric values, display an appropriate error message and do not attempt to perform calculations.Assuming there are no accidents or delays, the distance that a car travels down an interstate highway can be calculated with the following formula: Distance = Speed × TimeCreate an application that allows the user to enter a car’s speed in miles per hour.The application should have buttons that display the following:• The distance the car will travel in 5 hours• The distance the car will travel in 8 hours• The distance the car will travel in 12 hours