__________ are constants that represent integer values. a. Literals b. Enumerators c. Constants d. Tokens
Q: python form letter reply 2: Tom Mallory Duke Valery John Smith Mike Ashely Cassey Cold Willie…
A: SUMMARY: - hence we discussed all the points.
Q: Can you change a bit of the code to out put the monthly rent with two decimals. Thanks! #include…
A: In the given problem, we have provided the C++ Code. In this code, our task is to modify the code so…
Q: I need help with this. Write an application that accepts three unique Strings from the user and,…
A: method used :- compareTo This method is used for lexicographical check .
Q: The result of the following is __. string str = "jlo@testmail.com"; string newStr = ""; string[]…
A: Given that The result of the following is __. string str = "jlo@testmail.com";string newStr =…
Q: Returns a lowercase version of a user-entered letter * @param kbd * @return lowercase version of…
A: In Java, Scanner class is used to accept input from user Scanner class has various methods like…
Q: Please tell me what the result of the following code will be. new String("Cheggers2019") myStr =…
A: Introduction:
Q: sing C#, write an application that computes the area of a circle, rectangle, and cylinder. Display a…
A: According to the Question below the Solution: Output:
Q: Write an application that prompts a user for two integers and displays every integer between them.…
A: FIND INTEGERS INBETWEEN : 1. First create a class here it is called IntegerInbetween . 2. Create…
Q: Write an application that computes and displays the day on which you become(or became) 10,000 days…
A: Program introduction: The java program ,TenThousandDaysOld.java objective is to find the day on…
Q: // Returns the dollar portion of value // if value is 12.34, returns 12 public Integer getDollars()…
A: Here is your code
Q: Assume below basic skeleton of Student and GradeBook class: public class GradeBook { private String…
A: Objective: This program implements several functions using the Student and GradeBook class as per…
Q: write a python application that can verify that the email has the corect Syntax. For example, that…
A: def isValid(Email): if Email.find(" ") != -1: return False if Email.find("@") == -1:…
Q: If str=‟Long String”, what will be the value of the following variables: String…
A: 1) String str=‟Long String”; L o n g S t r i n g Index 0 1 2 3 4 5 6 7 8 9 10 Here,…
Q: You work at a grocery store and want to build an app to manage the products in the store. You make a…
A: The correct C++ code is given below with code and output screenshots
Q: /** * You have a golden lottery ticket, with * ints a, b, and c on it. If the numbers are all…
A: public static int goldenTicket(int a, int b, int c) { if(a == b && b == c) return 20;…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: public class DebugSeven4 { public static void main(String[] args) { String aString =…
Q: a) What is the value of strlen (words)? b) What is the value of strlen (morewords)? c) What is the…
A: As per guidelines, we are supposed to answer only three subparts of a question. Kindly repost the…
Q: Learn C# beginner programming - Simple code - Im stuck on the Date format. Im creating a int for…
A: Literal is a numeral constant or string constant value set to the integer variable and string…
Q: Write an application named EnterUppercaseLetters that asks the user to type an uppercase letter from…
A: Here, Code instruction is given.
Q: Given the following code, what is displayed? Integer numFriends = 256; Integer numCookies = 256;…
A: Output of the code:
Q: 1. Write an application that prompts for and reads the user's first and last name (separately), then…
A: Answer:
Q: String name1=“Jessica”, name2=“Jason”; a) What is the value of name1.equals(name2)? b) What is the…
A: The value of name1.equals(name2) is False. equals() method compares the two strings based on the…
Q: Given the following: strFirstName = “Java” strLastName = “is fun!” Write a statement that…
A: STATEMENT: Java concatenation can be performed using the "+" operator. When this operator is used…
Q: Given the following declarations: StringBuilder buf; StringBuilder buf2 = new StringBuilder ();…
A: StringBulider : StringBuilder is a the string class in java that deals with the creation and the…
Q: I wrote my code for this question: #include using namespace std; class Player { public:…
A: Introduction: Here we are required to find out the error, int the upcoming code.
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: Please find the code below with output.
Q: 1.) How many String objects are created when the following code executes? String namel = new…
A: For the above java code how many string object are created
Q: Modify songVerse to play "The Name Game" (OxfordDictionaries.com), by replacing " (Name)" with…
A: Program with modified “songVerse” to play “The Name Game” by replacing “(Name)” with “userName” but…
Q: Write a method called upper that takes a lowercase character as a parameter and converts the…
A: code: import java.util.Scanner; public class Upper { public static void main(String[] args)…
Q: Write an application that prompts for and reads "double" value representing a monetary amount. Then…
A: import java.util.*; public class Main{ public static void main(String[] args) {…
Q: Which kind of variables can hold several values and types at one time? A String B) List O Integer D…
A: Please refer to the following step for the complete solution to the problem above.
Q: Hi, I am having some trouble with my c++ homework question. I have provided my code for the question…
A: PROGRAM CODE: #include<iostream>using namespace std; class Student{ public:…
Q: I'm stuck on this question and I don't know how I should be approaching this. What should I do? My…
A: The program makes a class Student and a nested class GPA. The members of class Student includes name…
Q: Add the correct data type for the following variables: myNum 9; myDoubleNum 8.99; myLetter = 'A';…
A: In this question we only have to add the appropriate data type for the following variables but we…
Q: Kindly fix the error in the code... It's just a error. So kindly try to fix it & don't change the…
A: The given code is: #include<iostream>#include<stdlib.h>#include<string>using…
Q: This is the question and needs to be written in java: Write an application that accepts three…
A: Step 1: The string is defined as a combination of characters. For example abc Program Approach:-…
Q: * Returns a lowercase version of a user-entered letter * @param kbd * ēreturn lowercase version of…
A: Required java method is implemented below:
Q: Here is the question: Create a program that contains a String that holds your favorite…
A: import java.util.Scanner; public class Main{ public static int calculateSpaces(String inString)…
Q: C++ Help me fix my code please! I'm missing something and can't figure it out. Code and error…
A: In this question you have to calculate monthly salary based on increment. and increment is only…
Q: int numl, num2, num3; double length, width, height; double volume; numl = 6; num2 = 7; num3 = 4;…
A: volume = box(length, width, height); valid. volume = box(length, 3.8, height); valid. cout…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: //DebugEight3.java import java.util.*;public class DebugEight3{ public static void main(String[]…
Q: that for running the following codes: [You are not allowed to change the code below] #Write…
A: To design a class that can be behaved by given statements, firstly we need to create class…
Q: Here is the question: Write an application that counts the total number of spaces contained in a…
A: import java.util.*; public class CountSpaces2{ public static void main(String[] args) {…
Q: Which Java/C++ data type do you use for the value "Joe"? a. Int b. Long c.…
A: Answer given below:
Q: A magic date is one when written in the following format, the month times the date equals the year…
A: def magicDate(dd,mm,yy): #Checking for validity of the data if dd < 1 or dd > 31:…
Q: What is wrong with this code? int Money4Me( int dollars ) { int pennies, coins; coins =…
A: Solution :
Q: What is wrong in the following code?
A: In the given image (a): The Class circle has an object c1 but when declaring the object “( )” has…
Q: Given that two int variables, total and amount, have been declared, write a sequence of statements…
A: 1. Initialize total to 0 2. Read 3 values into amount one at a time. 3. Add amount to total.
Q: 1- Explain what the operator Box& operator+=(const Chocolate& c) does. 2- How can you improve…
A: Below are the required answers with reasons:
Q: 1. A method named isANumber that takes a character and returns true if the character is a number…
A: Note: Answering the first question as per the guidelines. Input : Input the character Output :…
__________ are constants that represent integer values.
a. Literals
b. Enumerators
c. Constants
d. Tokens
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- Which data type would be used to store 10.5 that you plan to add to another nubmber? A string B intenger C decimal D floatI wrote my code for this question: #include <iostream>using namespace std;class Player{ public: void setName(string a){name = a;} void setScore(int b){score = b;} string getName() const {return name;} int getScore() const {return score;} private: string name; int score; };int main(){ Player Guy; Guy.setName("Herb"); cout<<Guy.getName()<<" scored 10 points!\n"; Guy.setScore(10); cout<<"Score : "<<Guy.getScore(); return 0;} How to fix my problemThis is the question - Three-letter acronyms are common in the business world. For example, in Java you use the IDE (Integrated Development Environment) in the JDK (Java Development Kit) to write programs used by the JVM (Java Virtual Machine) that you might send over a LAN (local area network). Programmers even use the acronym TLA to stand for three-letter acronym. Write a program that allows a user to enter three words, and display the appropriate three-letter acronym in all uppercase letters. If the user enters more than three words, ignore the extra words. This is my code. It is acting like I have to enter the words seperarly which is what I don't think I have to do. import java.util.*; public class ThreeLetterAcronym { public static void main(String[] args) { // Write your code here Scanner myObj = new Scanner(System.in); // Create a Scanner object System.out.println("Enter three words:"); String[] str = new String[3]; String m="";…
- This is the question and needs to be written in java: Write an application that accepts three unique Strings from the user and, without regard to case, appropriately displays either You did not enter the words in alphabetical order or You entered the strings in alphabetical order depending on whether the Strings were entered in alphabetical order.write an application that reads English-Language phrase and encodes it into morse code. also write an application that reads a phrase in morse code and converts it into the English-Language equivalent . Use one blank between each Morse-code letter and three blanks between each Morse-coded word.Here is the question: Three-letter acronyms are common in the business world. For example, in Java you use the IDE (Integrated Development Environment) in the JDK (Java Development Kit) to write programs used by the JVM (Java Virtual Machine) that you might send over a LAN (local area network). Programmers even use the acronym TLA to stand for three-letter acronym. Write a program that allows a user to enter three words, and display the appropriate three-letter acronym in all uppercase letters. If the user enters more than three words, ignore the extra words. Here is the code given: import java.util.*; public class ThreeLetterAcronym { public static void main(String[] args) { // Write your code here } }
- I wrote this program, but the solution on zybooks didn't let it full credit. It showed: "Tests that FindText() returns 5 for parameters "more" and "We'll continue our quest in space. There will be more shuttle flights and more shuttle crews and, yes, more volunteers, more civilians, more teachers in space. Nothing ends here; our hopes and our journeys continue!" Test feedback FindText() incorrectly returns 0." Please help me fix the FindText(). #include <iostream>#include <string>using namespace std; //Function prototypechar PrintMenu(string&);int GetNumOfNonWSCharacters(string);int GetNumOfWords(const string);int FindText(string, string);void ReplaceExclamation(string&);void ShortenSpace(string&); int main() { /* Type your code here. */ //Declare variables char option; string text, phraseToFind; //Get text from user cout << "Enter a sample text:\n"; getline (cin, text); //Print that text…Write an application that allows you to enter nine(and only nine, no more no less) integers and displays the values, their mean, and their median. (Java)What is wrong with this code? int Money4Me( int dollars ){ int pennies, coins; coins = dollars * 100;}
- What will the following Code segment print on the screen? String LName = "FamilyName"; String FName = "GivenName"; System.out.println("Dear Mr " + LName); System.out.println("We would like to call you " + FName);Here is the question: Write an application that counts the total number of spaces contained in a quote entered by the user. Here is the code given: import java.util.*; public class CountSpaces2 { public static void main(String[] args) { // Write your code here } }Implement the following:Given:food1 = "Salad"food2 = "Sandwich"price1 = 3.6price2 = 4.99 Print two f-string statements to display the following according to the rules below:1) Food prefixed with "Lunch:"2) Price prefixed with "Cost: $"3) Food always has 25 characters of space.4) Price is always displayed with two decimal places. Just make sure to precisely match the output format below.Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course).Example OutputLunch: Salad Cost: $3.60Lunch: Sandwich Cost: $4.99