Which one of the following (3 ? variable is initial correctly
Q: Which of the following symbols designates a substitution variable?a. &b. $c. #d. –
A: Symbol for a substitution variable Ampersand (&) is the key word that is used to find a…
Q: Which of the following statement is false
A: A regular language is a language that can be expressed with a regular expression or a deterministic…
Q: Which value for x would make the following condition true: x >= 5
A: The conditional operator is also known as a ternary operator.
Q: Draw Flowchart to the calculate the average from 25 exam scores?
A: Given: Flow chart for calculated 25 exam scores.
Q: Which of the following is/are an incorrect initialisation of a variable? (Choose all that apply)
A: Converting larger range datatypes to Shorter range datatypes needs casting
Q: Which of the following, is the correct order of evaluation for the below expression? Z = x + y *…
A: We need to find the correct order of evaluation for the given expression. Z = x + y * z/4 %2 - 1
Q: Which of the following statements invokes the GetArea Sub procedure, passing it two variables by…
A: Justification: The first statement, “GetArea(dblLength, dblWidth) As Double” is wrong. It is…
Q: Which of the following statements invokes the CalcArea Sub procedure, passing it two variables by…
A: Statement invoking a procedure A procedure is a series of statements that can be stored in the…
Q: Which of the following statements generates a random integer from 1 to 25 (including 25)? a. intNum…
A: Statement generating a random integer The statement to generate random integer is…
Q: Which of the following statements are true? (More than one statement may be true.)
A: Required:
Q: Which one of the following expressions does not evaluate to 3?
A: Please find the answer below :
Q: Which of the following is the correct binding of the operator precedence for the below formula?…
A: The logical precedence in the logic operations is the precedence of the operators for evaluating the…
Q: QUESTION 3 Which of the following statement is false regarding the assignment statement? O a. The…
A: Answer: (a) choice a is correct. (b) choice b is correct. (c) Choice c is correct. (d) Choice d is…
Q: Which one of the following (2 statements use to input the value ? of the variable day
A: required:
Q: Which of the following is valid datatype to declare a variable with value 45.6? a. int b. break C.…
A: Solution : The correct answer is d. float
Q: Hi, can you please fix this code? It's not displaying the "[1] Pay" and "[2] return" after I press…
A: While using next() method, the comparison fails and the statements: "[1] Pay" and "[2] return" are…
Q: Which one is a valid variable declaration? * O int Sfirst-nb = 100; int first-nb 10%3B int firstNb…
A: Ans:- int firstNb = 100.5; Explaination:- Valid variable declaration will be starting from…
Q: Q.3): Which of the following names for string variables are correct? 1) AGE$ 2) COLLEGE 3) $sum 4)…
A: let us see the answer:- The correct answer is:- 2) College
Q: Each of the following: When you don't have the original primary keys, you can use these keys…
A: There is a natural key that you can use In a database, there is a type of unique key called a…
Q: Which one of the following statement is used along with the DISABLE clause?
A: EXPLANATION:- Connect to the Database. From the standard bar, click "new query". Now execute the…
Q: Which of the following functions returns a Boolean value depending whether a given variable matches…
A: Solution :
Q: Which of the following statement is incorrect?
A: Lets see the solution.
Q: Which of the following headers indicates that the procedure returns a Decimal number?a. Private…
A: Header to indicate a procedure returning a decimal number A procedure is a set of coded…
Q: Which of the following functions return absolute value of a variable? A. Abs() B. Absolute() C.…
A: the answer is an Abs()
Q: ? Which one of the following variable is initial correctly (3 char x="abc"; O
A: Please find the answer below :
Q: When entered in the appropriate event procedure, which of the following statements cancels the key…
A: If a key is pressed within a control, then the “KeyPress” event will occur. The “KeyPress” event…
Q: Which of the following statements will print a variable x with the value 5 as 005? print('%03d' % x)…
A: Given:
Q: How about this 3) Prompt the user to search for the student id by the student's name.
A: #include <stdio.h>#include <string.h>#include <stdlib.h>// create struct for…
Q: Which of the following statements is equivalent to the statement dblTotal = dblTotal + dblSales? a.…
A: dblTotal = dblTotal + dblSales The shorthand to write the above statement is Option a. dblTotal +=…
Q: Which of the following initialisations is correc? int a= 5*6.5.
A: Please find the answer below :
Q: 32. Which of the following lex variable stores the most recently matched text? O yytext O yyleng О…
A: Given: Which of the following lex variable stores the most recently matched text?
Q: Indicate what relational expressions are True. (Select all that apply) "250">"50" "silly">"SILLY…
A: Solution "250" > "50" = False "silly" > "SILLY" = True "100" > "1001"…
Q: Which of the following characters is metacharacters a + b ? c * d all above
A: Answer: d all above
Q: Which of the following statements assigns the string “London” to the strCity member of the Country…
A: ASSIGNMENT IN A VARIABLE: To assign a string in a variable, the string must be enclosed in double…
Q: Which of the following If clauses determines whether the user pressed the % key? a. If…
A: If a key is pressed within a control, then the “KeyPress” event will occur. When a user is pressing…
Q: Allow user to enter the price of 3 meals, calculate total price and print the most expensive total…
A: Input Process Output 3 meals price for 15 customers Initialize maxPrice to 0 For i from 1 to 15:…
Q: 3. Which among the following shows a valid use of the Direction enumeration as a parameter to the…
A: Ans - b) moveCharacter(x: 0, y: 0, facing: Direction.north) option (b) would be correct.
Q: Which of the following statements declares an object to represent the pseudo-random number generator…
A: Explanation: In VB.NET, the Random class represents a pseudo-random number generator. This…
Q: Which of these keywords is used to prevent content of a variable from being modified? O last O…
A: Actually, keywords are always should be lowercase.
Q: Which one of the following (3 ? variable is initial correctly bool x= True; O None
A: bool x=True is wrong syntax because it will assign capital ‘t’ in True but it will syntax error…
Q: what is the value of result variable after the following code:- * Dim result = 0 RadioButton1 If…
A: Answer : - option A) 12
Q: Which of the following conditions determines whether the number in the dblPrice variable is greater…
A: The correct option is C, that is, dblPrice > 15.45 AndAlso dblPrice < 25.75.
Q: Which of the following operator has the lowest precedence? ]&& ++ II
A: Operator precedence tells the order in which they will be evaluated.
Q: e following procedure is inter PROCEDURE AnyPairs IF (x = y) RETURN (true) ELSE RETURN (y = z) %3!…
A: The following procedure is intended to return true if at least two of the three parameters are equal…
Q: Which of the following operators ensures that both conditions must be true? &&
A: && , || , ^ are called as logical operators == is a relational operator
Q: Which of the following statements prevents a form from being closed? a. e.Cancel = False b. e.Cancel…
A: Preventing a form from being closed: The “Cancel” command is used to prevent the computer from…
Q: Which of the following will not increment the variable x value by one?
A: Summary: In this question, we have been one multiple-choice question, and we have to choose the…
Step by step
Solved in 2 steps
- APPLICATION MUST PROMPT USER TO FILL OUT A FORM(NAME, ACCUPATION, ETC. You have the ability to create a C# application of your choice. Some example of such applications are classic arcade games! These games follow very simple computational and graphical rules, and so are quite feasible to put together. Some examples include: Pong, Breakout, Snake, Pac-Man, Space Invaders, other example will be making board games (e.g., Chess, Checkers, Backgammon). Utilities programs also will be accepted like Notepad or Paint using C# GUI. Other examples include and not limited to: Business Application with Database connectivity Hotel Reservation Application Car Rental Application Gaming Application Painting or Drawing Application Web application Store/Warehouse management application IO Application Chat/Network ApplicationProgramming Language: C++ I need the codes for extRomanType.cpp, extRomanType.h, main.cpp, romanType.cpp, romanType.h // I will definitely rate and give thumbs up. Here are the initial codes, this might help in building the program. main.cpp #include <iostream> #include "extRomanType.h" using namespace std; int main() { extRomanType num1("XXXIV"); extRomanType num2("XV"); extRomanType num3; cout << "Num1 = " << num1 << endl; cout << "Num2 = " << num2 << endl; cout << "Num1 + Num2 = " << num1+num2 << endl; cout << "Num1 * Num2 = " << num1*num2 << endl; cout << "Num1 - Num2 = " << num1 - num2 << endl; cout << "Num2 - Num1 = " << num2 - num1 << endl; cout << "Enter two numbers in Roman format: "; cin >> num1 >> num2; cout << endl; cout << "Num1 = " << num1 << endl; cout…File Edit View programming Question Write C# program for swapping two numbers using XOR operator: Given two numbers and we have to swap them.?
- Assignment #2 Instructions: Through this programming assignment, the students will learn to do the following: Learn to work with command line options and arguments Gain more experience with Makefiles Gain more experience with Unix Learn to use some of the available math functions available with C Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to perform a mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate the…solve in c++ Create an application for a supermarket owner. The owner would like to storeup to 50 items. Each item is represented by an ID and a price.The program should ask the user if he/she wants to do one of the followingtasks:1. Enter an item ID and price2. Retrieve the price of a specific item3. Display all items within a specific range of prices4. Delete an item5. Display all items6. Delete all itemsNote: The items should be stored in memory sorted based on price. The six tasks should be implemented as functions.The program should run continuously until the user presses 'e' to exitin C++, the definition of any variable (e.g. int x;) tells the compiler about ________. all of the above the variable's name and its value the variable's name the type of data a variable will hold the variable's data type and its value
- Using C code Create a library named SoccerPlayer that defines the soccer player metrics. A player has the following characteristics: - Name: player’s first and last names (a string of 50 characters max) - Age: player’s age - Goals: number of goals scored in his/her career. - Games: number of games in which the player participated. Write a header file ‘ SoccerPlayer.h ’ which contains user defined structure representing a player ( soccer_player_t ) and functions to accomplish the following tasks: - Scan or read a player’s metrics. - Print a player’s metrics as follows (example): Name: Paul Smith Age: 35 years Goals scored: 310 goals in 1200 gamesin c++ Write a program to generate a random number between 1 - 100, and then display which quartile the number falls in. First quartile is 1 - 25 Second quartile is 26 - 50 Third quartile is 51 - 75 Fourth quartile is 76 - 100 To generate a random number, follow these steps: include necessary header files #include <cstdlib> //for random functions #include <ctime> //for time functions set constants for the minimum and maximum values of the desired range const int MIN_VALUE = 1; //minimum range value const int MAX_VALUE = 100; //maximum range value seed the random number generator (RNG) with a unique unsigned int value - system time! unsigned seed = time(0); //system time in seconds since 1/1/1970 srand(seed); //seed the RNG get a random number in the desired range int num = (rand() % (MAX_VALUE - MIN_VALUE + 1)) + MIN_VALUE; The program should: contain header comments as shown in class display a "hello" message (more descriptive than shown in sample)…Programming Language: C++ 1. A constant cannot be passed by reference. = true or false?
- C+ Strings This laboratory work covers the following concepts in C++ programming language: the string class > Create a Win32 Console application and an empty C++ source file in Visual Studio IDE to be able to start typing programs. Task-1: Write a C++ program to facilitate the usage of several string-handling functions. The program shoukd present a menu for the choices available. The options might be to create, insert, append, erase, reverse, and print. The program should ask the user what required by the function to prepare the real function call. For instance, for the insert function, the string might be printed on the screen as a reminder first, and then the start and finish indexes might be requested from the user. You should be aware of the run-time issues that might result due to user mistakes. Try to prevent them!Develop a C# application that allows the user to calculate the fat of his daily food. The user should enter: • The total number of calories for a food item • The number of fat grams in that food item Accordingly, the application will calculate and display: • The number of calories from fat • The percentage of calories that come from fat Additionally, the applications categorizes if the food is considered low fat, normal fat, or high fat as the following rule. • If the calories from fat are less than 30% of the total calories of the food, the food is considered low fat. • If the calories from fat are between 30% and 40% of the total calories of the food, the food is considered normal fat. • If the calories from fat are more than 40% of the total calories of the food, the food is considered high fat. Note: Make sure the number of calories and fat grams are not less than 0. Also, the number of calories from fat cannot be greater than the total number of calories. If that happens, display…Assignment #2 Instructions: Through this programming assignment, the students will learn to do the following: Learn to work with command line options and arguments Gain more experience with Makefiles Gain more experience with Unix Learn to use some of the available math funtions available with C Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to perform the mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate…