Pearson eText for Starting Out With Visual Basic -- Instant Access (Pearson+)
8th Edition
ISBN: 9780137506019
Author: Tony Gaddis, Kip Irvine
Publisher: PEARSON+
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 3.5, Problem 3.26CP
For each of the following numeric formats, identify the format string used as the input parameter when calling the ToString method.
- a. Currency
- b. Exponential scientific
- c. Number
- d. Percent
- e. Fixed-point
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
File names: color_square.py, chessboard.py, test_squares.py
Positions on a chess board are identified by a letter and a number. The letter identifies the column; the number identifies the row. See the image below.
You will provide the functions that allow us to determine:
if a chessboard square is either black or white, given its coordinates.
If the row/column is valid or not for the standard chessboard
For example, if we pass in “d” for the column and 4 for the row, your function that determines color should return the string: “BLACK”. If we pass in "k" for the column to your function that validates columns, that function should return the boolean False.
Requirements:
Your function for validating the column should be able to accept upper or lowercase strings as parameters.
Your functions for validating the row should be able to accept integers or strings as parameters.
Your function that determines black-or-white may assume that the input has been validated prior to us calling…
How to determine if the string is valid
There are certain criteria that the date in the slashes format must fit to be valid:
The string must separate the day, month and year with slashes. This criteria makes the strings "03142022" or "10,24,2025" invalid date strings.
Day, month, and year must be composed of digits only. This makes the string "Jan/12/2022" invalid. Note: .isdigit() function is perfect for checking if a string is numeric (if it can be converted to an integer)
The month must be within 1 and 12. This criteria makes the string "13/28/2025" invalid.
The day must be within the max days limit for a given month. For instance, there are only 30 days on November, but 31 days in December. Therefore, "11/31/2022" is invalid while "12/31/2022" is valid. You will have a dictionary for how many days each month has. For simplicity, let's assume that February always has 28 days.
Requirements for the program
Write a function validate_date(date_string) which takes in a…
Need help on these review questions. Please help. Thank you.
Chapter 3 Solutions
Pearson eText for Starting Out With Visual Basic -- Instant Access (Pearson+)
Ch. 3.1 - What TextBox control property holds text entered...Ch. 3.1 - Prob. 3.2CPCh. 3.1 - Prob. 3.3CPCh. 3.1 - Prob. 3.4CPCh. 3.2 - Prob. 3.5CPCh. 3.2 - Write a variable declaration for an Integer...Ch. 3.2 - Which of the following variable names are written...Ch. 3.2 - Prob. 3.8CPCh. 3.2 - What default value is assigned to each of the...Ch. 3.2 - Write a Date literal for the following date and...
Ch. 3.2 - Prob. 3.11CPCh. 3.3 - Prob. 3.12CPCh. 3.3 - Prob. 3.13CPCh. 3.3 - Prob. 3.14CPCh. 3.3 - What will be the final value of dblResult in the...Ch. 3.3 - What will be the final value of dblResult in the...Ch. 3.4 - Prob. 3.17CPCh. 3.4 - Prob. 3.18CPCh. 3.4 - Prob. 3.19CPCh. 3.4 - Will the following statement execute or cause a...Ch. 3.4 - Prob. 3.21CPCh. 3.4 - Assuming that intNumber is an integer variable,...Ch. 3.4 - Prob. 3.23CPCh. 3.4 - How would the following strings be converted by...Ch. 3.5 - Prob. 3.25CPCh. 3.5 - For each of the following numeric formats,...Ch. 3.5 - Prob. 3.27CPCh. 3.5 - In the following table, fill in the expected...Ch. 3.5 - Prob. 3.29CPCh. 3.5 - Prob. 3.30CPCh. 3.6 - Prob. 3.31CPCh. 3.6 - Where do you declare class-level variables?Ch. 3.7 - Prob. 3.33CPCh. 3.7 - Prob. 3.34CPCh. 3.7 - What kind of code does the try block of a...Ch. 3.7 - Prob. 3.36CPCh. 3.7 - Prob. 3.37CPCh. 3.7 - Prob. 3.38CPCh. 3.8 - Prob. 3.39CPCh. 3.8 - Prob. 3.40CPCh. 3.8 - Prob. 3.41CPCh. 3.8 - Prob. 3.42CPCh. 3.8 - Write a programming statement that gives the focus...Ch. 3.8 - Prob. 3.44CPCh. 3.8 - Prob. 3.45CPCh. 3.8 - Prob. 3.46CPCh. 3.8 - When a GroupBox control is deleted, what happens...Ch. 3.8 - Prob. 3.48CPCh. 3.8 - Prob. 3.49CPCh. 3.9 - Prob. 3.50CPCh. 3.9 - Prob. 3.51CPCh. 3.9 - Prob. 3.52CPCh. 3.9 - What Visual Basic function would you use to get...Ch. 3.9 - Prob. 3.54CPCh. 3.11 - Prob. 3.55CPCh. 3.11 - Prob. 3.56CPCh. 3.11 - What is the purpose of single-stepping through an...Ch. 3 - Prob. 1FIBCh. 3 - _____ is a commonly used prefix for TextBox...Ch. 3 - Prob. 3FIBCh. 3 - Prob. 4FIBCh. 3 - Prob. 5FIBCh. 3 - Prob. 6FIBCh. 3 - Prob. 7FIBCh. 3 - When Option Strict is set to ______ only widening...Ch. 3 - A(n) _____ is a specialized routine that performs...Ch. 3 - The _____ function converts an expression to an...Ch. 3 - Prob. 11FIBCh. 3 - Prob. 12FIBCh. 3 - When two operators share an operand, the operator...Ch. 3 - Prob. 14FIBCh. 3 - Prob. 15FIBCh. 3 - Prob. 16FIBCh. 3 - Prob. 17FIBCh. 3 - Prob. 18FIBCh. 3 - Prob. 19FIBCh. 3 - Prob. 20FIBCh. 3 - A(n) ______ is a container for other controls that...Ch. 3 - Prob. 22FIBCh. 3 - Prob. 23FIBCh. 3 - Prob. 24FIBCh. 3 - T F: The TextBox controls Text property holds the...Ch. 3 - Prob. 2TFCh. 3 - T F: The string concatenation operator...Ch. 3 - T F: A local variable may be accessed by any other...Ch. 3 - T F: When a string variable is created in memory,...Ch. 3 - T F: A variables scope is the time during which...Ch. 3 - T F: A variable declared inside a procedure is...Ch. 3 - Prob. 8TFCh. 3 - T F: If the CInt function cannot convert its...Ch. 3 - T F: The multiplication operator has higher...Ch. 3 - T F: A named constants value can be changed by a...Ch. 3 - T F: Only controls capable of receiving input,...Ch. 3 - Prob. 13TFCh. 3 - Prob. 14TFCh. 3 - Prob. 15TFCh. 3 - Prob. 16TFCh. 3 - Prob. 17TFCh. 3 - Prob. 18TFCh. 3 - Prob. 19TFCh. 3 - Prob. 20TFCh. 3 - Prob. 21TFCh. 3 - T F: While single-stepping through an applications...Ch. 3 - Prob. 1MCCh. 3 - Prob. 2MCCh. 3 - You declare a named constant with which keyword?...Ch. 3 - Prob. 4MCCh. 3 - Prob. 5MCCh. 3 - Prob. 6MCCh. 3 - Prob. 7MCCh. 3 - Prob. 8MCCh. 3 - Prob. 9MCCh. 3 - Prob. 10MCCh. 3 - Prob. 11MCCh. 3 - Prob. 12MCCh. 3 - Prob. 1SACh. 3 - How do you clear the contents of a TextBox...Ch. 3 - Prob. 3SACh. 3 - Create variable names that would be appropriate...Ch. 3 - Why should you always make sure that a String...Ch. 3 - Prob. 6SACh. 3 - How would the following strings be converted by...Ch. 3 - Prob. 8SACh. 3 - Prob. 9SACh. 3 - Assuming that the variable dblTest contains the...Ch. 3 - What is the focus when referring to a running...Ch. 3 - Prob. 12SACh. 3 - Prob. 13SACh. 3 - Prob. 14SACh. 3 - Prob. 15SACh. 3 - Prob. 16SACh. 3 - Prob. 17SACh. 3 - Describe three ways to set a breakpoint in an...Ch. 3 - Should a programming language automatically insert...Ch. 3 - Prob. 2WDTCh. 3 - Prob. 3WDTCh. 3 - Prob. 4WDTCh. 3 - Prob. 5WDTCh. 3 - Prob. 6WDTCh. 3 - Prob. 7WDTCh. 3 - Prob. 8WDTCh. 3 - How can you get your application to execute a...Ch. 3 - Prob. 10WDTCh. 3 - Prob. 11WDTCh. 3 - Prob. 1FTECh. 3 - Open the Chap3\ Error2\ Error2 project from the...Ch. 3 - Open the Chap3\ Error3\ Error3 project from the...Ch. 3 - Create a flowchart that shows the necessary steps...Ch. 3 - Prob. 2AWCh. 3 - Prob. 3AWCh. 3 - Prob. 4AWCh. 3 - Convert the flowchart you constructed in Exercise...Ch. 3 - Prob. 6AWCh. 3 - Prob. 7AWCh. 3 - The Miles per Gallon Calculator Problem Create an...Ch. 3 - There are three seating categories at a high...Ch. 3 - Prob. 3PCCh. 3 - A movie theater only keeps a percentage of the...Ch. 3 - Room Charge Calculator Error Display In the Room...Ch. 3 - Prob. 6PCCh. 3 - The Upper West View Yacht club sponsors sailboat...Ch. 3 - Create an application that converts Celsius to...Ch. 3 - Create an application that converts U.S. dollar...Ch. 3 - A retail company must file a monthly sales tax...Ch. 3 - A county collects property taxes on the assessment...Ch. 3 - Joe's Pizza Palace needs an application to...Ch. 3 - Assuming there are no accidents or delays, the...Ch. 3 - Create a VB application that lets the user enter...Ch. 3 - Many financial experts advise that property owners...Ch. 3 - Assume that a bag of cookies holds 40 cookies. The...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
Summarize the distinction between declarative statements and imperative statements.
Computer Science: An Overview (12th Edition)
A constructor whose parameters all have default values is a(n) _______ constructor.
Starting Out with C++: Early Objects (9th Edition)
Why is the study of database technology important?
Database Concepts (8th Edition)
True or False: A variable may be defined in the initialization expression of the for loop.
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Indentify and correct the errors in each of the following. [Note: There may be more than one error in each piec...
C How to Program (8th Edition)
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
- Use String methods to divide the given email into separate parts. The email will always be in this format: firstName_lastName@domain.com Pull apart and print the first name, last name, and domain. When printing the values all three should be in proper capitalization format - The first letter of each word is uppercase and the rest are lowercase.arrow_forwardRun the program below, which creates “Dates” in the HW library. You will need to change the input statement to account for the format of the raw data. Add the following to this data step: Using the yrdif function to add a variable called “Agetoday”, which is the age today. Use proc print to list all the variables to the output window. Remember to format all dates for output purposes. data HW.dates; input Subj $ DOB ; datalines; 001 11Nov06 002 25May07 003 25Dec06 ; run; proc; run;arrow_forwardceil(11.056) = ? Select one: a. 12.056 O b. 11.0 O c. 12.0 O d. 11.056arrow_forward
- I need some help redoing some code, I have a setup code that works for the problem, but I wouldd like to see if there is any other way of doing the code, in C programming language. Basically, the code will work like this, it will read the txt file "Number.txt", then convert any value less than 0 to a 0 in that specific box, It will then specify what boxes/locations have a 0 value, it will also display a total amount of boxes that had a value less than 0, then display the final matrix/number txt, with the negative values converted to 0's Here is the code that works but I would like to be changed, #include <stdio.h> #include <stdlib.h> int main(){ int i=0,j=0; int row = 0,col = 5; float num1,num2,num3,num4,num5; FILE *fptr; if ((fptr = fopen("Number.txt","r")) == NULL){ printf("Error! opening file"); exit(1); } while(fscanf(fptr,"%f %f %f %f %f", &num1,&num2,&num3,&num4,&num5) !=EOF){ row++;…arrow_forwardIn each question below, provide a brief explanation, a formula and the numerical value for your answer (exact if the answer is an integer, approximate otherwise). There are 94 printable characters on a standard North American keyboard, comprised of the 26 upper case letters A-Z, the 26 lower case letters a-z, the 10 numerical digits 0-9 and the 32 special characters. For our purposes, passwords are strings consisting of printable characters. The length of a password is the number of characters in the password. Suppose we want a password space with entropy 128 bits, assuming that each pass- words is equally likely, i.e. a total of 2^128 passwords (this number is typical for key space sizes of modern cryptosystems). Assuming no restrictions on the characters appearing in passwords ex- cept that they be printable, what is the minimum password length that guarantees a password space with entropy 128?arrow_forwardCreate a string from two given strings by concatenating common characters of the given strings. Sample Input harry, hermione dean, tom Sample Output hrrhr Nothing in common. Again, you have lost your USIS password!! You went to the registrar office and requested for a new password. This time, you need to follow some rules to set your password. Otherwise, they won't change it. The rules are At least one lowercase letter At least one uppercase letter At least one digit (0-9) At least one special character (_ , $ , #, @) Your task is to find whether a given password follows all those rules. If it breaks any rule, you have to print Lowercase Missing, Uppercase Missing, Digit Missing or Special Missing respective to the missing case. For more than one rule break, print all the rules that were broken (order doesn't matter). If the password is ok, print OK. Sample Input ohMyBR@CU ohmybracu OhMyBR@CU20 Sample Output Digit missing Uppercase character missing,…arrow_forward
- Which string method does the following: To determine if a certain character is a letter or a number.arrow_forwardYou will have an orthogonal triangle input from a file and you need to find the maximum sum of the numbers according to given rules below; 1. You will start from the top and move downwards to an adjacent number as in below. 2. You are only allowed to walk downwards and diagonally. 3. You can only walk over NON PRIME NUMBERS. 4. You have to reach at the end of the pyramid as much as possible. 5. You have to treat your input as pyramid. According to above rules the maximum sum of the numbers from top to bottom in below example is 24. *1 *8 4 2 *6 9 8 5 *9 3 As you can see this has several paths that fits the rule of NOT PRIME NUMBERS; 1>8>6>9, 1>4>6>9, 1>4>9>9 1 + 8 + 6 + 9 = 24. As you see 1, 8, 6, 9 are all NOT PRIME NUMBERS and walking over these yields the maximum sum. According to rules that you implemented what is the maximum sum of below input? It means please take this input (as file or constants directly inside the code) for your implementation and…arrow_forwardYou will have an orthogonal triangle input from a file and you need to find the maximum sum of the numbers according to given rules below; 1. You will start from the top and move downwards to an adjacent number as in below. 2. You are only allowed to walk downwards and diagonally. 3. You can only walk over NON PRIME NUMBERS. 4. You have to reach at the end of the pyramid as much as possible. 5. You have to treat your input as pyramid. According to above rules the maximum sum of the numbers from top to bottom in below example is 24. *1 *8 4 2 *6 9 8 5 *9 3 As you can see this has several paths that fits the rule of NOT PRIME NUMBERS; 1>8>6>9, 1>4>6>9, 1>4>9>9 1 + 8 + 6 + 9 = 24. As you see 1, 8, 6, 9 are all NOT PRIME NUMBERS and walking over these yields the maximum sum. Write code for below problem in C languagearrow_forward
- Which data types are appropriate for storing the number 4.5?arrow_forwardUsing any means at your disposal (MS Word, MS Paint, Adobe Photoshop, or hand drawn, etc.),draw a flowchart that will let the user enter 100 numbers. The program will identify the lowestnumber entered by the user, computes for the square of the number and prints it. Your outputshould be a JPEG (.jpg) file with “LASTNAME_CLASSCODE_FLOWCHART” as itsfilename.arrow_forwardWhich string method does the following: To determine the length of a string.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 - CONSIGNMENTC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
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
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
What Are Data Types?; Author: Jabrils;https://www.youtube.com/watch?v=A37-3lflh8I;License: Standard YouTube License, CC-BY
Data Types; Author: CS50;https://www.youtube.com/watch?v=Fc9htmvVZ9U;License: Standard Youtube License