answer.
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
tatiyna
2 years ago
13

Assume that the variables gpa, deansList and studentName, have been declared and initialized. Write a statement that adds 1 to d

eansList and prints studentName to standard out if gpa exceeds 3.5.
Computers and Technology
1 answer:
navik [9.2K]2 years ago
5 0

Following are the code in c language

#include <stdio.h>  // header file

int main()  // main function

{

   float gpa=4.5;  // assuming variable

   int deansList=8;

   char studentName[45]="patel";

if (gpa > 3.5)  // checking condition gpa exceeds 3.5.

{

deansList++;  // add 1 to deanslist

printf("%s", studentName);  // prints student name

}

return 0;

}

Explanation:

In this program we declared and initialized variables "gpa" with 3 of type "float", "deansList"   with 8 of type "int" and "studentName" with "Patel" of type "char array". after that we check  the condition if "gpa" exceed 3.5,  then the block of if is executed and  it increment the value  of "deansList" by 1 and print the studentName .

output

patel

You might be interested in
PLSSSSSSSSSSSSSSSSSS HELPPPP I NEED THE ANSWER FAST!!! if an item that is purchased is digital, this may involve a direct (blank
Artist 52 [7]
The answer is
: deposit
8 0
2 years ago
Read 2 more answers
The molecule 2,2-diisopropylheptane is incorrectly named. what is the correct name?
pentagon [3]
Isopropyl is: CH3 - CH - CH3
                                |

Heptane is: CH3 - CH2 - CH2 - CH2 - CH2 - CH2 - CH3

Then 2,2 isopropyl heptane is:

CH3 - CH - CH3
           |
CH3 - C - CH2 - CH2 - CH2 - CH2 - CH3
           |
CH3 - CH - CH3.

There you can count that the longest carbon chain has 8 carbon atoms.
So the right name is of an octane.

I will rearrange the chain to show the 8 carbon chain in a row:

           CH3   CH3
           |          |
CH3 - CH -   C - CH2 - CH2 - CH2 - CH2 - CH3
                      |
           CH3 - CH - CH3

Now, you can see that the right name is 3 isopropyl - 2, 3 dimethyl octane




5 0
2 years ago
Write an interface named HGTTU which specifies a universal constant int value of 42, and a single method named getNormilazedIntV
Nadusha1986 [10]

Answer:

Hope this helps.

//HGTTU.java

public interface HGTTU {

 int universalConstant = 42;

  public int getNormilazedIntValue();

}

//MyInt.java

public class MyInt implements HGTTU {

  int instanceFiled;

Override

  public int getNormilazedIntValue() {

      return instanceFiled+universalConstant;

  }

}

Explanation:

8 0
1 year ago
Which type of memory helps in reading as well as writing data? With the help of , a computer can read as well as write or modify
Anvisha [2.4K]

Answer:

RAM (Random access memory)helps in reading aswell as writing data.

Explanation:

Random access memory is a computer memory that can be read and written.Where as ROM (read only memory) can only be read and cannot be written.RAM contains circuits with multiplexers and demultiplexers to connect the datalines to the addressed data for reading or writing.There are majorly two types of RAM .They are SRAM(static random access memory) and DRAM(dynamic random access memory).

4 0
2 years ago
Read 3 more answers
Jason, a penetration tester, is testing a web application that he knows is vulnerable to an SQL injection but the results of the
Mrac [35]

Answer:

Blind SQL injection

Explanation:

  • SQL Injection is a database hacking technique.
  • It uses a series of SQL queries to get access to the Database Management System ( DBMS ).
  • The hacker ( unauthorized user ) tries to find the login credentials of the database system.
  • SQL Injection are of multiple types. One such technique is Blind SQL Injection.
  • Here the attacker is using wait for delay command which implies the attacker is using the time based SQL injection.
  • The time based SQL Injection is " Blind SQL Injection "
  • In this type of SQL Injection, the attacker uses True / False questions on the database and the web application.
  • Here, the attacker asks the True / False questions to the database with some delay in the query and sees the response in the web application. In this way, the attacker tries to hack the database.
  • Ex: The attacker tries to find the database name by using SQL queries with the query meaning to "If the first letter of database name is 'A' wait for 10 secs " next  "If the first letter of database name is 'B' wait for 10 secs " and so on till "If the first letter of database name is 'Z' wait for 10 secs" till finding the whole database name.
  • So, option (a) is correct.
  • Options (b), (c) and (d) are different type of SQL Injections which don't involve wait delay. SO, options (b), (c) , (d) are not the correct options.
6 0
2 years ago
Other questions:
  • What might be one reason why a stock becomes more valuable over time
    5·1 answer
  • Deanna wants to have an exciting presentation and adds animations. She wants her bullet points to be animated through motion. Wh
    5·2 answers
  • Pick the correct statements regarding cell references.
    8·2 answers
  • Write a program that allows you to create a file of customers for a company. The first part of the program should create an empt
    12·1 answer
  • g Suppose the information content of a packet is the bit pattern 1110 0110 1001 1101 and an even parity scheme is being used. Wh
    8·1 answer
  • Refer to the exhibit. Which two network addresses can be assigned to the network containing 10 hosts? Your answers should waste
    7·1 answer
  • Define a method printFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand. End with a n
    7·2 answers
  • You are describing the boot process to a friend and get to the step where the device loads the operating files into RAM, includi
    7·1 answer
  • . Create a text file that contains your expenses for last month in the following categories: • Rent • Gas • Food • Clothing • Ca
    14·1 answer
  • While Angela is making modifications to Katie’s Word document, she would like to inform Katie of the reasoning for the change. W
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!