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
Maurinko [17]
3 years ago
8

If the variable letter has been defined as a char variable, which of the following are not valid assignment statements to assign

letter w to the variable?
A) letter = w;
B) letter = 'w';

C) letter = "w";
Computers and Technology
1 answer:
Rudiy273 years ago
6 0

Answer:

The correct answer for the given question is option(A) and option(C) .

Explanation:

To declared any variable of character we using following syntax

char variable=' value';

char  letter='w';

In option(A)  their is no single quotes between character w .So this is not a valid assignment.

In option(C) their is double quotes between character w,no single quotes  between character w .So this is not a valid assignment.

In option(B) their is single quotes between character w .So this is a valid assignment.

So option(A) and option(C) are are not valid assignment statement.

You might be interested in
____ is a utility that can verify that TCP/IP is installed, bound to the NIC, configured correctly, and communicating with the n
loris [4]

Answer:

ping

Explanation:

8 0
3 years ago
What approach do you prefer to take when creating presentations for class projects? Would you rather use software or create pres
padilas [110]

Answer:

when creating presentations it is easier to follow a software because it is reliable and establishes status. Although a more manual method can be used too. now the rest depends on your skills. If I were to make a presentation I would use a software as it makes my work flow more efficient and easy

8 0
3 years ago
Read 2 more answers
A group of users is unable to connect to the network. When testing several of the PCs and issuing the command ipconfig, the tech
Juliette [100K]
D is the right answer because DNS is the answer
5 0
3 years ago
Quick I need help ASAP
Alexeev081 [22]

Answer:

1. Spreadsheets are an essential business and accounting tool. They can vary in complexity and can be used for various reasons, but their primary purpose is to organize and categorize data into a logical format. Once this data is entered into the spreadsheet, you can use it to help organize and grow your business.

2. A spreadsheet is a tool that is used to store, manipulate and analyze data. Data in a spreadsheet is organized in a series of rows and columns and can be searched, sorted, calculated and used in a variety of charts and graphs.

3. ?


GOOD LUCK!

4 0
2 years ago
Read 2 more answers
Write a program that will predict the size of a population of organisms. The program // should ask the user for the starting num
nordsb [41]

Answer:

Following are the program in the C++ Programming Language:

#include <iostream>

using namespace std;

int main() {

 float starting, average;

 int num;

 std::cout <<"Enter starting number of the organisms: ";

 while(!(std::cin >> starting)|| starting < 2){

   std::cout<<"starting number must be greater than 2\n";

   std::cout <<"Enter starting number of the organisms: ";

   std::cin.clear();

   std::cin.ignore(123,'\n');

 }

 std::cout <<"Enter the average of daily population is increase %: ";

 while(!(std::cin >> average)|| average < 0){

   std::cout<<"Average must be greater than 0\n Enter average";

   std::cin.clear();

   std::cin.ignore(123,'\n');

 }

   average *= .01;

 std::cout <<"Enter the number of days: ";

 while(!(std::cin >> num)|| num < 1){

   std::cout<<"Number of days no be less than 1\n" <<"Enterthe number of days\n";

   std::cin.clear();

   std::cin.ignore(123,'\n');

 }

 for(int i=0; i<num; i++){

   std::cout<<"population size of day"<<(i+1);

   std::cout<<": "<<starting<<std::endl;

   starting +=(starting*average);

 }

 return 0;

}

<u>Output</u>:

Enter starting number of the organisms: 4

Enter the average of daily population is increase %: 5

Enter the number of days: 4

population size of day1: 4

population size of day2: 4.2

population size of day3: 4.41

population size of day4: 4.6305

Explanation:

Here, we define header file "<iostream>" and namespace "std".

  • Then, we define the main() inside it, we set two float data type variable i.e., "starting", "average" and set an integer data type variable i.e., "num".
  • Then, we print a message and after that, we set the while loop for get input from the user in variable "starting" and pass the condition inside loop we print message than clear cin and ignore 123 then, we again do this to get  input from user in variable "average".
  • Then, we set the for loop and pass the condition inside the loop print the size of the day then print the value of "starting" after that we multiply.
  • Finally, we return 0 and close the main function.
7 0
3 years ago
Other questions:
  • A web client is sending a request for a webpage to a web server. from the perspective of the client, what is the correct order o
    14·1 answer
  • An email can lead to miscommunication because:
    6·2 answers
  • The network layer of the Internet model uses the _____________ protocol to route messages though the network.
    13·1 answer
  • What part of the network is the point where the responsibility of the administrator ends and the telecommunications providers re
    5·1 answer
  • Which of the following allows the transmission of voice and often video communication over the internet?
    12·1 answer
  • Question 1
    10·1 answer
  • Please help explain this calculator code.
    15·1 answer
  • Public class Square extends Shape{
    13·1 answer
  • Explain the major innavotions made from the establishment of abacus​
    8·1 answer
  • How do people decide their ethical behavior
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!