5. You can use keywords as identifiers. 6. A character data type must have enclosed its literal enclosed in a double quotes (" "). 7. It is always good to initialize your variable. 8. System.out.printIn(), does not_append newline at end of output. 9. The operator follow a precedence rule.
Q: 1- The operator must be followed by the variable that will store the data that is going to be…
A: Answers: Answer-1: The correct option is (a) => the stream Explanation: The stream is used in C++…
Q: Explain about new and delete keywords with code (B) What is
A: #include <iostream> using namespace std; int main() { // declare an int pointer int*…
Q: What is true concerning #define ?A.Correctusage is: #define STRING1 STRING2 STRING3 B.This…
A: C/C++ allows including the #define directive in the source program for defining macros. This…
Q: Look at the following statement.enum Color { RED, ORANGE, GREEN, BLUE };A) What is the name of the…
A: a) Color b) Color.RED Color.ORANGE, Color.GREEN Color.BLUE
Q: Create a function that takes a string and returns the number of alphanumeric characters that occur…
A: In this problem, we need to create a function that takes a string and returns the number of…
Q: QUESTION 11 Select the true statement about variable names. Spaces are permitted inside identifiers.…
A:
Q: 15. Filename: password dls369.cpp, but replace my email id with yours. (a) Write a function which…
A: I give the code in C++ along with output and code screenshot
Q: You have been hired by Detroit Football team as an assistant of the main coach. You need to modify a…
A: PROGRAM: //Header file #include <iostream> #include <string> //Using namespace using…
Q: 3 Parameter: An array of strings. Return value: A list of the three strings that occur most…
A: Answer: 3. Parameter: An array of strings. Return value: A list of the three strings that occur most…
Q: 1. The means "continued on the next line". 2. Relational operators take two operands. These two…
A: (1) The Backshlash(\) means "continued on the next line". You cannot split a statement into multiple…
Q: Questions 1. Why is the typecast operator needed to compute the mean in the statement mean =…
A: Answer: static_cast<float>operator used for compile time cast. It is used for conversion…
Q: //******************************************************************************// Program name:…
A: / Program name: Lab4a//// Description: <Write the program description here.>//// What's on…
Q: 2. Create class name LevelsActivity and write a program to produce the following output applying…
A: As the programming language is not mentioned so I am writing a code in Java language. If you want a…
Q: Create a program that has the following requirements: 4.1 menu driven program that…
A: Let us choose the algebra problem that will consist of the addition, a subtraction, a…
Q: fix_title: takes in a string argument that is formatted as such -- "TYPE:tHe titLe Of tHe ContENT".…
A: # Creating function which takes one parameter as stringdef fix_title(str): # initialize empty…
Q: I have two codes. One is validator and another is main code. Please make the main code follow…
A: Below code is the implementation of making the main code follow the requirement of validator
Q: Is there any alternative way to write this piece? IN C++ thanks!…
A: There is a way using the dot Operator , you can use the dot Operator instead of -> using…
Q: Type *name; is a declaration syntax of a reference O True O False
A: Answer in step 2
Q: Option #1: String Values in Reverse Order Assignment Instructions Write a Python function that will…
A: 1. Create a python function to concatenate and reverse 3 strings. - First concatenate the three…
Q: a. A program that accepts data for one auctioned item. Display data for an auction only if the…
A: *As per the company norms and guidelines we are providing first three sub parts of the given…
Q: Consider the following statement: int* p, q; This statement could lead to what type of…
A: The problem is based on the basics of pointers in programming languages.
Q: 2. Call-by-reference parameters pass values: a. By making the variable global. b. By passing the…
A: Call by reference parameter pass values.
Q: most_frequent_word() takes a string as the input parameter and returns two values; the word that…
A: The required python program has been provided in the next step.
Q: 1- printlnfo: This function prints your name and ID to the screen. 2- caleShapeArea: This function…
A: First, we need to display the menu, then we need to read the required input parameters and then…
Q: Create a new C++ Console project in Visual Studio and name it Prog1. Use #include directives so that…
A: C++ is a high-level programming language and it is also supported OOPs (Object Oriented Programming)…
Q: Defines an enum named Classification. The enum Classification will have 2 data values:…
A: I have answered this question in step 2.
Q: Using R, write a program which will create a histogram with the following: X-axis labelof…
A: I've provided my own vector; please enter it into the variable vec of your data.
Q: Problem statement def stringMatch(subStr,strLine): """ This function returns the index…
A: Programming Language: Python def stringMatch(subStr,strLine): if subStr in strLine: #checking…
Q: given a Rectangle class
A: SOURCE CODE IN C++: Rectangle.h #ifndef RECTANGLE_H #define RECTANGLE_H class Rectangle { public:…
Q: In CPP , Write a program that: Defines an enum named Classification. The enum Classification will…
A: Here I have created 3 different enums. Next, in the main method, I have taken input from the user…
Q: You are asked to write a small division calculator, where you are taking 'a' as dividend and…
A: The above question is solved in step 2 :-
Q: Write a program that: Defines an enum named Classification. The enum Classification will have 2 data…
A: Please upvote me Please. I need it badly. Please. Please. I am providing the required code in…
Q: Consider the following structure and declarations: struct Player { string firstName; string…
A:
Q: Computer Engineering lab Apex - Salesforce In this Assignment i required you to solve my doubt…
A: Solution: code: Date d = date.today();String dt =…
Q: Using C++ create a class Parent with Name & CNIC number as a private data members. Create a getinput…
A: Sample Response: //C++ programming language#include <iostream>using namespace std; //Base…
Q: You can use a________to convert a value explicitly between numeric data types, even if the…
A: Given: You can use a________to convert a value explicitly between numeric data types, even if…
Q: Complete the following programming assignment. Use good programming style and all the concepts…
A: Program Instructions:Create four methods named insertionSort(), bubblesort(), mergesort() and…
Q: Create 2 variables of type myStruct. (st1, st2) Initialize st1 with 1,2,3,4.0,'5', (a-c) Assign st2…
A: myStruct is a structure with 3 integers, one float and one char
Q: What is data encapsulation, and why would you use it?
A: Given: Encapsulation is the collection of data into a single entity. It's a technique that connects…
Q: 11. Write the keyword for the appropriate data type that can be used with the variable myName that…
A: Write the keyword for the appropriate data type in JAVA that can be used with the variable myName…
Q: nclude a function which accepts 2 objects of type Movie and displays whether or not they were…
A: the following program is in java
Q: char myStr[26]; char yourStr[26] = "Arrays and Strings"; a. Write a C++ statement that stores…
A: a) Complete program code: //including necessary header file #include <iostream> #include…
Q: ividual variables are particularly well suited for storing and processing lists of data.
A: Required: Is this statement true or false? Individual variables are particularly well suited for…
Q: Apex - Salesforce In this Assignment i required you to solve my doubt reated to Converting a date…
A: The code for the given problem is below: Date d = date.today();String dt =…
Q: • File names: pokemon.py Pokemon was a worldwide cartoon, video game and card-game phenomenon. My…
A: Here is the solution with an output:-
Q: Create a function that takes a string and returns the number of alphanumeric characters that occur…
A: Answer:
Q: 3. We can access persistent variable from outside a function. (True or False). 4- How to use…
A: ANSWER1 FALSE If you could modify the function have it assigning the base workspace to a local…
Step by step
Solved in 2 steps
- The data type bool: Group of answer choices Can only be used in a selection statement. Can take on any expression as a value. Can take on values -1, 0 or 1. Can take on values true and false.Assignment Name JavaScript Concepts III Assignment Filename lastname-circleArea.html (replace lastname with your last name). area.js Assignment Description This assignment demonstrates the following concepts: JavaScript Functions Assignment Instructions Write a JavaScript program that calculates the area of a circle: Write a function that calculates the area of a circle given the radius. Formula: Math.PI * (radius * radius) Your program code should contain appropriately named variables. Use documentation to identify various components of your program. Call the function once and pass a radius value of 10.75 to it. Use the starter files and complete the logic to satisfy the instructions. To access the files, download and save the circleArea.zip folder attached to this assignment. Then unzip the compressed folder to reveal the included files: circleArea.html and area.js. Be sure that the two files are in the same folder. Then write your code in the area.js…Instructions: In the code editor, you are provided with the definition of a struct Person. This struct needs an integer value for its age and a character value for its gender. Furthermore, you are provided with a displayPerson() function which accepts a struct Person as its parameter. In the main(), there are two Persons already created: one Male Person and one Female Person. Your task is to first ask the user for the age of the Male Person and the age of the Female Person. Then, define and declare a function called createKidPerson() which has the following definition: Return type - Person Name - createKidPerson Parameters Person father - the father of the kid to be created Person mother - the mother of the kid to be created Description - creates a new Person and returns this. The age of this Person will be set to 1 while its gender will be set based on the rules mentioned above. Finally, create a new Person and call this createKidPerson() in the main and then pass this newly…
- Direction: Answer the following, write your answer in a word document and convert it to pdf file. 1. Create a program that prompt user to input two numbers and displays the six types of relationships for the two inputted numbers. 2. Create a program that applies the concept of login form using logical operators. Username = 25 Password = 12 Sample output: Enter username: 25 Enter password: 12 "You are successfully login" while if wrong input the message is "you are not allowed to login" 3. Create a program that prompt user to input a value for variable a then displays the value of the following assignment operators such as +=, --, *=, /=, %=. int a, b, c Sample output Enter a value for a = 3; Enter a value for b= 3; The value of c = a is: The value of c =+a is: The value of c =-a is: The value of c ="a is: The value of c =/a is: The value of c =%a is:After a specific amount of time has passed, an initial block statement can no longer be utilised.1. A structure should be used if the data structure has only fields, no methods, and security is not a high priority. a. true b. false 2. Which of the following can contain items of different data types? a. An array b. A structure c. A string
- After a certain point, the usage of an initial block statement becomes invalid.2. A password is called STRONG if it holds all of the following properties: (a) It has at least 8 characters (b) It contains at least one lower case letter, and at least one upper case letter (c) It does not contain any blank space Write down a program that will take a password as input to a string and will print a message indicating whether it is STRONG or WEAK. Sample input: Strange Sample output: The password is WEAK solve in C program languageA(n) variable is one that has been declared, but has not been initialized or assigned avalue.a. undefinedb. uninitializedc. emptyd. default
- Direction: Read each sentence/ situation carefully and select the BEST answer among the choices. 1. It is a Boolean expression that tells when the loop will exit. 2. The sequence that makes up the loop body may either be a block of Turbo C statements or a single Turbo C statement. 3. In Turbo C it is a reserved word. 4. Its values determine the number of times the loop iterates. 5. It is the second type of open-ended loop. Condition For Loop Statement For Do while LoopX609: Magic Date A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that figures out if a user entered date is a magic date. The dates must be between 1 - 31, inclusive and the months between 1 - 12, inclusive. Let the user know whether they entered a magic date. If the input parameters are not valid, return false. Examples: magicDate(6, 10, 60) -> true magicDate(50, 12, 600) –> falseUse c++ Programming language Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type studentType, which has four components: studentFName and studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program must contain at least the following functions: A function to read the students' data into the array. A function to assign the relevant grade to each student. A function to find the highest test score. A function to print the names of the students having the highest test score. Your program must output each student's name in this form: last name followed…