Q2)- Choose the correct statement 1-The value of structure “vbquestion "is: a)- 48 b) -32 c) -16 2- The event associated with the command button is: a) click b) = double click c) load 3- To make timer1 works we write : a) timer1.timer = ture b) timer1.enabled = ture c) timer1.visiable = ture %3D 4- One of the properties of the listbox is a) sorted b) backstyle c) passwordchar 5-The property Setfocus using with: a) text box b) inputbox c) label
Q: Q2 Write a code program to enter the value of (Q, U, S, R and N). Calculate and Display the value of…
A: Algorithm: Start Read Q,U,S,R,N values in textboxes Calculate AR=(Q * U) / (Math.Sqrt(S) *…
Q: 1.Balloon Emporium sells both latex and Mylar balloons. The store owner wants a pro-gram that allows…
A: Answer:-
Q: 3.17 (Game: scissor, rock, paper) Write a program that plays the popular scissor–rock–paper game.…
A: Answer :
Q: . An else clause may or may not be part of an if statement, but it must be part of an if statement.
A: If else
Q: Financial application: compare loans with various interest rates) Write a program that lets the user…
A: Actually, program is a executable software that runs on a computer.
Q: V/ This pseudocode segment is intended to compute and display // the average grade of three tests…
A: The program is made up of 3 components called by the primary program. These components are:…
Q: Questions) Q1 / write a program to find the area of a triangle with a suitable design.
A: As per the policy of Bartleby we can answer only the first question, please ask the other questions…
Q: 2. Write an if...else statement that determines whether a variable called points is outside the…
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: 3.21 LAB: Smallest number Write a program whose inputs are three integers, and whose output is the…
A: Program Approach: Including essential header files and using namespace for standard I/O. Giving…
Q: 10. Future Value Suppose you have a certain amount of money in a savinggs account that earns com-…
A: Required:
Q: The utilities commission has decided that the electric company overcharged its customer for 2 months…
A: Program code: #include <stdio.h>int main(){ //declaring variables float…
Q: 11- The control variable statement (int j=2; j<20; j+=3) is used to generate the sequence…
A: Answer= False Explanation: 20 is not possible in answer. Code for above control statement:…
Q: (Current time) Listing 2.9, ShowCurrentTime.cpp, gives a program that displays the current time in…
A: Given: (Current time) Listing 2.9, ShowCurrentTime.cpp, gives a program that displays the…
Q: I am using python. How would this code be written? Can someone explain the loop concept?
A: Program: #input for available candy barscandyBar=int(input("Please enter the number of candy bars…
Q: Q1) Write the pseudocode for the following. a. Ask a user to enter a number. If the number is…
A: Pseudo codes are way to write an algorithm without using the specific features of a particular…
Q: 2. The following table contains earthquake magnitude ranges on the Richter scale and their…
A: C++ code for the above problem:- #include<iostream>using namespace std;int main(){float…
Q: Determine whether the statement are TRUE or FALSE
A: Let's check the given statement "If the matrix product AB is defined, and either A or B is a zero…
Q: include using namespace std; main () { int a, b, c, sum; cout >a; cout > b; cout > c;
A: I have given output with the explanation step wise step below.
Q: 4.3.1 explain what the program does? 4.3.2 What is the output.
A: a is initially 0 and in loop a is printed and then incremented by 1. We exit from loop when the…
Q: C++ Demonstration #3: Create a program that will arrange the values c A, B and C in ascending order…
A: #include <iostream>using namespace std; int main(){ //Sort three numbers. int A =…
Q: (Display the day and remaining hours) Write a program that prompts the user to enter the day number…
A: Given:- (Display the day and remaining hours) Write a program that prompts the user to enter the day…
Q: Complete the flowgarithm/pseudo code for the following scenario and upload into drop box Program…
A: pseudo code is the steps required to solve a particular problem in informal language. It uses common…
Q: Q3/A- Estimate the result when you execute the following code by using Qbasic programming For m take…
A: Lets take m =85 85>=80 Print "very good"
Q: Assume that grade is a variable whose value is a letter grade-- any one of the following letters:…
A: Given: Assume that grade is a variable whose value is a letter grade-- any one of the following…
Q: PEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. DEBUG03-03 // This…
A: To correct the pseudo code there are various while loops which is not necessary as w3e can check it…
Q: BMI Calculator Create a C program that will compute for the body-mass index of a given height and…
A: Algorithm: Start Display the menu to the user and ask the user to choose If user chooses 1, read…
Q: Q1) Write the pseudocode for the following. a. Ask a user to enter a number. If the number is…
A: Pseudocode for problem Q1 ) a. Initialize variable x←0 x ←Take user input if ( 0 <= x and x…
Q: text piras example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554…
A: The required code is as follows:-
Q: Complete the flowchart & then write pseudo-code while taking manual attendance in a class
A:
Q: Write a program OrderCheck.java that takes four int command-line arguments w, x, y, and z. Define a…
A: A command line arguments are arguments passed at the time of running time of program through the…
Q: 11- The control variable statement (int j=2; j<20; j+=3) is used to generate the sequence…
A: In the given statement we are using for loop whose syntax is…
Q: Text-based adventure game: Pretend you are creating a text-based adventure game. At different points…
A: def choice(c): if c == 1: print("Fight") elif c == 2: print("Run") elif c ==…
Q: LAB 7-5 Desk-Check The code shown in Figure 7-45 should display the numbers 2, 4, 6, 8, 10, and 12…
A: #include<iostream> using namespace std; int main(){ for(int number=2;…
Q: Evaluate the following expression (false -24 * && true) || false || true 1 O • False • Not of the…
A: Question 24-- answer-1 explanation- false&&true will give false…
Q: How do you write the income tax calculator in python
A: Algorithm: Start Read amount If amount is valid, print 0.04*amount Else print error message and…
Q: Create assignment statements for the variables a, b, and c that execute the following actions. Adds…
A: = is the assignment operator used in assigning values to variables
Q: 15 - final question Assuming you have implemented a mini calculator. U MiniCalculator Result Number…
A: Since we need to check for missing input in textboxes, we need check both the textboxes. No single…
Q: Q1 Answer the following: 1- It is possible in visual basic 6.0 to detect the errors while the…
A: (1) In visual basic , there are three categories of errors : Syntax error , Run time error and logic…
Q: Engineering 3.1.10 The average person can jump off the ground with a velocity of 7 mph without fear…
A: Input : Input G,M,R values Velocity Output : Jumper will not return to the surface or not.
Q: TASK 3 (25 points) [Testing: Variables and expression, strings, conditional-statements, loops]…
A:
Q: reate a change-counting game that gets the user to enter the number of coins required to make…
A: Required: C++ Visual 2019 Create a change-counting game that gets the user to enter the number of…
Q: + Multiple Conditional Statements EmployeeBonus2.py >- Terminal 1 # EmployeeBonus2.py This program…
A: Find out the mistake from the code.
Q: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: solution: #include <iostream> using namespace std; int main(){double totalSale=8600000;double…
Q: T/F 3) A try must contain at least one catch comment, but may contain zero or more catch…
A: Here is the solution which is mentioned below:
Q: Assume that grade is a variable whose value is a letter student_grade- 'A', 'B', 'C', 'D', 'F".…
A: the code is given below :
Q: 2. The following table contains earthquake magnitude ranges on the Richter scale and their…
A: The programming methodology is given by: Including header files Main function Declaring magnitude…
Q: Predict the output. Assume the user enters John. #include #include using namespace std; int main() {…
A: getline() method is used to load the line input to string along with spaces
Q: Assignment statements based on input value Write an if-else statement that assigns finalValue with…
A: Answering first question as per the guidelines. The problem is based on the basics of functions in…
Step by step
Solved in 2 steps
- C++ Visual 2019 Create a change-counting game that gets the user to enter the number of coins required to make exactly one dollar.The program should ask the user to enter the number of pennies, nickels, dimes, and quarters. If the total value of the coins entered is equal to one dollar, the program should congratulate the user for winning the game. Otherwise, the program should display a message indicating whether the amount entered was more than or less than one dollar.CHALLENGE ACTIVITY using C++ 1.6.2: Compute an expression. Write a statement that assigns finalResult with the sum of num1 and num2, divided by 3. Ex: If num1 is 4 and num2 is 5, finalResult is 3. #include <iostream>using namespace std; int main() { int num1; int num2; int finalResult; cin >> num1; cin >> num2; cin >> finalResult; cout << num1 + num2 / 3; cout << "Final result: " << finalResult << endl; return 0;}PEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. DEBUG03-03 // This pseudocode is intended to display// employee net pay values. All employees have a standard// $45 deduction from their checks.// If an employee does not earn enough to cover the deduction,// an error message is displayed.// This example is modularized.start Declarations string name string EOFNAME = ZZZZ while name not equal to EOFNAME housekeeping() endwhile while name not equal to EOFNAME mainLoop() endwhile while name not equal to EOFNAME finish() endwhilestop housekeeping() output "Enter first name or ", EOFNAME, " to quit "return mainLoop() Declarations num hours num rate num DEDUCTION = 45 num net output "Enter hours worked for ", name input hours output "Enter hourly rate for ", name input rate gross = hours * rate net = gross - DEDUCTION if net > 0 then output "Net pay for ", name, " is ", net…
- 3.17 (Game: scissor, rock, paper) Write a program that plays the popular scissor–rock–paper game. Rules: A scissor can cut a paper, a rock can knock a scissor, a paper can wrap a rock. The program should randomly generates a number 0, 1, or 2 representing scissor, rock, and paper. The program should prompt the user to enter a number 0, 1, or 2 and displays a message indicating whether the user or the computer WINs, LOSEs, or DRAWs. Here are sample runs: Welcome to Rock-Paper-Scissor Game by {name} Selection options: scissor (0), rock (1), paper (2) Make a selection: 1 The computer is scissor. You are rock. YOU WIN!!! Welcome to Rock-Paper-Scissor Game by {name} Selection options: scissor (0), rock (1), paper (2) Make a selection: 2 The computer is paper. You are paper too. IT IS A DRAWTrue or False? Control structures alter the normal flow of control.Salary Calculator Create a program that computes the salary based on an employee's hourly wage and hours worked. Note that employees may work for fractions of an hour, e.g. 1 and a half hours (1.5 hours). Use the following formulas: Less than or equal to 40 hours worked hourly wage * hours worked Over 40, but less than or equal to 65 hours worked (hourly wage * 40) + (hours worked - 40) * (hourly wage * 1.5) Over 65 hours worked (hourly wage * 40) + (hourly wage * 1.5) * 25 + (hours worked - 65) * hourly wage * 2 Also make sure that the hourly wage and hours worked are positive. Otherwise, display the error message: "Invalid input". Please see the sample outputs below to guide the design of your program. main.cc file #include <iomanip> #include <iostream> int main() { // TODO: accept user input to store the hourly wage and hours worked. // Then, include the header file at the top of this file so you can // call your function that computes a…
- Q1 part d need code in c++ in visual studio the quotient after q is divided by divisor and assign the result to q. Write this statement in two different ways.Fix any errors that you find. Use in-line comments to explain how and why you fixed the bugs. Test your program. If you found and fixed all the errors, your code should function as specified: The code should allow users to enter basic, one operator arithmetic expressions using integers or doubles. Then, it should calculate the result of the expression and output the results. For example, if the user inputs “2 + 2,” the calculator should output “2 + 2 = 4.” The operations the program should perform are addition (+), subtraction (-), multiplication (*), and division (/). The user should be asked whether they wish to continue after evaluating each expression. If the user types “Y” or “y,” the program should ask for a new arithmetic expression. If the user types “N” or “n,” the program should terminate with the message: “Program Finished.”q24- You are writing code which asks the user to input a number and prints "odd" if it is odd, and "even" otherwise. Which kind of control structure would best describe the code? Ensure that you select the answer which also includes a correct explanation. a. Sequence, because the program involves input/output. b. Selection, because control flow can take one of multiple possible paths based on a condition. c. Selection, because input is selected from the user. d. Iteration, because there are statements that can be executed repeatedly. e. Sequence, because there is only one possible sequence of statements that can be executed. f. Iteration, because multiple versions of the program must be written.
- Visual Studio 2022 - Visual Basic - Windows Forms App (.NET Framework) Put the text "I love Lucy" in a label. Add a button btnChange. Add another lable lblNumber Use string functions to do the following separately when clicking on the button. (use the label text changed event and a string function to show in the lblNumber the number of characters of the string displyed in the first label when the chnages occur) : 1. Remove "I" from the label text 2. Substitute "I" with "You" 3. Add "very much" at the end 4. Substitute "love" with "hate"(DEBUG AND MAKE A FLOWCHART OF THIS PROGRAM) // This pseudocode is intended to display// employee net pay values. All employees have a standard// $45 deduction from their checks.// If an employee does not earn enough to cover the deduction,// an error message is displayed.// This example is modularized.start Declarations string name string EOFNAME = ZZZZ while name not equal to EOFNAME housekeeping() endwhile while name not equal to EOFNAME mainLoop() endwhile while name not equal to EOFNAME finish() endwhilestop housekeeping() output "Enter first name or ", EOFNAME, " to quit "return mainLoop() Declarations num hours num rate num DEDUCTION = 45 num net output "Enter hours worked for ", name input hours output "Enter hourly rate for ", name input rate gross = hours * rate net = gross - DEDUCTION if net > 0 then output "Net pay for ", name, " is ", net else output "Deductions not covered. Net is…Each cout statement has a syntax error. Type the first cout statement, and press Run to observe the error message. Fix the error, and run again. Repeat for the second, then third, cout statement.cout << "Num: " << songnum << endl; cout << int songNum << endl; cout << songNum " songs" << endl; #include <iostream>using namespace std; int main() { int songNum; songNum = 5; /* Your solution goes here */ return 0;}