1. What is the output if the username is "administrator" and the password is 1 "admin123" ? * Dim strusername As String = Left (txtUsername.Text, 5) Dim strPassword As String = txtPassword. Text If strUsername = "admin" Then If strPassword = "admin123" Then MsgBox ("Welcome") Else MsgBox ("Invalid password") End If Else MsgBox ("Invalid username") End If A. Welcome O B. Syntax error O C. Invalid password O D. Invalid username
Q: Find the output of the following code: string str = "Happy Birthday !11"; %3D MessageBox.…
A: To do: Output of the given code:
Q: Using dart, develop an application that allow user to enter HIJRI month number and the program print…
A: Code: import 'dart:io';void main(){ var hmonths = [ "Muharram", "Safar", "Rabi al-Awwal", "Rabi…
Q: "C" when F 77. Private Sub Command1_Click() Dim C, F As Double C = InputBox("C") F = (9 * C/ 5) + 32…
A: The if else syntax in Visual Basic is as follows If condition Then statement(s) ElseIf condition…
Q: Write an application that prompts the user for a password that contains at least two uppercase…
A: Please find the answer below :
Q: Briefly describe each of the following string object methods: a. Insert b. Remove c. ToLower d.…
A: The Insert() method is utilized to return the new string in which a defined string is inserted at…
Q: Using C#, create an application that will ask the user to enter password set in the program for only…
A: Password print('Enter username and password to continue with exam')count=0while count < 3:…
Q: E Projectl - Forml (Code) Command1 Click Const var1 = 100 Const var2 = 200 Private Sub…
A: Need to Justify the given points : 1 . Const Var1 = 100Const Var2 = 200 Private Sub…
Q: This program displays a message box including the name of day when th user input it's number. (For…
A: F) 1 - x = CInt(Text1.Test) 2 - Select Case x 3 - Case 7
Q: What will be the output of the following program when the button is clicked? Private Sub…
A: Given Visual basic code
Q: Searching for a student’s details and status. from this pseudocode start declarations num…
A: In the above code, i am adding comments in each line which will help to know what code exactly doing…
Q: What messages will the following code sample display? int number = 5; number++;…
A: The ++ and - - operators: To increment a variable means to increase its value. To decrement a…
Q: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Create a folder named Dahan_yoon in…
A: Java program to guess random number between 1- 50
Q: The output of the lines below is int myNum = 15; string MyNumber = "number";…
A: Lets see the solution.
Q: In the btnCalc_Click procedure, change the For…Next statement that controls the years to a Do…Loop…
A: Answer: Visual Studio Source Code: Method 1: Form1.vb: Option Explicit OnOption Strict OnOption…
Q: A procedure is passed a copy of the value stored in a Decimal variable, followed by a copy of the…
A: A correct option is an option (c). Private Sub Display(ByVal decX As Decimal, ByVal strY As String)…
Q: Create a VB.NET Windows form application that uses the While loop to display all leap years between…
A: VB.NET PROGRAMMING: Visual Basic .net is a programming language designed to create applications that…
Q: Q3/enter a text in label1 such that this text copied to label2 after click on command button "copy"…
A: Private Sub CommandButton1_Click() Label2.Caption = Label1.Caption End Sub Private Sub…
Q: Create an application with a method that accepts a string as an argument and returns the number of…
A: Since you are not mentioning the programming language, here we are using Java to complete the…
Q: Create an application that accepts a sentence as input and converts each word to “Pig Latin.” In one…
A: Take a string for the input. Take a string for the pig Latin. Input the string. Create an object of…
Q: create an application that will ask the user to enter password set in the program for only three…
A: print('Enter username and password to continue wth exam')count=0while count < 3: username =…
Q: Q6. ____ Command returns text that matches the string pattern passed to it.
A: Given question is based on Commands in linux.
Q: The number 9 is delivered to the KeyPress event's ______________parameter when the user enters it in…
A: Given data is shown below: The number 9 is delivered to the KeyPress event's ______________parameter…
Q: What is the output of the following code? Dim strPhrase As String strPhrase = "Shut the front door…
A: The given code is visual basic code where the string is defined in 2nd line. The requirement is to…
Q: int option=2; switch(option){ case 1: printf("1"); break; case 2: printf("2"); case 3: printf("3");…
A: 1- The correct answer is 23. 2- The break statement missing for case: 2, therefore the output will…
Q: You're working on experiments in the lab and must make temperature measurements every millisecond…
A: %function to Convert celsius to Fahrenheit function Deg_F = celsius_to_fahrenheit(Deg_C) Deg_F =…
Q: Assume that the user enters a paragraph into the console. Which of the below codes reads and stores…
A: Answer is 5) char paragraph = sacn.next().charAt(0). As the first letter will be character not…
Q: Q2)- Choose the correct statement 1-The value of structure “vbquestion "is: a)- 48 b) -32 c) -16 2-…
A: 1. The value of the structure "vbquestion" is -32 2.The event associate with the command button is…
Q: • Name this function by your first name (for example, function fadil). • The user should fill all…
A: according to our policy in multi sub part question we are allowed to solve only only one part. text…
Q: It is asked to write an independent sub procedure that receives a string message as input and…
A: Given code:Private Sub PrintOut() As String Messagebox.Show(strMessage) End
Q: create an application for Bob’s E-Z Loans. The application accepts a client’s loan amount and…
A: Given: create an application for Bob’s E-Z Loans. The application accepts a client’s loan amount and…
Q: We have the following control objects: txtFirst, txtLast, IbIName, and btnName. When the user click…
A: Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.…
Q: Write an application that allows a user to enter the names and phone numbers of up to 20 friends.…
A:
Q: Q3/enter a text in label1 such that this text copied to label2 after click on command button "copy"…
A: Private Sub CommandButton1_Click() Label2.Caption = Label1.Caption End Sub Private Sub…
Q: You are required to take two strings input from the user at runtime, later display a menu to the…
A: Java is a platform and a programming language. Java is a general-purpose programming language that…
Q: 12.12 (Temperature Conversion) Write a temperature-conversion application that converts from…
A: Note: The answer of the first question is given in the solution. Please repost the second question…
Q: Private Sub calculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)…
A: Let's understand step by step : 1. Dim number1 AS Integer It declares an integer named number1…
Q: a. Ask a user to enter a number. i. If the number is between 0 and 10, write the word blue. ii. If…
A: the detailed solutions in below steps
Q: Please use 6.7 to answer 6.10. Please sent the screenshoots of the program. Please also only answer…
A: Given: Please use 6.7 to answer 6.10. Please sent the screenshoots of the program. Please also only…
Q: Using a conditional expression, write a statement that increments numUsers if updateDirection is 1,…
A: To create a conditional expression, by adding some code statements to the given program code. So,…
Q: Write an application for a furniture company; the program determines the price of a table. Ask the…
A: The problem is a menu based problem in which the user is asked to input the choice for the type of…
Q: Which Number method converts a number to a string using a specified number of decimal places?…
A: Please find the answer below :
Q: If the input is negative, make numltemsPointer be null. Otherwise, make numltemsPointer point to…
A: I have provided C++ CODE along with CODE SCREENSHOT and also provided TWO OUTPUT…
Q: The value of H after executing the program, g=6 is: Private Sub Command1_Click (.) Dim g, H As…
A: SUMMARY: - hence we discussed all the points
Q: Open the Proper Case Solution.sln file contained in the VB2017\Chap07\Proper Case Solution folder.…
A: The, code has given below:
Q: y it and should pass 2 testcase if not then Thumbsdown.
A: I have modified the code below:
Q: NumericAnalyzer will accept a list of 1 or more numbers as command line arguments. NOTE: Don’t…
A: NumericAnalyzer will accept a list of 1 or more numbers as command line arguments. NOTE: Don’t…
Q: Shown below is a small Verilog snippet. Indicate what the value of maskedValue is after the always…
A: Here i explain the given verilog code : ================================== Here one number =AB09…
Q: using visual studio and the C# please dont copy the previous answered questions because the solution…
A: Let's do the following First get the data from the file and push in to the array list then we check…
Q: Write the value of H after executing the program, g=6 Private Sub Commandl_Click () Dim g. HAs…
A: Value of g = 6 G will be true after executing instruction four H = 2.75 *g + 1 =2.75 * 6 + 1…
objective question
Step by step
Solved in 2 steps with 1 images
- Each of the following files in the Chapter.04 folder of your downloadable student files has syntax and/or logical errors. In each case, determine the problem, and fix the program. After you correct the errors, save each file using the same filename preceded with Fixed. For example, save DebugFour1.cs as FixedDebugFour1.cs. a. DebugFour1.cs b. DebugFour2.cs c. DebugFour3.cs d. DebugFour4.csEach of the following files in the Chapter.07 folder of your downloadable student files has syntax and/or logical errors. In each case, determine the problem, and fix the program. After you correct the errors, save each file using the same filename preceded with Fixed. For example, DebugSeven1.cs will become FixedDebugSeven1.cs. a. DebugSeven1.cs b. DebugSeven2.cs c. DebugSeven3.cs d. DebugSeven4.csA website requires that passwords only contain alphabetic characters or numbers. For each character in codeStr that is not an alphabetic character or number, replace the character with 'x'. C++ Ex: If the input is 3!fgMB, then the output is: Updated password: 3xfgMB Note: isalpha() returns true if a character is alphabetic, and false otherwise. Ex: isalpha('a') returns true. isalpha('8') returns false. isdigit() returns true if a character is a digit, and false otherwise. Ex: isdigit('8') returns true. isdigit('a') false #include <iostream>#include <string>using namespace std; int main() { string codeStr; unsigned int i; cin >> codeStr; codeStr.at(1) = 'x'; for (i + 0; i < codeStr.size(); ++i) { if (isalpha (codeStr.at(1))) { i += 1; }} cout << "Updated password: " << codeStr << endl; return 0;} cout<<"Updated password: "<<codeStr<<endl;
- Print a message telling a user to press the letterToQuit key numPresses times to quit. End with newline. Ex: If letterToQuit = 'q' and numPresses = 2, print:Press the q key 2 times to quit. #include <iostream>using namespace std; int main() { char letterToQuit; int numPresses; cin >> letterToQuit; cin >> numPresses; /* Your solution goes here */ return 0;}count the most frequent letter in string permutation example : if x = icyz and j = ixpc, then there are 8 different passwords that you can choose: icyz,icyc, icpz, icpc, ixyz, ixyc, ixpz, ixpc. icpc has the most frequent letter so the output is 2 please help with c++ code (studio.h, string.h,math.h only)count the frequent letter of the combined of two string example : if x = icyz and j = ixpc, then there are 8 different passwords that you can choose: icyz,icyc, icpz, icpc, ixyz, ixyc, ixpz, ixpc. icpc has the most frequent letter so the output is 2 please help with c++ code (studio.h, string.h,math.h only)
- Suppose the user is asked to input a number into txtNumber for which the square root is to be taken. Fill in the If block so that the lines of code that follow will display either the message “Number can’t be negative.” or the square root of the number. Private Sub btnSqrt_Click(...) Handles btnSqrt.Click 'Check reasonableness of data Dim num As Double num = CDbl(txtNumber.Text) If End If End Sub The fields below repeat for each customer: o Customer name (String)o Customer ID (numeric integer) o Bill balance (numeric)o EmailAddress (String)o Tax liability (numeric or String) The customers served by the office supply store are of two types: tax-exempt or non-tax- exempt. For a tax-exempt customer, the tax liability field on the file is the reason for the tax exemptions: education, non-profit, government, other (String). For a non-tax exempt customer, the tax liability field is the percent of tax that the customer will pay (numeric) based on the state where the customer’s business resides. Program requirements: From the information provided, write a solution that includes the following: A suitable inheritance hierarchy which represents the customers serviced by the office supply company. It is up to you how to design the inheritance hierarchy. I suggest a Customer class and appropriate subclasses.. For all classes include the following: o Instance variables o…public getFuelLevel():double retrieves fuel level in gallons Precondition: fuel level is initialized Postcondition: no change in state Return: fuel level in gallons with decimal valuespublic getFuelTankSize():double retrieves fuel level in gallons Precondition: fuel level is initialized Postcondition: no change is state Return: fuel level in gallons with decimal valuespublic setUpTrip(double, double): void Car's state is set to hold the speed of travel and distance to travel at that speed Precondition: none Postcondition: Car's state holds information on distance to travel and speed to travel Parameters: Average Speed to be driven, Distance to driveDevelop and use an algorithm that calculates the amount of fuel used and the actual distance driven in the drive() method. The algorithm must use a formula or multiple formulas ( as a piecewise function) that gives proportionately poorer mileage when the Car is driven faster or slower than its optimal speed. When a new Car object…
- Write an application that allows a user to enter any number of student test scores until the user enters 999. If the score entered is less than 0 or more than 100, display an appropriate message and do not use the score. After all the scores have been entered, display the number of scores entered, the highest score, the lowest score, and the arithmetic average. Save the file as TestScoreStatistics.cpp.Briefly describe each of the following string object methods: a. Insert b. Remove c. ToLower d. ToUpper e. Trim f. TrimStart g. TrimEndEach of the following files in the Chapter.05 folder of your downloadable student files has syntax and/or logical errors. In each case, determine the problem, and fix the program. After you correct the errors, save each file using the same filename preceded with Fixed. For example, save DebugFive1.cs as FixedDebugFive1 .cs. a. DebugFive1.cs b. DebugFive2.cs c. DebugFive3.cs d. DebugFive4.cs