double my_num = 100.0; b- int $my_num = '10000'; c- int myNum 1000; a- 4) Which one is NOT a valid variable declaration? d- int mynuml = 100000;
Q: The BMI(Body Mass Index) number is calculated by the following equation. Mass *703 Height? BMI %3D…
A: C++ Program for above : #include <iostream> using namespace std; int main() { // get…
Q: A __________ can be read, but it cannot be modified. a. limited property b. temporary value c. field…
A: Read-only property: Read-only property has a get method, but it does not have any set method to…
Q: weight and the name of a planet. Use an enumerated type called planetType to represent the planets…
A: Actually, the code has given below:
Q: at converts 47 degrees to radians and assig
A: Below statement that converts 47 degrees to radians and assigns the result to a double variable.
Q: TOPICS: Data and Expressions MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST…
A:
Q: Computer Science You have been asked to create a subroutine that will ask the user for his/ her…
A: We are using Javascript and HTML to show the dialog box with the required output The code is given…
Q: Enter your nickname: Gi Enter an integer: 19 Enter an integer: 4 Good day, Gi. If you divide 19 by 4…
A: nick_name = input("Enter your Nick name: ")dividend = int(input("Enter Integer: "))devisor =…
Q: #include using namespace std; void myfunction(int num2,int num1); int main(){ myfunction(5,2);…
A: Please find the answer below :
Q: Look at the following code.double value = 29.7;double *ptr = &value;Write a cout statement that…
A: Given: Look at the following code.double value = 29.7;double *ptr = &value;Write a cout…
Q: #include using namespace std; void myfunction(int num2, int nu int main(){ myfunction(5,2); return…
A: Function declaration is done in the third line saying myfunction accepts two integer parameters and…
Q: Question 1 Create a VB.NET Console Application that does the following: Create a variable of Integer…
A: Module VBModule Sub Main() Dim marks as integer' to declare marks as integer Dim grade as…
Q: V/ This pseudocode is intended to display employee net pay values // All employees have a standard…
A: The solution for the above given question is given below:
Q: True or False An error will occur if the compiler finds a statement that tries to change the value…
A: The field which cannot be changed by any statement in the class is called as constant field. If any…
Q: Class-level variables are declared using the Private keyword.a. Trueb. False
A: Class level variables Class variables are also known as static variables. These class level…
Q: double 6my_num = 100.0; b- double my_num ='10000'; c- double_myNum = 1000; d- double my num = 100.0;…
A: A variable declaration always contains two components: the type of the variable and its name. Type…
Q: Part C: Assuming variable starts with the value 10, what will the following code fragment prints…
A: This question is checking the performance of the increment operator. Normaly when value++ or ++value…
Q: Subscripted variable is any type such as (A) Int (B) Float (C) Int, float or char (D) Char
A: Variables are used to store information to be referenced and manipulated in a computer program.
Q: Design an application that accepts 10 numbers and displays them in descending order.
A: Given: Design an application that accepts 10 numbers and displays them in descending order.…
Q: I need help for Microsoft Visual C#, 7th edition, chapter 5 debugging exercise 5-2 // Program asks…
A: // Program asks user to enter a stock number // If the stock number is not 209, 312, or 414 the…
Q: V/ This pseudocode is intended to display employee net pay values. // All employees have a standard…
A: 1) Pseudocode in question does below activity It declare variables name, hours, rate, DEDUCTION,…
Q: Code an application that determines how many gallons of water is needed for a pool. Create Void…
A: The program calculates the gallons of water required for completely filling the pool as per user…
Q: Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you…
A: Python used to answer this question
Q: TOPICS: Data and Expressions MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST…
A: logic:- read numerator and denominator While dividing numerator and denominator type cast any one…
Q: Introduction to python programming
A: The python program and its approach are given below: - Approach: - Creating a nested list and…
Q: True or False An enum declaration can only appear inside the application’s namespace.
A: Enumerated Types: An enumerated data type is a programmer defined data type. The elements in this…
Q: .35 (Sides of a Triangle) Write an application that reads three nonzero values entered by the user…
A: #include <iostream>using namespace std; int main(){ double a, b, c;…
Q: If value is an identifier of int type and is holding value 200, is the following statement correct?…
A: introductoin:Int datatype is used in holding values:
Q: The declaration statement for a named constant requires . a. a data typeb. a name c. a value d. all…
A: For the declaration of a named constant requires data type, name and value. Hence, the correct…
Q: What is the benefit of being able to define an initial value when you can assign a value to a…
A: Introduction: Variables hold data like numbers and words, whereas operators are symbols that execute…
Q: 2.25 (Divisible by 3) Write an application that reads an integer and determines and prints whether…
A: NOTE : As the question is not specific about the programming language to be used to code the…
Q: When using a printf() statement, what syntax do you use to print the value of an "int"? %d %c %s %f
A: - The question wants to know that when using a printf statement what syntax we use to print an…
Q: Write a loan calculator program that computes both monthly and total payments for a given loan…
A: As no language was mentioned, So, solving with C++. #include<iostream> using namespace std;…
Q: Write method IsEven that uses the remainder operator (%) to determine whether an integer is even.…
A: Program : import java.util.Scanner; public class Main { public static boolean isEven(int z){…
Q: Complete the flowchart & then write pseudo-code while taking manual attendance in a class
A:
Q: A(n) __________ is the part of a program in which a variable may be accessed.a. declaration spaceb.…
A: A scope is the part of a program in which a variable may be accessed.
Q: View //This pseudocode is intended to display employee net pay values. E//All employees have a…
A: The solution for the above given question is given below:
Q: In the code get_grade_stats(scores) scores refers to its O argument O arguments O parameter
A: Function parameter & argument: Function parameters and arguments are often applied for the same…
Q: What is the difference between these two statements? void showValues(int num) void showValues(int…
A: Function overloading: One name multiple forms are the feature of the function overloading. A single…
Q: Q1 Answer the following: L It is possible in visual basic 6.0 to detect the errors while the…
A: The Answer is in given below steps
Q: Question 3 Write an application that prints each number between 1 and 100 that are divisible by 5 or…
A: Code: public class Main{ public static void main(String[] args) { //declaring required variables…
Q: Complete the following if-else statement that assigns true to a boolean variable fever if the double…
A: 1) Syntax of if-else statement in Java is if (condition) { // block of code to be executed…
Q: Write an application that handles a student report card. The application shall save the marks of…
A: Solution C# PROGRAM using System; //computer science, maths, english //75 congratulationa, else…
Q: ++ program int quadrant() This method will return at which quadrant does this point lie in our…
A: Required: C++ program int quadrant() This method will return at which quadrant does this point lie…
Q: A __________ specifies which parameter an argument should be passed into. a. named argument b.…
A: Named argument: C# specifies the parameter to which an argument must be passed to. For specifying…
Q: Look at the following declaration:enum Flower { Rose, Daisy, Petunia } Write a statement that…
A: Statement that declares a variable of the enumerated type: Below statement that declares a variable…
Q: int my_num = 100.0; b- int Smy_num = '10000'; c- int myNum = 1000; d- int my num = 100000; a- 1)…
A: One is a valid variable declaration
Q: (Health application: BMI) Revise Listing 3.2, ComputeAndInterpretBMI.cpp, to let the user enter…
A: Sample Response: //C++ program to compute BMI by using weight in pounds, height in feet and…
Q: V7 This pseudocode is intended to display // employee net pay values. All employees have a standard…
A: Program plan: Declare the variable name Define the variable EOFNAME as "ZZZZ" Define DEDUCTION as…
Q: 1. Compute rainfall | This program prompts the user to enter the current month, using 1 for January,…
A: public class Rain { //method that query the user for 1 to 10 days of rainfall for each month public…
Step by step
Solved in 2 steps
- int my_num = 100.0; b- int $my_num = '10000': int myNum = 100%3B d- int my num 100000; a- 1) Which one is a valid variable declaration? C-= 1000; int myNum b- double my_num= 100; 4) а- Which one is NOT a valid variable declaration? c- int my_num = '10" d- int mynuml = 10 7/P1) Which one is a valid variable declaration? a- int my_num = 100.0; b- int $my_num = '10000'; c- int myNum = 1000; d- int my num = 100000;
- 1) double 6my_num = 100.0; b- double my_num ='10000'; c- double _myNum = 1000; d- double my num = 100.0; a- Which one is a valid variable declaration?Assume the following variable definitions: int a = 5, b = 12; double x = 3.4, z = 9.1; What are the values of the following expressions? A) b/ a 2 B) x* a 17.0 C) static_cast (x * z) D) static_cast ( static_cast ( x) * static_cast (z) )Assume that qty and salesReps are both integers. Use a type cast expression to rewrite the following statement so it will no longer perform integer division.unitsEach = qty / salesReps;
- Assume the following variables are defined: char ch; double interest ; string name ; Assign each variable to a value of the correct data type.for (j = 5;_________;j++){printf("%d", j);} What must be the relational operator in order to display 1 3 5 7 9Assume the following variable definitions: int a = 5, b = 12; double x = 3.4, z = 9.1; What are the values of the following expressions? A) b / a B) x * a C) static_cast <int> (x * z) D) static_cast<double> ( static_cast<int> ( x) * static_cast <int> (z) )
- Evaluate the following expressions, assume the following declarations: int a=28; int b=4; int c=2; int z=0; z*=a/b-c; What is the value of z after expression is evaluated?In C++ assume that qty and salesReps are both integers. Use a type cast expression to rewrite the following statement so it will no longer perform integer division. unitsEach = qty / salesReps;Evaluate the following expressions, assume the following declarations: int x = 4 /3 * 2; int y = 9/ 2; int num = 6; num *= x + y; What is the value of the num after expression is evaluated?