Concept explainers
On paper, write a
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
INTERNATIONAL EDITION---Engineering Mechanics: Statics, 14th edition (SI unit)
SURVEY OF OPERATING SYSTEMS
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Starting Out With Visual Basic (8th Edition)
Problem Solving with C++ (10th Edition)
Degarmo's Materials And Processes In Manufacturing
- Suppose one of your friends, who paints the insides of houses, has asked you to develop a program that determines and displays how much paint is needed to paint a room if the length and width of the room is input. What information are you lacking that you need to write this program? Write at least three questions that you would need to ask your friend before starting the project.arrow_forwardPlease help by using Java Script Note:- Do not provide handwritten solution. Maintain accuracy and quality in your answer. Take care of plagiarism.Answer completely.You will get up vote for sure.arrow_forwardAny help with this first problem would be really helpful! Thank you so much!! Please display a screenshot of the code so I see the correct format and learn the proper way. Thank you!! 1. Write the following exercise using Java code. Add comments in each program to explain what your code is doing. Write a program that generates a two-column table showing Fahrenheit temperatures from -40F to 120F and their equivalent Celsius temperatures. Each line in the table should be 5 degrees F more than the previous one. Both the Fahrenheit and Celsius temperatures should be accurate to 1 decimal place.arrow_forward
- Write a program that promotes the user to enter the number of students and each student's name and score ,and finally displays the student with the highest score and the second highest score.arrow_forwardjava Write a program that prompts the user to enter a point (x, y) and checks whether the point is within the rectangle centered at (0, 0) with width 10 and height 5. For example, (2, 2) is inside the rectangle and (6, 4) is outside the rectangle, as shown in the Figure. (Hint: A point is in the rectangle if its horizontal distance to (0, 0) is less than or equal to 10 / 2 and its vertical distance to (0, 0) is less than or equal to 5 / 2.) Here are sample runs of the program: Sample 1: Enter a point with two coordinates: 2 2 Point (2.0, 2.0) is in the rectangle Sample 2: Enter a point with two coordinates: 6 4 Point (6.0, 4.0) is not in the rectangle Analysis: (Describe the problem including input and output in your own words.) Design: (Describe the major steps for solving the problem.) Coding: (Go over your code step by step) Testing: (Describe how you test this program). In other words run your code with sample outputs.arrow_forwardAll programs must include introductory comments as well as comments all throughout the program. The introductory comment should include your name, the class name with section (e.g. CS 101 -24900), the program name, and a brief description of the program. No need for pseudocode anymore! Write your program in C++ with Visual Studio, or an online compiler - compile, and execute it. For visual studio users; Don't forget to use the system ("pause") before the "return" statement at the end of your program. Program: The annual fee of inflation is the rate at which money loses its value. For example, if the annual rate of inflation is 3.0 percent, then in one year it will cost $1,030 to buy the goods that would have been purchased for $1000 today. Put another way, a year from now $1,000 will only buy 1/1.03 * $1,000, or $970.87, worth of goods. Two years from now, $1,000 will only buy only 1/1.03 of $970.87, or 942.59 worth of goods. Write a program that allows the user to enter an…arrow_forward
- Part A In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they were born. Here is a sample execution of the program with the user input in bold: What is your name? Amanda How old are you? 15 Hello Amanda! You were born in 2005. Write the program. Format your code using best practices. Refer to the zyBooks style guide, if needed, to use proper naming conventions for variables and methods. Use the most appropriate statements with minimal extraneous elements, steps, or procedures. Run the program. Debug the program. Be sure your code produces the correct results. Save and submit your file. This is the work that I have to do, but when I run the code, the only output I get is "What is your name?". Why isn't the rest of the output showing up?arrow_forwardCreate a program that allows the user to enter a person's age (in years) and current salary. Both Next, you plan the algorithm and then desk-check it. Figure 8-15 shows the completed IPO algorithm contains two loops. The outer loop keeps track of the three annual raise rates (3%, 4%, chart and desk-check table, which (for simplicity) uses an age of 62 and a salary of $25000. The before retirement at age 65, using annual raise rates of 3%, 4%, and 5%. To calculate then for the input. In this case, the program should display a person's total earnings in Figure 8-15. You begin by analyzing the problem, looking first for the output and In this lab, you will plan and create an algorithm for the problem specification shown Frepure 8-15 Problem specification, IPO chart, and desk-check table for the retirement algorithm (continues) and 5%). The nested loop keeps track of the number of years until retirement. the amounts, the program will need to know the person's age and current salary. The…arrow_forwardIn python Make your own star on the Hollywood Walk of Fame. Write a program that displays a star similar to the one shown in Figure 13-43, with your name displayed in the star. Figure 13-43 is in photo.arrow_forward
- create same type of program using any language Put your name on the form in the Programmer label.. This project is to help someone calculate how much it will cost to put in wall-to-wall carpeting in their house (it will handle 1 or more rooms). First, you need to add the code for the Calculate button to calculate the appropriate charges for one room (as shown under Room Results on the form. For now, ignore the House Results). To do this: Set up 4 Double variables within the calculate click procedure, for the 2 input values (length and width of the room), and the 2 output values (area and cost to carpet the room). Get the length and width from the form by using assignments to copy the values from the text properties into the variables just declared. Have a series of assignment statements to do the calculations. – i.e. to calculate the area and cost (the variable costPerSqFoot already has a number in it – either 2.99, 5.99 or 8.99) - e.g. lblCost.Text = area * costPerSqFoot Finally,…arrow_forwardCreate a program where a user guesses whether the value of the sum of two dice will be even or odd. The game will stop when the number of turns has reached 5. To guess odd, the user enters 1. To guess even, the user enters 2. After each roll, the program should display the two numbers rolled,the sum of the numbers, the user's guess as "Even" or "Odd" and whether they won or lost. Once the player ends the game, the program should display the number of times played and the number of turns won and lost and the number of times the dice were even/odd. Technical Requirements: Must use the random function for each die Use a loop to play the game for 5 turns Use an array to track each roll as to whether it was even or oddarrow_forwardWrite in Python on Visual Code, the money collection interface for the coffee vending machine. Your program should tell the user the price of the item and then the user will enter the amount of money that they are paying (this simulates them actually inserting cash). If the money collected is less than the price, print an appropriate message (such as: “Insufficient funds, no sale!”) and then the program should exit. If enough money is collected, determine the amount to return to the customer. If the change due is not zero, tell the user how much change they will receive. Next print a message (such as “Thank you – enjoy your coffee !”) and end the program normally. Note, your program should be able to handle all amounts of money (not just multiples of dollars but also cents such as $1.25). Also you may assume that the user is only entering a number and not the $ (though the $ could be part of your prompt).Hint: Check how to do floating point comparisons!arrow_forward
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,