To write a multi line Comment you need to use the structure الاجابات // comment /* comment /* /* comment */ //comment//
Q: def area(side1, side2): return side1 * side2 s1 = 12 s2 = 6 Identify the statements that…
A: A. print(f'The area is {area(s1,s2)}') B. answer = area(s1,s2) D. area(s1,s2)
Q: Write the following 3 assignments: • Write an assignment statement that assigns the int literal…
A: Required: Write an assignment statement that assigns the int literal 16741656 to a variable named…
Q: Many of the following lines will generate a JSP compile error. Pick the line number which compiles…
A: The correct answer is "D. line 6" That is My color is <%=color%> Explanation:…
Q: Design a pseduocode function named timesTen that accepts an integer arguement. When the function is…
A: Function timesTen Pass In: any integer "num" as parameter Compute : result = num *…
Q: a program that will display the geometric sequence of an input number and input common ratio. This…
A: It is defined as a general-purpose, procedural, imperative computer programming language. It has…
Q: Programming Language is (C#), Thank you. Write a code under Button named "ToUpper" given in…
A: Step 1: Add listBox1 to the form. Step 2: Add listBox2 to the form. Step 3: Add button1 to the form.…
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: Explain inline comments.
A: GIVEN: Explain inline comments.
Q: In conditional statements it is possible to test the datatype with is instance. However, it is…
A: I have given the whole code below with output.
Q: FizzBuzz Interview Question Create a function that takes a number as an argument and returns "Fizz",…
A: NOTE - I have used python programing language for solving the problem. Here I have defined the…
Q: The portion of a program within which you can reference a variable is the variable’s ___________.…
A: please find the answer in next step below:
Q: tunction name: is_long o parameters:a string word • returns: True if word has more than 12…
A: I have given an answer in step 2.
Q: Question 6 options: The upper level part of the syntax analysis process is called
A: Given: Question 6 options: The upper level part of the syntax analysis process is called
Q: Programming Convention vs Syntax Syntax(rules) Convention(good practices) Ex: Variable names should…
A: Programmers use syntax, a set of rules for coding, to write code but there are also programming…
Q: A __________ can occupy multiple consecutive lines in a program. a. block comment b. square comment…
A: Block comment: A block comment will start with forward slash and an asterisk (/*) and the ends with…
Q: An expression can contain arithmetic, comparison, and logical operators. Indicate the order of…
A: To find the precedence of the arithmetic, comparison, and logical operators. Arithmetic operator:…
Q: C PROGRAMMING ONLY) 4. Man's Best Friend by CodeChum Admin We all know what man's best friend is.…
A: #include <stdio.h>#include <stdlib.h> typedef struct Dog{ char *breed;}Dog; void…
Q: function name: cap_at_100 o parameters: a number grade • returns: the grade with a maximum of 100 o…
A: In python a function is defined using syntax def Function-Name( Parameter1,Parameter2,. . . .…
Q: C programming language *provide comments Inside the main function write code that will ask the…
A: Let us see the solution Here we are writing a simple C program that calculates the area and…
Q: C# simple beginner program! Create a comment header containing information: Course & section,…
A: C# program for simple IF game is given below…
Q: Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below…
A: function sumArray(arr) { let sum = 0; for (let i = 0; i < arr.length; i++) { sum+= arr[i] }…
Q: Using Visual Basic A function named GetPayed receives a Double value and returns a Double value.…
A: Here have to determine function named GetPayed receives a Double value and returns a Double value.
Q: Program statement in programming language 'PASCAL' usually ends with a a. colon b. semicolon c.…
A: Required: Program statement in programming language 'PASCAL' usually ends with a
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: Swift code to solve the given problem
Q: Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you…
A: Python used to answer this question
Q: Write the syntax for the MsgBox function. 2. Enumerate the different arguments of the MagBox…
A: Actually, the function is a group of statements.
Q: Create a program that has the following methods and corresponding usage. AreaCircle - compute…
A: Introduction: In this question, we are asked to write a C# programming to create the two methods :…
Q: Write a function in Visual basic application that can be used to calculate the balance (change) to…
A: a function BalanceSheet is taken into consideration. Item1 As Integer, Item2 As Integer, Item3 As…
Q: This is an operator used to assign a value to a variable. It works by transferring the value on its…
A: Introduction: Here we are required to explain which of the given operators are used to assign the…
Q: Function Name: compliments Parameters: answer1 - a boolean (True or False) representing whether the…
A: Solution:The following function displays the outputs as string of compliments.
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: #include <iostream> #include <string> using namespace std; struct fruitData {…
Q: def area(side1, side2): return side1 * side2 s1 = 12 s2 = 6 Identify the statements that…
A: Here we have a function named area(), which takes 2 input parameters and returns the area. Now, to…
Q: FizzBuzz Interview Question Create a function that takes a number as an argument and returns "Fizz",…
A: 1) Since you have not specified programming language, I have written program in python. 2) Below is…
Q: 7. How would you declare a variable storing a person's name? String name = Jeff; String name =…
A: Answers of the problem is given below. in step 2 A declaration of flexibility in a computer…
Q: Capitalize initial keyword – This is a rule while writing a pseudo code. T/F
A: According to the rules of writing the pseudocode, it is important to Capitalize the initial keyword.…
Q: Private Sub btnDisplay_Click (...) Handles btnDisplay.click "Triple a number Dim num As Double = 5…
A: Given that a visual basic program to find the corresponding output when button is clicked. Private…
Q: Logical Operator Function Argument Format Specifier
A: Lets see the solution.
Q: In a program, a may fill several consecutive lines. block comment b. square comment c. multiline…
A: Task : Choose the correct option for given question.
Q: Create a C++ Program that will identify the Discount Rate of a shopper based on issued loyalty card.…
A: The question asks to program a c++ code such that it will show the discounted price based on the…
Q: lection statement (Not a complete program) to determine the wave description based on the wave…
A: Here i used nested else if ladder for the problem statement Detailed description is given below
Q: programming language *provide comments Write a set of statements in the main function that…
A: Required: C programming language *provide comments Write a set of statements in the main function…
Q: VB question j. Designers generally use __________ colour for the background, and __________ for the…
A: Question j. Designers generally use __________ colour for the background, and __________ for the…
Q: Problem 1 |begin{enumerate}[label=(\alph*)] \ item The domain for all variables in the expressions…
A: SOLUTIONS: Part (a) As the domain of all the variables are set of real numbers. Hence, for every…
Q: Python please: If the score is between 90 and 100, the grade is A, and the teacher comment is…
A: score = int(input("Enter student score: ")) print() if score >= 90 and score <= 100: if…
Q: item The domain for all variables in the expressions below is he set of real numbers. {\bf Determine…
A: Blank 1: Here domain of all variables belongs to the set of real numbers. Therefore, for every…
Q: Create a C++ program that displays a table consisting of ten rows and four columns. The first column…
A: cout<<i<<"\t"<<(i-(double)i/10)<<"\t"<<(i-(double)i*15/100)<<"\t…
Q: A function used to display the argument list on the monitor. It sometimes needs the control string…
A: The answer is given below.
Q: lz do it c programming in a basic way as possible and ((plz do the it with one loop and explen the…
A: #include<stdio.h> // its header file of c // int main() { int i; // first we…
To write a multi line Comment you need to use the structure
Step by step
Solved in 2 steps
- An expression can contain arithmetic, comparison, and logical operators. Indicate the order of precedence for the three types of operators by placing a number (1, 2, or 3) on the line to the left of the operator type. __________ Arithmetic __________ Logical __________ ComparisonIn a program, a may fill several consecutive lines. block comment b. square comment c. multiline comment d. machine comment a. block comment b. square comment c. multiline comment d. machine commentRe-write code Comment also in code Provide right code Gurantee downvote for in correct Thank you have a nice day
- In C langauge Code with comments and output screenshotC programming language *provide comments Inside the main function write code that will ask the user for the radius of a circle and will display the circle’s diameter, circumference, and area. Use a constant value 3.14159 for pi. The formula for calculating the area is? = ??2where ? is the radius of the circle. The formulas for calculating the circumference are? = ?? ?? ? = 2??where ? is the diameter of the circle. When displaying all values, only display up to hundredths (2 decimal places).The Structure statement is usually entered in the form’s__________ section in the Code Editor window.
- Lab: switch Note: switch syntax is only applied for service selection. You can use if – else syntax for other comparison. Using switch syntax to write a program that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Its rates vary, depending on the type of service. The rates are computed as follows: Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minutes. Premium service: $25 plus For calls made from 6:00 a.m to 6:00 p.m., the first 75 minutes are free; charges for more than 75 minutes are $0.10 per minute. For, calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for more than 100 minutes are $0.05 per minute. Your program should prompt the user to enter an account number, a service code (type char), and the number of minutes the service was used. A service code for r or R means regular service; a service…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;}The empty string in Visual Basic is represented by which named constant?
- Using Visual Basic 2019 programming language: VB.NET Franks Software Sales AssignmentYou have been hired by Franks Software Sales to write a program to figure the total cost to customers that order Slappy’s software packages. Discounts are given based on the number of units sold:Number of Units Sold Discount Amount 1–9 None10 – 19 20% 20 – 49 30% 50 – 99 40%100 or more 50% Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Style properties. The program should read the number of units sold and figure a base cost. The units cost $99 each. A discount should then be figured and subtracted from the base cost. The subtotal, discount amount and total cost should be displayed, as currency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing. Use constants for the discount rates and base price.Copy your code and paste it into a…You are required to draw a flow chart diagram and add some comment to the cod #include<iostream>#include <string>#include<conio.h>using namespace std;int main(){//for prointing welcome message cout<<"------------------------------"<<endl; cout<<" Welcome to Muscat Auto Workshop"<<endl; cout<<"---------------------------------"<<endl; cout<<"*Please provide your name & car plate number & membership status(Y/N) *"<<endl;string customer_name,car_plate_number;int choice_service,discount;char membership;double total;cout<<"Customer`s Name :";cin>>customer_name;cout<<"Car plate number :";cin>>car_plate_number;cout<<"Are you membership (y/n): ";cin>>membership;cout<<"Details services charges are as follow:"<<endl;cout<<"*1- Basic Tuning: 50 OMR *"<<endl;cout<<"*2- Software Re-installation: 60 OMR *"<<endl;cout<<"*3- Parts Replacement: 100…php question Write a form validation function that makes sure the Name is filled in and uses a regular expression to validate it is just letter on the form PlayerName.