Question

has three assignment lines, each of which creates a variable (object) with a meaningful name and...

  1. has three assignment lines, each of which creates a variable (object) with a meaningful name and assigns it an int value. Example:
    • Exercise 5b
      months = 12
    1. has three assignment lines, each of which creates a variable (object) with a meaningful name and assigns it a float value. Example:
    • Exercise 5c
      height = 7.63
    1. has three assignment lines, each of which creates a string variable with a meaningful name. Example:
    • Exercise 5d
      speaksParseltongue = 'Harry Potter'
    1. has three assignment lines, each of which creates a variable (object) with a meaningful name and assigns it an int value. Example:
    • Exercise 5b
      months = 12
    1. has three assignment lines, each of which creates a variable (object) with a meaningful name and assigns it a float value. Example:
    • Exercise 5c
      height = 7.63
    1. has three assignment lines, each of which creates a string variable with a meaningful name. Example:
    • Exercise 5d
      speaksParseltongue = 'Harry Potter'
0 0
Add a comment Improve this question Transcribed image text
Answer #1

has three assignment lines, each of which creates a variable (object) with a meaningful name and assigns it an int value. Example:
Exercise 5b
months = 12
has three assignment lines, each of which creates a variable (object) with a meaningful name and assigns it a float value. Example:
Exercise 5c
height = 7.63
has three assignment lines, each of which creates a string variable with a meaningful name. Example:
Exercise 5d
speaksParseltongue = 'Harry Potter'

============================================================================================

int year=2012;

float marks=56.5;

string speackHindi="Sunil Kumar";

============================================================================================

Add a comment
Know the answer?
Add Answer to:
has three assignment lines, each of which creates a variable (object) with a meaningful name and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1) Which of the following is the name of a local variable in the Strange class...

    1) Which of the following is the name of a local variable in the Strange class below? public class Strange{ public static final int MAX = 5; public static void unknown(){ int number = 0; for (int i = MAX; i >= 1; i--) number += i * i; System.out.println(number); } public static void main(String[] a){ unknown(); } } a) Strange b) int c) MAX d) number e) main 2) Which of the following is NOT a method of the...

  • 8). Name five of the fundamental ter ns which encompass object-oriented programming 9). Write a class...

    8). Name five of the fundamental ter ns which encompass object-oriented programming 9). Write a class called NumberOfGoals that represents the total number of goals scored by a ootball team. The NumberOfGioals class should contain a single integer as data, representing the number of goals scored. Write a constructor to initialize the number of goals to Zero. 10). Write a set of instructions to prompt the user for an int value and input it using the Scanner class into the...

  • C++ Assignment: Create a class called FitnessMember that has only one variable, called name. The FitnessMember...

    C++ Assignment: Create a class called FitnessMember that has only one variable, called name. The FitnessMember class should have a constructor with no parameters, a constructor with a parameter, a mutator function and an accessor function. Also, include a function to display the name. Define a class called Athlete which is derived from FitnessMember. An Athlete record has the Athlete's name (defined in the FitnessMember class), ID number of type String and integer number of training days. Define a class...

  • C# Hey I am having trouble implementing additonal function to this assignment: Problem: Implement three IComparer classes on Employee - NameComparer, AgeComparer, and PayComparer - that allow Employee...

    C# Hey I am having trouble implementing additonal function to this assignment: Problem: Implement three IComparer classes on Employee - NameComparer, AgeComparer, and PayComparer - that allow Employees to be compared by the Name, Age, and Pay, respectively. Code: Employee.Core.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Employees { partial class Employee { // Field data. private string empName; private int empID; private float currPay; private int empAge; private string empSSN = ""; private string empBene...

  • Please help with this exercise on Python program involving the use of dictionary. ### This exercise...

    Please help with this exercise on Python program involving the use of dictionary. ### This exercise involves building a non-trivial dictionary. ### The subject is books. ### The key for each book is its title ### The value associated with that key is a dictionary ### ### In that dictionary there will be Three keys: They are all strings, they are: ### ### "Pages", "Author", "Publisher" ### ### ### "Pages" is associated with one value - an int ### ###...

  • First you will need to write three classes: Game Shoe Assignment within each class you will...

    First you will need to write three classes: Game Shoe Assignment within each class you will add two fields and a constructor. For Game you will need to keep track of the name of the game (String) and the number of players (int). The constructor will be in the order (String, int). For Shoe you will need the shoe size (double) and the brand (String). The constructor will be in the order (double, String). For Assignment you will need the...

  • Define an ordinary function called DisplayMin that has three parameters: the first two parameters are parallel...

    Define an ordinary function called DisplayMin that has three parameters: the first two parameters are parallel arrays of different types and the third argument is of type size_t representing the size of both arrays. The function DisplayMin must work when called with various types of actual arguments, for example string DisplayMin(string names[], int calories[], int size) or int DisplayMin(int calories[], float prices[], int size). (Parallel Arrays are two arrays whose data is related by a common index. For example: with...

  • Read through the code of the class Player, noting it has two instance variables, name and rank, which are of type String and three further instance variables won, drew and lost which are of type int....

    Read through the code of the class Player, noting it has two instance variables, name and rank, which are of type String and three further instance variables won, drew and lost which are of type int. There is also an attribute of the class, points, which does not have a corresponding instance variable. Also note the constructor and methods of the class and what they do. TournamentAdmin class code: public class RankAdmin {    /**     * Constructor for objects of class...

  • Using C++, Write a class named Employee that has the following member variables: name. A string...

    Using C++, Write a class named Employee that has the following member variables: name. A string that holds the employee's name. idNumber. An int variable that holds the employee's ID number. department. A string that holds the name of the department where the employee works. position. A string that holds the employee's job title. The class should have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: employee's name,...

  • whats the answer When defining a class which has the field name of type String. How...

    whats the answer When defining a class which has the field name of type String. How is the name field declared? String nam name Opublic String name; private name; private String name; Given the following class definition, Which operation can a class user perform on an object of type Restaurant? public class Restaurant // Info about a restaurant // Internal fields public void setName(String restaurant Name) { // Sets the restaurant's name } public void setRating(int user Rating) { //...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT