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
- Restaurant: Point-of-Sales System Create a software application that can be used for a Restaurant using C language. The expected minimum functionality are as follows: Menu Display It must display at least 10 choices with their corresponding prices On your menu, at least one of the categories/choice should have customization/add-on. You should have at least 3 customization/add-on (e.g. In Starbucks, you can have extra espresso shot). Taking Orders As a customer, I want to select which of the choices I want to order As a customer, everytime I specify select my choice, I want to specify the quantity of my selected choice. After I finished my order, it should ask, "Anything Else?". Afterwards, as a customer, I should be to enter my succeeding choice. In order to stop taking order, the exit should be part of the menu. As a customer, I would only select that choice to exit If the customer selects a choice qualified for customization, after specifying the quantity, I should be asked,…* Question Completion Status: QUESTION 6 Find a formula that generates the following sequence a1,a2 a3, .. a) 4, 6, 8, 10, 12, ... b) 0, 3, 8, 15, 24, For the toolbar, press ALT+F10 (PC) or ALT+FN+Fj O (Mac). BIUS Paragraph Arial 14px S =川山三 x² X2 田由日国 田用図Phython assignment Exercise 1: Oreo cookies Check out the nutritional values of an Oreo cookie (Koppelingen naar een externe site.). Write code that does the following: calculate how much one Oreo cookie is concerning: calories, sodium, carbohydrate, fat create a user input that asks how much cookies you ate calculate how much calories, etc. you consumed warn the user that if he/she surpasses 2000kcal he/she should stop eating these darn delicious cookies use variables!
- # Global constant for body mass which is equal to 703 # Create variables and initialize all of them to 0.0 # create variable weight # create variable height # create variable BMI # input the weight from the user. # input the height from the user. # Calculate the body mass: # BMI is equal to weight * body mass divided by (height * height) # Display BMI. # Determine and display weight category if is greater then 25 you are overweight. # if is less then 18.5 is underweight otherwise is good # display all variablesActivity 16: Using the Assignment Statement Write a program that allows the user to input a distance in kilometers. The program should calculate the equivalent distance in meters(1 kilometer = 1000 meters). It should print the distance in kilometer and meters.QUESTION 22 5 points Save Answer Assume that variable myNumber is declared and initialized. Which line(s) of the following code will create a syntax error? Explain each error briefly. int myNumber = 21; switch (myNumber): { case (myNumber >= 0) System.out.print("myNumber is 21"); break; case 210 System.out.print("myNumber is 210"); break; case 44.0: System.out.print("myNumber is 44.0"); break; case 66: System.out.print ("myNumber is 6"); break; case 100/2: System.out.print("myNumber is 50"); break; default: System.out.print("something else"); break; } For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B I U S Paragraph Arial 14px A Ix ... deie p > > !!! >
- Remaining Time: 54 minutes, 49 seconds. * Question Completion Status: QUESTION 19 Write a Java program that prompts the user to enter the School Grade Level of a student and then calculate their discount amount in the regular fees structure offered during this pandemic situation. By using the below table, calculate their discount amount from the amount of the regular fee and then print the discount amount in OMR by using the appropriate selection structure. (Assume the user is entering a maximum Grade level is 12) discount amount = Regular Fees * percentage of discount rate School Grade Level Regular Fees in OMR Discount Rate >9 and 6 and 3 and 0 and <=3 30.500 5% otherwise 20.400 No discount T T T Arial 3 (12pt) v T -E E- 只i ン Click Save and Submit to save and submit. Click Save All Answers to save all answers. Save All Answers TOSHIBA F5 F6 F7 F8 F9 F10 F11 F12 INS SCNULL LOCK AD & 67 7 V 8A9 4 0* CENGAGE MINDTAP Programming Exercise 8-3A Instructions CarCareChoice.java + Write an application for Cody's Car Care Shop that shows a user a list of available services: oil change, tire rotation, battery check, or brake inspection. Allow the user to enter a string that corresponds to one of the options, and display the option and its price as $25, $22, $15, or $5, accordingly. Display Invalid Entry if the user enters an invalid item. An example of the program is shown below: Enter selection: oil change tire rotation battery check brake inspection battery check battery check price is $15 Grading Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade. Once you are happy with your results, click the Submit button to record your score.Time CalculatorWrite a program that asks the user to enter a number of seconds.-There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes and leftover seconds in that many seconds.-There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours, minutes, and leftover seconds in that many seconds.-There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours, minutes, and leftover seconds in that many seconds.
- on alerts a message "Hi" when a button is clicked.Us------c. Prak 9 Instructions PDF -mming Prak 9 Chapter 6: Modularizing Your Code with Methods 1. Salesperson's Commission Calculator (Nr 1, Page 408) Create an application that lets the user enter a salesperson's revenue sale and the rate of commission paid by the company, and display the commission earned. For example: • If a salesperson sells $100,000 in revenue while working with a company that pays 5 percent of the revenue, his/her commission check will be $5,000. • if a salesperson sells $100,000 in revenue while working with a company that pays 8 percent of the revenuo, his/her commission check will be $8,000. The program should have a method named CalculateDisplayCommission that receives the revenue sale by a salesperson and the commission percentage as arguments, and calculates and displays the commission earned by the salesman. See examples below: Salesperson's Commis. |Salesperson's Commis. 100000 Revenue Sale: 100000 Revenue Sale: Commission Percentage: Commission…Curly braces {} around the code after an if statement are only allowed if there is more than one line of code inside the braces. True False V