Write a line of code that asks the user to Enter the original retail price , and stores the value with the variable name original_price . Please ask the question to match the wording in bold.
Q: You declare a named constant with which keyword? 1. Constant 2. Const 3. NamedConstant 4. Dim
A: Given: You declare a named constant with which keyword?1. Constant2. Const3. NamedConstant4. Dim
Q: import random import math Which of the following will assign a random integer from 30 to 90,…
A: In Python, Both random.randint(start, end) and random.randrange(start, end) is used to get a random…
Q: Write the code to find the month with the best total sales for the company. You may assume that the…
A: double bestTotSales = monthSales[0]; int index = 0; for(int i = 0; i < 12; i++) {…
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: Each of the following are input controls. Please give an example of how they may be used: Thank…
A: As per guidelines ,we are giving the solutions for first three.They are as follows.
Q: Consider the following code to answer below questions: public double calculatePerimeter(Shapes []…
A: Answer 1) In the above code violated, KISS Principle. KISS Stands for keep it simple and stupid…
Q: 1.)Which of the following identifier/variable name is considered as invalid? Select one: a. none of…
A: 1) rules for constructing variables Alphabets, numbers, and underscores can all be used in a…
Q: Write a statenent that increments (adds 1 to) one and only one of these five…
A: if(speed<0) { ++reversedrivers; } else if(speed>0 || speed<1) { ++parkedDrivers; } else…
Q: Which of the following is used to enclose fields in a calculated expression? square brackets plus…
A: For an arithmetic expression we only use round brackets (). Dollar sign are never used which makes…
Q: Which of the following identifier/variable name is considered as invalid? Select one: a. none of…
A: let us see the answer:-
Q: Write an application that will take a 5 digits integer from user and calculate the sum of all digits…
A: Below is the required code in C language. Program approach: Include necessary header files to get…
Q: Variables Which of the following variable names will result in an error? int first code SellingPrice…
A: Definition: Variables: It is a container that is mainly used for the storing of the values. In java…
Q: Consider the following code. What should be the smallest value assigned to num such that the number…
A: Ans : the smallest value that assigned to num such that the number 3 is printed from the last…
Q: Which of the following statements is equivalent to the statement dblTotal = dblRate * dblTotal? a.…
A: The answer is given below,
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: we have a book object but we do not give it a "subtitle" property, the following code will return…
A: Please find the answer below :
Q: Jonny as a school teacher conducted the test in the class and students submitted responses along…
A: Required:- Jonny, as a school teacher conducted the test in the class and students, submitted…
Q: Which of the criteria affects whether the intNum variable's value is less than 0 or higher than…
A: Which of the criteria affects whether the intNum variable's value is less than 0 or higher than…
Q: Select the appropriate relational operator on the right hand side to fill in the blank so that it…
A: Required: Question 3 Select the appropriate relational operator on the right hand side to fill in…
Q: In which of the following variable declarations does the declared variable have a value of null? COW…
A: Coded using Java.
Q: variable, which of the following statements are valid assignments? If a statement is not valid,…
A: Rules for assign value for numeric variable ===================================== -> Variable…
Q: Which of the following values/results are of the datatype float? Select one -True -34 -‘Please…
A: Given: Which of the following values/results are of the datatype float? Select one -True -34…
Q: 1. Evaluate the expressions For each of these expressions, indicate the value and type of each:…
A: NOTE: - Since the programming language is not mentioned, the below explanation is in C++. Order of…
Q: The following variable names give an indication of the data each stores. For each variable, specify…
A: As per our honor code, we are answering the first 3 sub parts. Please re-post the remaining as a…
Q: Based on the statement below, what will be the result? Int age = 10; Select one: O a age stores only…
A: 1. B - Age will have a value of 10 Int age = 10; In this answer is B age will have a value of 10…
Q: In the following expression, the variable truckWeight has the value 70000 and the variable…
A: Explanation: here truckweight < weightLimit actually trying to compare 70000 < 80000. which is…
Q: What object is needed to get data from the end user? Select one: a. Button b. Form c. Label d.…
A: INTRODUCTION: Here we need to tell what object is needed to get data from the end-user and how many…
Q: In Java, which is the correct syntax for initializing a variable? - int a; - double gpa = 3.54; -…
A: Option 1 : int a; It is correct syntax for declaring a int value if we want to declare static…
Q: X is integer value based on your the last TWO(2) digit Matric Card number. If the value X is ODD,…
A: #include<stdio.h>int main(){ int x; printf("Enter the value of x: "); scanf("%d",&x);…
Q: Create two parameters, one converts km to cm and the other converts km to meter. Ask the user to…
A: 1 kilometre is equal to 1,000 meters, which is the conversion factor from kilometres to meters.
Q: Question No: 01 02123nt505 This is a subjective question, hence you have to write your answer in the…
A:
Q: Suppose the Double variable num has the value 123.4567. What value will the following statement…
A: num will get the value as 123.4600
Q: Create a code that checks if you can buy alcohol in Norway, the type of alcohol, if you can enter in…
A: Code in step 2
Q: Which of the criteria affects whether the intNum variable's value is less than 0 or higher than…
A: Required: Which of the criteria affects whether the intNum variable's value is less than 0 or…
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: Consider the following code to answer below questions: public double calculatePerimeter(Shapes []…
A: Principle of method is violated in line 1 because when you write the method with parameters it…
Q: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
A: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
Q: Which of the following statements places input into the variable "value"? a) value >> cin; b) cin >>…
A: The cin object in C++ is an object of class istream. It is used to accept the input from the…
Q: write down the test cases for the mobile application in the following format (black box testing)
A: Black Box Testing : Black Box Testing is a software testing method in which the functionalities of…
Q: What does this code produce? FOR varName, DWORD varName ENDM
A: It is used to Create Five (monday,tuesday,wednesday,thursday,friday) DWORD variable. Here Each…
Q: Which statement will display The price is 4.99 Assume a variable called price stores the value…
A: Given, Choices: print(The price is 4.99) print("The price is" , price) print('The price is…
Q: Comment Box system with nested reply using codeigniter User registration and login
A: Comment Box Collects thought from your customers for a particular post and gives you an…
Q: Which of the following variable names will result in an error? int first code SellingPrice
A: There are some standards one must follow while declaring a variable name
Q: Include a comment in the code that includes the assignment name, your name, and the date The web…
A: Code: <html> <!--Assignment Name, User Name, Date--> <script>…
Q: Which of the following statements increments the decTotal variable’s value by the value stored in…
A: An accumulator variable is used to add together something. Two tasks are associated with…
Q: From the following options, what is the correct way of declaring a variable? i.…
A: A variable can not start with a number, so a is not true. other are correct
Q: if the productCost and productprice are numeric variables and productName is a string variable,…
A: productCost = 100 : Answer = Valid productPrice = productCost : Answer = Valid productPrice…
Q: help with an example by utilizing Java, create a ComboBox control to allow a user to select choices…
A: A Java program is as follows, File name: “Car.java” public class Car extends javax.swing.JFrame {…
Write a line of code that asks the user to Enter the original retail price , and stores the value with the variable name original_price . Please ask the question to match the wording in bold.
Step by step
Solved in 3 steps with 1 images
- What does :last serve as in the following statement? 'SELECT FName, LName from users where LName = :last'TabIndex values begin with the number 1. True or False?Create a list of all customer numbers along with text indicating whether the customer has been referred by another customer. Display the text “NOT REFERRED” if the customer wasn’t referred to JustLee Books by another customer or “REFERRED” if the customer was referred.
- Which of the following statements is equivalent to the statement dblTotal = dblRate dblTotal? a. dblTotal = dblRate b. dblTotal = dblRate c. dblRate = dblTotal d. dblRate = dblTotalThe code has an extra 11 on the 2nd row which doesn't match the questionCreate an application that allows you to enter n customer names and phone numbers.
- Which one of the following statement will display the data value of the head_ptr of section 5.1? Group of answer choices (head_ptr->data)( ); *head_ptr; *head_ptr.data( ); head_ptr.data( ); (*head_ptr).data( );Fill in the blank to complete the CREATE TABLE command below so that the type for customerzip would be fixed length 5-character string. CREATE TABLE customer ( customerid CHAR(7) NOT NULL, customername VARCHAR(15) NOT NULL, customerzip _______ NOT NULL, PRIMARY KEY (customerid) );Task 3: The InstantRide Finance team wants to know the average discount amounts for each car in the InstantRide. Calculate the average discount amount as monetary value for the travels where a discount is applied. You need to create a subquery over the TRAVELS table to retrieve CAR_ID and DISCOUNT_AMOUNT, calculated with 2 decimals using the ROUND function. To calculate the DISCOUNT_AMOUNT, multiply the TRAVEL_PRICE by the TRAVEL_DISCOUNT where the TRAVEL_DISCOUNT value is not NULL. Round the result to 2 decimals. Then you can use this subquery to get the CAR_ID and AVG of DISCOUNT_AMOUNT values, once again using the ROUND function on the average results. Group the results by the CAR_ID. Use CAR_ID and DISCOUNT_AMOUNT as column aliases and return it back to the Finance team. Task: Calculate the average discount for each car. (SQL Database Test)
- Task 3: The InstantRide Finance team wants to know the average discount amounts for each car in the InstantRide. Calculate the average discount amount as monetary value for the travels where a discount is applied. You need to create a subquery over the TRAVELS table to retrieve CAR_ID and DISCOUNT_AMOUNT, calculated with 2 decimals using the ROUND function. To calculate the DISCOUNT_AMOUNT, multiply the TRAVEL_PRICE by the TRAVEL_DISCOUNT where the TRAVEL_DISCOUNT value is not NULL. Round the result to 2 decimals. Then you can use this subquery to get the CAR_ID and AVG of DISCOUNT_AMOUNT values, once again using the ROUND function on the average results. Group the results by the CAR_ID. Use CAR_ID and DISCOUNT_AMOUNT as column aliases and return it back to the Finance team. Task: Calculate the average discount for each car. You need to first calculate the discount amount for each car using the ROUND function. Then use a subquery to calculate average discount amount using AVG…Task 3: The InstantRide Finance team wants to know the average discount amounts for each car in the InstantRide. Calculate the average discount amount as monetary value for the travels where a discount is applied. You need to create a subquery over the TRAVELS table to retrieve CAR_ID and DISCOUNT_AMOUNT, calculated with 2 decimals using the ROUND function. To calculate the DISCOUNT_AMOUNT, multiply the TRAVEL_PRICE by the TRAVEL_DISCOUNT where the TRAVEL_DISCOUNT value is not NULL. Round the result to 2 decimals. Then you can use this subquery to get the CAR_ID and AVG of DISCOUNT_AMOUNT values, once again using the ROUND function on the average results. Group the results by the CAR_ID. Use CAR_ID and DISCOUNT_AMOUNT as column aliases and return it back to the Finance team. Task: Calculate the average discount for each car.The InstantRide Finance team wants to know the average discount amounts for each car in the InstantRide. Calculate the average discount amount as monetary value for the travels where a discount is applied. You need to create a subquery over the TRAVELS table to retrieve CAR_ID and DISCOUNT_AMOUNT, calculated with 2 decimals using the ROUND function. To calculate the DISCOUNT_AMOUNT, multiply the TRAVEL_PRICE by the TRAVEL_DISCOUNT where the TRAVEL_DISCOUNT value is not NULL. Round the result to 2 decimals. Then you can use this subquery to get the CAR_ID and AVG of DISCOUNT_AMOUNT values, once again using the ROUND function on the average results. Group the results by the CAR_ID. Use CAR_ID and DISCOUNT_AMOUNT as column aliases and return it back to the Finance team.