In Exercises 1 through 52, determine the output produced by the lines of code.
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
Pearson eText for Introduction to Programming Using Visual Basic -- Instant Access (Pearson+)
Additional Engineering Textbook Solutions
C Programming Language
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Starting Out with Java: Early Objects (6th Edition)
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Starting Out with C++: Early Objects
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
- In exercises 17 and 18,write each algebraic expression without parentheses. 17. -(5x – 13y –1) 18.arrow_forwardVB Small Project 16 – Function Pattern this Visual Basic program after Small Project 15: Main() Create the random number in the same way. EvenOrOdd Function() Pass that number into this function, where it will be found to be either Even or Odd. Return a value indicating which one that will be used back in Main. DisplayResults Sub The result from the EvenOrOdd Function is passed into this Sub and the same results as from SP 15 will be printed.arrow_forwardthe huntington high school basketball team has five players named art, bob, cal, dan, and eli. accept the number of points scored by each player in a game and create a bar chart that illustrates the points scored, similar to the chart in figure.arrow_forward
- The Ladies Professional Golfers Association (LPGA) maintains statistics on performance and earnings for members of the LPGA Tour. Year-end performance statistics for the 30 players who had the highest total earnings in LPGA Tour events for 2005 appear in the file named LPGATour (LPGA Tour website, 2006). Earnings ($1000) is the total earnings in thousands of dollars; Scoring Avg. is the average score for all events; Greens in Reg. is the percentage of time a player is able to hit the green in regulation; Putting Avg. is the average number of putts taken on greens hit in regulation; and Sand Saves is the percentage of time a player is able to get “up and down” once in a greenside sand bunker. A green is considered hit in regulation if any part of the ball is touching the putting surface and the difference between the value of par for the hole and the number of strokes taken to hit the green is at least 2. Develop an estimated regression equation that can be used to predict the average…arrow_forwardLAB ASSIGNMENTS IMPORTANT: you should complete the PDP thinking process for each program. Turn in items: 1) fullname_regex.py - Ask the user to enter the source text to search, such as the name_source variable here: name_source=input('Enter full name in this format - first middle last'). Then, you can adapt the first two code lines from lesson slide 13, to search this new source. Edit the code to match the new situation and change the regex pattern to identify text that could be a full name. Hints: Initially write your regex pattern to check if the user enters three words separated by a space. Then, strive to make the regex adaptable if the person's full name has more than or less than 3 words. Then, think about allowing!!! (not requiring) common characters like a period, hyphen or '. Slides 11-13 should be helpful. For printing, end with a conditional block that provides an appropriate message if there is a match or not. Match No Match Challenge 1 Enter your full name: first middle…arrow_forwardLAB ASSIGNMENTS IMPORTANT: you should complete the PDP thinking process for each program. Turn in items: 1) fullname_regex.py - Ask the user to enter the source text to search, such as the name_source variable here: name_source = input('Enter full name in this format - first middle last'). Then, you can adapt the first two code lines from lesson slide 13, to search this new source. Edit the code to match the new situation and change the regex pattern to identify text that could be a full name. Hints: Initially write your regex pattern to check if the user enters three words separated by a space. Then, strive to make the regex adaptable if the person's full name has more than or less than 3 words. Then, think about allowing (not requiring) common characters like a period, hyphen or '. Slides 11-13 should be helpful. 08 For printing, end with a conditional block that provides an appropriate message if there is a match or not. Match Enter your full name: first middle last Betty Lou Who…arrow_forward
- LOGICAL EXPRESSIONS #15 SURGERY_DATE is a datetime column that stores the dates on which surgeries were performed. The time stored is midnight. Which of the following will return TRUE for surgeries performed in 2016 and FALSE for all other surgeries? SELECT ONE OF THE FOLLOWING A. SURGERY_DATE BETWEEN '31 DEC 2015' AND '31 DEC 2016' B. SURGERY_DATE BETWEEN '31 DEC 2015' AND '1 JAN 2017' C. SURGERY_DATE BETWEEN '1 JAN 2016' AND '31 DEC 2016' D. SURGERY_DATE BETWEEN '1 JAN 2016' AND '1 JAN 2017'arrow_forwardPROGRAMMING PROBLEM The inventory of a shoe store lists shoes by stock number. With each stock number, there is associated a style number in the range of 0 to 50, the number of pairs in each size (sizes range from 3 to 14) and a price. A program is to be written to keep track of the inventory. The user is given the following choices: enter a new record, display a record, change the price of the stock item, or change the number on hand. When specifying a record the user may give either the stock number, or the style number. The array index can be used as a stock number. If the user decides to change the stock on hand, the program should ask which sizes will have their stock on hand changed. The program should be designed to run indefinitely, keeping track of changed in stock.arrow_forwardWhich part of a paragraph often illustrates the point being made?arrow_forward
- bläi 10 Design the following program, so that the first button (Insert) adds the items to the list box from the textbox, the second (Delete) removes the items from the list box based on the text written in the textbox and the last button(clear) .cleans the textbox Form1 Insert Delete Ceararrow_forwardQuestion 9 Not complete Marked out of 1.00 Flag question A unique bid auction accepts an unlimited number of bids from many customers (each of whom pay a small amount to place each bid), and the winning bid is the lowest bid which is submitted by just one person (i.e. the lowest unique bid). Define a function called winning_bid (bids_list) which takes as input the list of all bids that have been made in the auction. The value returned by your function should be the lowest unique bid. If there is no lowest unique bid (in other words, if all bids appear more than once) then the function should return -1. For example, given the following bids: [3, 7, 5, 6, 3, 4, 8, 4, 5, 8, 12, 11] the winning bid is 6 as it is the lowest unique bid (because 3, 4 and 5 all appear more than once in the list of bids). For example: Test print (winning_bid([1, 2, 3, 4, 5])) print (winning_bid([1, 2, 1, 4, 5])) print(winning_bid([1, 2, 1, 2, 5])) print(winning_bid([1, 1, 1, 4, 1])) Result 1 2 5 4arrow_forward4. Contoso Workshops Modify the Contoso Workshops assignment from Chapter 3. The modified program takes as input the number associated with the workshop choice and the number associated with the location choice. The program will calculate and display the registration fee, lodging cost, and Total for the selected workshop and location. You will use three functions for this program. One function will display the Workshop and Lodging menus and return the menu choices for each, a second function will calculate and return the lodging cost, and a third function will calculate and return the Total Cost. The tables below show the workshops and lodging information. Be sure to define a main function. Workshop Number of Days Registration Fee Handling Stress 3 $2,000 Time Management 3 $800 Supervision Skills 3 $1,500 How to Interview 1 $500 Lodging Location Lodging Fees per Day Austin $150 Chicago $225 Phoenix $175…arrow_forward
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
- New Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage LearningCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L