Starting Out With Visual Basic (8th Edition)
8th Edition
ISBN: 9780135204658
Author: Tony Gaddis, Kip R. Irvine
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 4, Problem 1AW
Explanation of Solution
Decision structure:
Explanation:
The above flowchart is used to demonstrate the cooking of pizza. The pizza is cooked on the basis of two conditions...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
write flowchart and pseudo code for that:
If the user chooses this option then the user needs to enter the required information for the book except for the number of borrowed books as that one should be made to 0 when it is first added. Few things you need to check for:
▪
▪
▪ ▪ ▪
The user should be asked about the number of the authors and depending on that he enters the authors name (remember when you add them the names are seperated by a colon) There must be at least one author name entered.
The serial number is unique (and should be validated as contianing 6 digits and that number should not exist in the file before).
The title cannot be empty.
Price is a double positive number.
Number of currently available books should be a positive integer
those information are entered and are valid a record is add to the “Library.txt” file. And a
Once all
message telling the user it was added successfully should be printed otherwise an appropriate message should be printed.
A. Draw a flowchart that will request the user to input Point A, Point B, Speed of Train (km/h) and then display how long it takes for a train to reach its destination.
B. Write a pseudocode that will request the user to input his/her name, then displays his/her name afterwards.
Many people keep time using a 24 hour clock (11 is 11am and 23 is 11pm, 0 is
midnight). If it is currently 13 and you set
15 (3pm). Write an algorithm and flowchart with
general version of the above problem. Ask the user for the time now (in hours), and
then ask for the number of hours to wait for the a
what the time will be on a 24 hour clock when the alarm goes off.
Chapter 4 Solutions
Starting Out With Visual Basic (8th Edition)
Ch. 4.2 - Prob. 4.1CPCh. 4.2 - In the following If Then statement, assume that...Ch. 4.2 - Do both of the following If Then statements...Ch. 4.2 - Prob. 4.4CPCh. 4.3 - Prob. 4.5CPCh. 4.4 - The following If Then ElseIf statement has...Ch. 4.4 - Prob. 4.7CPCh. 4.6 - Prob. 4.8CPCh. 4.7 - Prob. 4.9CPCh. 4.7 - Prob. 4.10CP
Ch. 4.8 - Convert the following If Then Elself statement...Ch. 4.10 - Prob. 4.12CPCh. 4.10 - Prob. 4.13CPCh. 4.10 - Write a Boolean expression that equals true when a...Ch. 4.10 - Prob. 4.15CPCh. 4.10 - Prob. 4.16CPCh. 4 - A (n) _______structure allows a program to execute...Ch. 4 - A (n) _______operator determines if a specific...Ch. 4 - Boolean expressions can only be evaluated as_____...Ch. 4 - A (n)_______is a Boolean variable that signals...Ch. 4 - Prob. 5FIBCh. 4 - Prob. 6FIBCh. 4 - A(n)________ If statement is an If statement that...Ch. 4 - _______operators connect two or more relational...Ch. 4 - Prob. 9FIBCh. 4 - Prob. 10FIBCh. 4 - Prob. 11FIBCh. 4 - Prob. 12FIBCh. 4 - Prob. 13FIBCh. 4 - Prob. 14FIBCh. 4 - Prob. 15FIBCh. 4 - Prob. 16FIBCh. 4 - Prob. 17FIBCh. 4 - Prob. 18FIBCh. 4 - ________ is the process of inspecting input values...Ch. 4 - Prob. 20FIBCh. 4 - Prob. 21FIBCh. 4 - Prob. 1TFCh. 4 - T F: It is not possible to write Boolean...Ch. 4 - Prob. 3TFCh. 4 - T F: Clicking on a radio button selects it and...Ch. 4 - T F: Radio buttons that are placed inside a group...Ch. 4 - Prob. 6TFCh. 4 - Prob. 7TFCh. 4 - Prob. 8TFCh. 4 - Prob. 9TFCh. 4 - Prob. 10TFCh. 4 - Prob. 1MCCh. 4 - This statement can cause other program statements...Ch. 4 - Prob. 3MCCh. 4 - This statement is like a chain of If statements....Ch. 4 - When placed at the end of an IfThenElself...Ch. 4 - When an If statement is placed inside another If...Ch. 4 - This operator connects two Boolean expressions...Ch. 4 - This operator connects two Boolean expressions...Ch. 4 - Prob. 9MCCh. 4 - This operator connects two Boolean expressions...Ch. 4 - When determining whether a number is inside a...Ch. 4 - When determining whether a number is outside a...Ch. 4 - Prob. 13MCCh. 4 - This method attempts to convert a value to...Ch. 4 - Prob. 15MCCh. 4 - Describe the difference between the If Then ...Ch. 4 - In an IfThenElseIf statement, what is the purpose...Ch. 4 - What is a flag and how does it work?Ch. 4 - Briefly describe how the And operator works.Ch. 4 - Briefly describe how the Or operator works.Ch. 4 - How is the Xor operator different from the Or...Ch. 4 - Prob. 7SACh. 4 - How is the OrElse operator different from the Or...Ch. 4 - Why are the relational operators called...Ch. 4 - Prob. 2WDTCh. 4 - Why does Visual Studio automatically indent them...Ch. 4 - Prob. 4WDTCh. 4 - Prob. 1FTECh. 4 - Prob. 1AWCh. 4 - Write an IfThen statement that assigns 0 to intX...Ch. 4 - Write an IfThen statement that multiplies...Ch. 4 - Prob. 4AWCh. 4 - Write an IfThen statement that sets the variable...Ch. 4 - Write an IfThenElse statement that assigns 1 to...Ch. 4 - The string variable strPeople contains a list of...Ch. 4 - Write an IfThen statement that prints the message...Ch. 4 - Write an IfThen statement that prints the message...Ch. 4 - Prob. 10AWCh. 4 - Prob. 1PCCh. 4 - Roman Numeral Converter The Roman Numeral...Ch. 4 - Fat Percentage Calculator Create an application...Ch. 4 - Weekly Temperatures with Validation Programming...Ch. 4 - Software Sales Software companies often offer...Ch. 4 - Sailboat Race Ranking Programming Challenge 7 in...Ch. 4 - Pay Per Click Advertising Revenue Many Web sites...Ch. 4 - Speed of Sound The following table shows the...Ch. 4 - Prob. 9PCCh. 4 - Name Formatting Create an application that lets...Ch. 4 - Prob. 11PCCh. 4 - Museum Tours Write a program that lets the user...Ch. 4 - Prob. 13PCCh. 4 - Mass and Weight Scientists measure an objects mass...Ch. 4 - Book Club Points Serendipity Booksellers has a...Ch. 4 - Body Mass Index Program Enhancement In Programming...Ch. 4 - Magic Dates The date June 10, 1960, is special...
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 flowgorithm that asks the user to input a person’s age. The program should then display a message indicating whether the person is an infant, child, teenager or an adult based on the following guidelines: 1 year or less, person is an infant Over 1 year but less than 13 years, person is a child At least 13 but less than 20, person is a teenager 20 years or greater, person is an adultWant to see this in a flowchart and not written outarrow_forwardA mobile phone app allows a user to press a button that starts a timer that counts seconds.When the user presses the button again, the timer stops. Draw a flowchart, write pseudocode and C++ that accepts the elapsed time in seconds and displays the value in minutes and remaining seconds. For example, if the elapsed time was 130 seconds, the output would be 2 minutes and 10 seconds.arrow_forwardCreate a flowchart that will accept two integers X and Y. If X is greater than Y, it will compute for the difference between X and Y. If X is less than Y, it will compute for the product of X and Y. Otherwise, it will compute for the sum of X and Y. Display the values of X,Y, and the answer.arrow_forward
- Write an OCTAVE code that calculates the tip based on amount of bills, using the following rules and the variable ‘bill’: • bill is less than 15 ₺, Tip is 1,50 ₺ • bill is between 15 ₺ and 70 ₺, Tip is %15 • bill is above 70 ₺, Tip is % 19 a)Draw the flowchart of the solution b)Write the Octave codearrow_forwardWrite a pseudocode and draw a flowchart that calculates and prints the commission received by a salesperson. The commission rate is based on two factors, the amount of sales and the class to which the salesperson belongs. The input will be the salesperson number, sale amount and class. The commission rate will be based on the following criteria: Class =1 If sales is equal to or less than $1000, the rate is 6 percent. If sales is greater than $1000 but less than $2000, the rate is 7 percent. If the sales is $2000 or greater, the rate is 10 percent. Class= 2 If the sales is less than $1000, the rate is 4 percent. IF the sales is $1000 or greater, the rate is 6 percent. Class= 3 The rate is 4.5 percent for all sales amount Class=any other value Output an appropriate error message.arrow_forwardWrite the Pseudocode, display the output, and draw a flowchart for the following Get the first test score. Get the second test score. Get the third test score. Calculate the average. Display the average. If the average is greater than 95, congratulate the student.arrow_forward
- Draw a flowchart and write pseudocode for each of the following scenarios for the ABC College:a. The current annual matriculation fee is $12,000.00 and it is expected to increase by 5% each year. Show the matriculation fee for the next 10 years.b. Revise (a) so that the user can enter the rate of increase, instead of having it set at 5%.c. Revise (a) so that the user enters the rate of increase for the first year and it then increases by 0.3% each subsequent year.arrow_forwardThe Saffir-Simpson Hurricane Scale classifies hurricanes into five categories numbered 1 through 5. Write an application named Hurricane that outputs a hurricanes category based on the users input of the wind speed. Category 5 hurricanes have sustained winds of at least 157 miles per hour. The minimum sustained wind speeds for categories 4 through I are 130, 111, 96, and 74 miles per hour, respectively. Any storm with winds of less than 74 miles per hour is not a hurricane.arrow_forwardCreate the flowchart of a program that will ask the user to input the number of pennies. The code then will determine the equivalent number of dollars, quarters, dimes, nickels, and pennies from the user input. Display the equivalent number of dollars, quarters, dimes, nickels, and pennies. Code the resulting flowchart. (Dollar = 100 pennies, Quarters = 25 pennies, Dimes = 10 pennies, Nickels = 5 pennies and Penny = 1 penny).arrow_forward
- Please take screenshots of the stops. (Science: calculating energy) Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy is Q = M * (finalTemperature – initialTemperature) * 4184 where M is the weight of water in kilograms, temperatures are in degrees Celsius, and energy Q is measured in joules.arrow_forwardCan you draw a flowchart for this question clearly showing all the parts to the flowchartarrow_forwardWrite a pseudocode and create a flowchart for this question; The colors red, blue, and yellow are known as primary colors because they can't be made by mixing other colors. When you mix two primary colors, you get a secondary color, as shown here: When you mix red and blue, you get purple. When you mix red and yellow, you get orange. When you mix blue and yellow, you get green. Design a program that prompts the user to enter the names of two primary colors to mix. If the user enters anything other than “red,” “blue,” or “yellow,” the program should display an error message. Otherwise, the program should display the name of the secondary color that results.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,
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,