Concept explainers
Celsius to Fahrenheit Table
Assuming that C is a Celsius temperature, the following formula converts the temperature to a Fahrenheit temperature (F):
Create an application that displays a table of the Celsius temperatures 0–20 and their Fahrenheit equivalents. The application should use a loop to display the temperatures in a list box.
Want to see the full answer?
Check out a sample textbook solutionChapter 5 Solutions
Starting out with Visual C# (4th Edition)
Additional Engineering Textbook Solutions
Starting Out with C++: Early Objects
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Software Engineering (10th Edition)
C How to Program (8th Edition)
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
- Calories Burned Running on a particular treadmill, you burn 3.9 calories per minute. Create an application that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes. Display the output in a ListBox control. Tuition Increasearrow_forwardTEMPERATURE CONVERTER WEBSITE The user will input a temperature in either Fahrenheit or Celsius and press a "convert" button. The converted temperature will then be displayed with the correct unit. Your Ul should include four main elements: Input field for the user to type in their temperature - don't forget to validate that the input is a number! Dropdown menu or radio button for the user to choose if they are inputting in Celsius or Fahrenheit "Convert" button to trigger the temperature conversion Display area for the final converted temperature and unit For an extra challenge: You can add in a third conversion option to convert from and to Kelvin as well. please Don't Copy from internetarrow_forwardTuition Increase At one college the tuition for a full-time student is $6000 per semester. It has been announced that the tuition will increase by 2 percent each year for the next five years. Create an application with a loop that displays the projected semester tuition amount for the next 5 years in a ListBox control.arrow_forward
- A ListBox control is a container in which data may be stored. How many items are currently stored in this container?arrow_forward# Constants for the menu choices# Constants for the menu choicesPURCHASE_ADULT = 1PURCHASE_CHILD = 2PURCHASE_MOUSE_EARS = 3PURCHASE_PARKING = 4PURCHASE_FOOD = 5PRINT_ALL = 6CALC_TOTAL = 7QUIT_CHOICE = 8# The main function.def main():# The choice variable controls the loop# and holds the user's menu choice. choice = 0 costAdult=0 costKid=0 costEars=0 costPark=0 costFood = 0 while choice != QUIT_CHOICE:# display the menu. display_menu()# Get the user's choice. choice = int(input('Enter your choice: '))# Perform the selected action. if choice == PURCHASE_ADULT: costAdult = purchaseAdult() elif choice == PURCHASE_CHILD: costKid = purchaseKid() elif choice == PURCHASE_MOUSE_EARS: costEars = purchaseEars() elif choice == PURCHASE_PARKING: costPark = purchaseParking(); elif choice == PURCHASE_FOOD: costFood…arrow_forwardDistance ConverterIn the English measurement system, 1 yard equals 3 feet and 1 foot equals 12 inches. Use this information to create an application that lets the user convert distances to and from inches, feet, and yards. Programming Problems 263Figure 4-35shows an example of how the application’s form might appear. In the example, the user enters the distance to be converted into a TextBox. A ListBox allows the user to select the units being converted from, and another ListBox allows the user to select the units being converted to.arrow_forward
- Geometry Calculator Write a program that displays the following menu: Geometry Calculator 1. Calculate the Area of a Circle 2. Calculate the Area of a Rectangle 3. Calculate the Area of a Triangle 4. Quit Enter your choice (1-4): If the user enters 1, the program should ask for the radius of the circle and then display its area. Use the following formula: area = Pi*r^2 Use 3.14159 for and the radius of the circle for r. If the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. Use the following formula: area = length * width If the user enters 3 the program should ask for the length of the triangle’s base and its height, and then display its area. Use the following formula: area = base * height * .5 If the user enters 4, the program should end. Input Validation: Display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. Do not accept negative values for…arrow_forwardJavaarrow_forwardWeb page bill calculator. User inputs the "item name" and "item amount" on the webpage. The webpage will return the total money he need to pay. If the payment is more than 30 dollars, the user can have a 10% off discount. Bill = (item cost )* (# of items) Item cost apple orange peach $1.2 $2arrow_forward
- In this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.arrow_forwardFor each of the following exercises, you may choose to write a console-based or GUI application, or both. Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number of days for a resort stay. Then display the price per night and the total price. Nightly rates are $200 for one or two nights; $180 for three or four nights; $160 for five, six, or seven nights; and $145 for eight nights or more.arrow_forwardPopulationCreate an application that predicts the approximate size of a population of organisms. The application should use text boxes to allow the user to enter the startingnumber of organisms, the average daily population increase (as a percentage), andthe number of days the organisms will be left to multiply. For example, assume theuser enters the following values:Starting number of organisms: 2Average daily increase: 30%Number of days to multiply: 10The application should display the following table of data in a ListBox control:Day Approximate Population1 22 2.63 3.384 4.3945 5.71226 7.425867 9.6536198 12.54979 16.3146210 21.209arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,