1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
igomit [66]
3 years ago
5

Create a class named CollegeCourse that includes the following data fields: dept (String) - holds the department (for example, E

NG) id (int) - the course number (for example, 101) credits (double) - the credits (for example, 3) price (double) - the fee for the course (for example, $360).
Computers and Technology
1 answer:
frez [133]3 years ago
5 0

Answer:

The answer to this question can be given as:

code:

class CollegeCourse  

{

String Dept;

int CourseNumber;

double Credits;

double fee;

}

Explanation:

We all know that class is a collection of data members and member functions. In the above code we use the following syntax for class declaration that can be given as:

Syntax of class declaration :

class class_name

{

data member & member function

}

In the above code firstly we declare a class that is CollegeCourse. In this class, we define a variable that name and datatype is already given in the question that is String Dept, int CourseNumber, double Credits, double fee. In the variables first variable data type is string. It is used for store string value like ('us','xxx','aaa').The second variable datatype is an integer. It is used for store integer value like (1,23,5,56). The third and fourth variable datatype is the same that is double. This data type is used to store the floating-point value.

You might be interested in
Instructions:Type the correct answer in the box. Spell all words correctly.
yarga [219]
I believe the answer is Binary form.

Computers process 1's and 0's (binary)
4 0
3 years ago
Read 2 more answers
Which of the following things could you do in order to tell if a pair of colors has strong contrast? A. Look at the colors on th
Katyanochek1 [597]

Answer:

B

Explanation:

I'll be honest, I'm not 100% sure this is correct but I'm pretty sure it is. Good Luck :)

5 0
3 years ago
NO LINKS OR SPAMS THEY WILL BE REPORTD<br><br> Click here for 50 points
storchak [24]

Answer:

I clicked bro

Explanation:

What now?

7 0
3 years ago
Read 2 more answers
Any kind of brances in science
Gemiola [76]

Answer: A

Explanation:

3 0
3 years ago
Which information technology job has the lowest predicted 10-year growth? computer programmer software developer computer suppor
Sloan [31]
<span>The information technology job that has the lowest predicted 10-year growth is computer support specialist. Their main job is to troubleshoot and solve numerous computer issues of the software. They can offer technical support in the IT department. They often work at an irregular time intervals because they can only work when a client needs them.</span>
8 0
4 years ago
Other questions:
  • These systems consist of interlinked knowledge resources, databases, human experts, and artificial knowledge agents that collect
    9·1 answer
  • Yellow and blue light are projected on a white screen. what color will the screen appear to be?
    6·2 answers
  • An example of software most commonly associated with productivity software is ____.
    12·1 answer
  • Describe any five GSM PLMN basic services?
    10·1 answer
  • Copyright applies to work at the time it was produced, written, and developed. True or False?
    10·2 answers
  • Someone plz answer
    8·1 answer
  • Ashton assigned a string value to a variable. Which program statement should he use?
    5·1 answer
  • It is a minor cereal of importance only in West Africa where it is eaten in place of rice during during famines. Used for salads
    10·1 answer
  • El botón de layout se usa para <br>​
    8·1 answer
  • Which statement about analog and digital images is true?.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!