Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 1, Problem 9E
From 1925 through 1963, Burma Shave advertising signs appeared next to highways all across the United States. There were always four or five signs in a row containing pieces of a rhyme, followed by a final sign that read "Burma Shave." For example, one set of signs that has been preserved by the Smithsonian Institution reads as follows:
Shaving brushes
You'll Soon See 'em
On a shelf
In some museum
Burma Shave
Find a classic Burma Shave rhyme on the Web and write a
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
One interesting application of computers is drawing graphs and bar charts (sometimes called histograms). Write a script that reads five numbers between 1 and 30. For each number read, output HTML5 text that displays a line containing the same number of adjacent asterisks. For ex- ample, if your program reads the number 7, it should output HTML5 text that displays *******.
in python
In Ana's theater, each chair is labeled with a letter followed by an integer. Given integers num_rows and num_columns, output the label for each chair, followed by a space. End each row with a newline.
Write a program that displays twocircles with radius 10 at location (40, 40) and (120, 150) with a line connectingthe two circles, as shown in Figure . The distance between the circlesis displayed along the line. The user can drag a circle. When that happens, thecircle and its line are moved, and the distance between the circles is updated.
Chapter 1 Solutions
Microsoft Visual C#
Ch. 1 - Programming languages such as C#, Java, and Visual...Ch. 1 - Prob. 2RQCh. 1 - The grammar and spelling rules of a programming...Ch. 1 - Prob. 4RQCh. 1 - Programs in which you create and use objects that...Ch. 1 - Prob. 6RQCh. 1 - The technique of packaging an objects attributes...Ch. 1 - Of the following languages, which is least similar...Ch. 1 - Prob. 9RQCh. 1 - The C# method that produces a line of output on...
Ch. 1 - Prob. 11RQCh. 1 - Prob. 12RQCh. 1 - Prob. 13RQCh. 1 - Prob. 14RQCh. 1 - Prob. 15RQCh. 1 - Prob. 16RQCh. 1 - The text of a program you write is called...Ch. 1 - Prob. 18RQCh. 1 - Prob. 19RQCh. 1 - Prob. 20RQCh. 1 - Indicate whether each of the following C#...Ch. 1 - Name at least three attributes that might be...Ch. 1 - Prob. 3ECh. 1 - Prob. 4ECh. 1 - Prob. 5ECh. 1 - Prob. 6ECh. 1 - Prob. 7ECh. 1 - Write a program named BigLetter that displays a...Ch. 1 - From 1925 through 1963, Burma Shave advertising...Ch. 1 - Each of the following files in the Chapter.01...Ch. 1 - The case problems in this section introduce two...Ch. 1 - The case problems in this section introduce two...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write a program named BigLetter that displays a large letter composed Of smaller letters. For example, if you choose H, then the output should look similar to the image shown in Figure 1-20.arrow_forwardCreate an application that generates a histogram so you can examine the frequency distribution of a collection of values visually. A random number of integers between 1 and 100 inclusive should be entered into the programme. After that, it should generate a chart like the one below, showing how many input values went between 1 and 10, 11 to 20, and so on.For each number entered, print one asterisk. 1 - 10 | ***** 11 - 20 | ** 21 - 30 | ******************* 31 - 40 | 41 - 50 | *** 51 - 60 | ******** 61 - 70 | ** 71 - 80 | ***** 81 - 90 | ******* 91 – 100 | ********arrow_forwardMany companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following way: A, B, and C = 2 D, E, and F = 3 G, H, and I = 4 J, K, and L = 5 M, N, and O = 6 P, Q, R, and S = 7 T, U and V = 8 W, X, Y, Z = 9 Write a program that asks the user to enter a telephone number. The program should display the telephone number with all alphabetic characters that appeared in the original translated to their numeric equivalent. Do not translate characters other than letters. Ex: If the input is: 555-GET-food the output is: 555-438-3663 Pythonarrow_forward
- Create a simple guessing game, similar to Hangman, in which the user guessesletters and then attempts to guess a partially hidden phrase. Display a phrase inwhich some of the letters are replaced by asterisks: for example, G* T*** (for GoTeam). Each time the user guesses a letter, either place the letter in the correctspot (or spots) in the phrase and display it again or tell the user the guessed letteris not in the phrase. Display a congratulatory message when the entire correctphrase has been deduced. Save the game as SecretPhrase.java. In the nextchapter, you will modify this program so that instead of presenting the user withthe same phrase every time the game is played, the program randomly selects thephrase from a list of phrases. Professor's note: "HINT on Lab #4 : Be sure to check for UPPER & LOWER Case entries from the User when they enter guessed characters for your phrase."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_forwardWrite a program in Python on Visual Code, that displays the various coffee drinks your vending machine offers along with the option number for each drink. Beside each option include the price (you can set the cost for the small, the costs for medium should be 2 times the cost of the small and the cost of the large should be 3 times the cost of the small). These are some of the options you could choose from. 1.Espresso (Small $1.75 , Medium $3.50, Large $5.25) 2.Americano (Small $1.75 , Medium $3.50, Large $5.25) 3.Café au Lait (Small $1.75 , Medium $3.50, Large $5.25) 4.Latte (Small $1.75 , Medium $3.50, Large $5.25) 5.Cappuccino (Small $1.75 , Medium $3.50, Large $5.25) 6.Macchiato (Small $1.75 , Medium $3.50, Large $5.25) 7.Mocha (Small $1.75 , Medium $3.50, Large $5.25) For example: Then prompt the user for their drink selection and enter their selection. Record the cost of the small drink into a variable that will be used to compute the amount due. Display a message such as “You…arrow_forward
- Write a program that can be used by a small theater to sell tickets for performances. The theater’s auditorium has 15 rows of seats, with 30 seats in each row. The program should display a screen that shows which seats are available and which are taken. For example, the following screen shows a chart depicting each seat in the theater. Seats that are taken are represented by an * symbol, and seats that are available are represented by a # symbol: Seats 123456789012345678901234567890 Row 1 ***###***###*########*****#### Row 2 ####*************####*******## Row 3 **###**********########****### Row 4 **######**************##****** Row 5 ********#####*********######## Row 6 ##############************#### Row 7 #######************########### Row 8 ************##****############ Row 9 #########*****############**** Row 10 #####*************############ Row 11 #**********#################** Row 12 #############********########* Row 13 ###***********########**###### Row 14…arrow_forwardThere are small examples online of programs written in Go. Go (no pun intended!) to http://golang.org and in the Examples drop-down box below the code window, select Fibonacci Closure. Click Pop Out to get a bigger window to see the code. The Fibonacci sequence is a famous sequence of numbers invented by Leonardo Fibonacci in the year 1202 to model the population growth of rabbits. The first two numbers in the sequence are 1, 1. Successive numbers in the sequence are obtained by adding the two previous numbers. For example, the third Fibonacci number is the sum of the first two Fibonacci numbers, . Write the first six numbers in the Fibonacci sequence. Compile and run the Fibonacci Closure Go program. What is the output? Some of the Go syntax is similar to C/C++. How does Go indicate comments? One bit of C/C++ syntax is missing from Go. On the FAQ page, what does it say about ending statements with semicolons? Can you guess the semantics (meaning) of the following statement?…arrow_forward***Microsoft Visual Studios (C++)*** Write a program that given two coordinate pairs and a third single coordinate will linearly interpolate or extrapolate the third second coordinate. For example, let's say at 50 degrees Celsius the length of a metal rod is 5.4 cm and at 60 degrees Celsius the length is 5.5cm. I can interpolate the length at 53 degrees Celsius by doing 5.4cm + 3*(.1/10)=5.43cm. Your program does not need to continuously run, but should prompt the user for two coordinate pairs, the third first coordinate and return the extrapolated or interpolated third second coordinate.arrow_forward
- Write a program that displays a new larger circle with a left mouse click and removes the largest circle with a right mouse click, as shown in Figure 9.35.arrow_forwardWrite a program that uses a bar chart to display the percentagesof the overall market share represented by Apple, HTC, Samsung, andOthers, as shown in Figure . Suppose that Apple takes 20 percent and isdisplayed in red, HTC takes 26 percent and is displayed in blue, Samsung takes28 percent and is displayed in green, and the Others take 26 and are displayedin orange. Use the Rectangle class to display the bars. Interested readers mayexplore the JavaFX BarChart class for further study.arrow_forwardJavaRock Paper Scissors Lizard SpockRock Paper Scissors Lizard Spock is a variation of the common game Rock Paper Scissors that isoften used to pass time (or sometimes to make decisions.) The rules of the game are outlinedbelow:• Scissors cuts Paper• Paper covers Rock• Rock crushes Lizard• Lizard poisons Spock• Spock smashes Scissors• Scissors decapitates Lizard• Lizard eats Paper• Paper disproves Spock• Spock vaporizes Rock• Rock crushes ScissorsWrite a program that simulates the game of Rock Paper Scissors Lizard Spock!• The user should be able to enter Strings for each of their choices (e.g. “Rock” for Rock,“Paper” for Paper etc…).o The code should also ensure that the user only enters the strings Rock, Paper orScissors (and they should be able to enter upper or lower case versions).§ Use a while loop with the equalsIgnoreCase method from the String classfor best results!• The computer should generate a random value 0, 1, 2, 3, or 4 that would be translatedinto Rock, Paper,…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Java random numbers; Author: Bro code;https://www.youtube.com/watch?v=VMZLPl16P5c;License: Standard YouTube License, CC-BY