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
Mashcka [7]
3 years ago
7

Program should allow for user to enter students name and his four test scores it should calculate and display the average and le

tter grade
Computers and Technology
1 answer:
AfilCa [17]3 years ago
3 0
What programming language are you trying to achieve this in? 
You might be interested in
Analyze the following code. Select one: A. The code is wrong. You should replace if (even) with if (even == true). B. The code d
bagirrra123 [75]

Answer:

The answer is B.

Explanation:

The question is incomplete, here is the full question:

Analyze the following code.

boolean even = false;

if (even) {

System.out.println("It is even!");

}

A. The code is wrong. You should replace if (even) with if (even == true).

B. The code displays nothing.

C. The code displays It is even!

D. The code is wrong. You should replace if (even) with if (even = true).

The above code does not display anything when run because the boolean variable even is false and it does not satisfy the if statement.

I hope this answer helps.

7 0
3 years ago
3. Write a program that inputs 4 hexadecimal digits as strings (example 7F), converts the string digits to a long – use strtol(i
never [62]

Answer:

#include <stdio.h>

#include <stdlib.h>

int main()

{

char num1[20],num2[20],num3[20],num4[20];

//Checks where the conversion of string to long stops and is required by strtol

char *ptr;

//Stores the converted number string into long.

long result_num1,result_num2,result_num3,result_num4;

//Prompt to enter all the four hexadecimal numbers.

printf("Enter the first hexadecimal number: ");

scanf("%s",num1);

printf("Enter the second hexadecimal number: ");

scanf("%s",num2);

printf("Enter the third hexadecimal number: ");

scanf("%s",num3);

printf("Enter the fourth hexadecimal number: ");

scanf("%s",num4);

//Converting the hexadecimal numbers into long using strtol() function with base 16 for hexadecimal.

result_num1 = strtol(num1,&ptr,16);

result_num2 = strtol(num2,&ptr,16);

result_num3 = strtol(num3,&ptr,16);

result_num4 = strtol(num4,&ptr,16);

//Casting the long to unsigned chars.

unsigned char numb1 = (unsigned char)result_num1;

unsigned char numb2 = (unsigned char)result_num2;

unsigned char numb3 = (unsigned char)result_num3;

unsigned char numb4 = (unsigned char)result_num4;

//Applying the boolean operation on unsigned chars and storing the resultant value in result.

unsigned char result = ((numb1&numb2)|numb3)^numb4;

//Printing the result in capital hex ("%X" take care of this).

printf("%X",result);

return 0;

}

Code OUTPUT

Enter the first hexadecimal number: 1 Enter the second hexadecimal number:2

Enter the third hexadecimal number: 3 Enter the fourth hexadecimal number: 4 Resultant Value: 7 Process returned o (0×0) execution time : 3.076 s

Press any key to continue

4 0
3 years ago
Film’s importance in today’s economy?
RSB [31]

Answer:

When a movie or television show shoots on location, it brings jobs, revenue, and related infrastructure development, providing an immediate boost to the local economy. ... The film and television industry supports 2.5 million jobs, pays out $188 billion in total wages, and comprises over 93,000 businesses.

Explanation:

<em>The film industry is estimated to be worth of billions of dollars. Various kinds of people are employed to work as actors, actresses, cameramen, producers, directors, managers and company representatives. It also provides secondary jobs for persons as props, costume designers, caterers, sound, lighting and electronics.</em>

8 0
3 years ago
Which service enables administrators to execute a command on remote computers using windows powershell or the windows remote she
Anvisha [2.4K]
Remote Assistance is the answer.
4 0
3 years ago
What tab contains the copy and paste buttons
Nina [5.8K]
Any u just get the pointer and hilight it then u paste
7 0
3 years ago
Read 2 more answers
Other questions:
  • The purpose of a memo is to communicate directions, advice , or information true or false
    8·2 answers
  • Bob has been assigned to set up a digital certificate solution for use with e-mail. One of the requirements he has been given is
    10·1 answer
  • A disk drive’s data ____________________ rate is a summary performance number combining the physical aspects of data access with
    10·2 answers
  • An ip address contains four sets of numbers what are they called
    11·1 answer
  • Hlo plss help.<br>.....,, ​
    7·2 answers
  • Which action is applicable only to tables?
    13·1 answer
  • Using complete sentences post a detailed response to the following.
    15·1 answer
  • If a student ate 3/4 (three-fourths) of their meals away from home, what % of the total day is spent eating other than at home?
    11·1 answer
  • What was the strategy the company adopted for ERP implementation?
    6·1 answer
  • question 1 scenario 1, question 1-5 you’ve just started a new job as a data analyst. you’re working for a midsized pharmacy chai
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!