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
kiruha [24]
4 years ago
14

Write a program that completes the following requirements in C program:

Computers and Technology
1 answer:
m_a_m_a [10]4 years ago
4 0

Answer:

#include<stdio.h>

#include<string.h>

int main() {

int n;

FILE *fp = fopen("salaries.txt", "r");

 

double sumSalaries = 0;

double quarterlySalary1, quarterlySalary2, quarterlySalary3, quarterlySalary4;

while(!feof(fp)) {

 

fscanf(fp, "%lf", &quarterlySalary1);

fscanf(fp, "%lf", &quarterlySalary2);

fscanf(fp, "%lf", &quarterlySalary3);

fscanf(fp, "%lf", &quarterlySalary4);

sumSalaries = sumSalaries + quarterlySalary1+quarterlySalary2+quarterlySalary3+quarterlySalary4;

printf("Salary Sum %lf: \n", sumSalaries);

printf("Income Type: ");

if(sumSalaries > 200000 ){

printf("h");

}

else if(sumSalaries >= 15000 && sumSalaries<=200000){

printf("m");

}

else{

printf("l");

}

printf("\n");

}

 

 

fclose(fp);

return 0;

}

Explanation:

You might be interested in
James, a technician, is tasked to remove the dust inside of a desktop computer.
muminat

Answer:

The complete Question is:

James, a technician, is tasked to remove the dust inside of a desktop computer. Which of the following should the technician use to MINIMIZE exposure to the dust while protecting internal hardware components? (Select TWO).

A. Mask

B. ESD mat

C. ESD strap

D. Antistatic bag

E. Safety goggles

F. Rubber gloves

The Answer is: A and E

Explanation:

Mask are objects that are used for covering the face for protection and disguise. In this scenario, the mask will protect his nostrils from dust during the cleaning activity.

While safety goggles are a type of personal protective equipment (PPE) that is worn over the eyes for its protection.

6 0
4 years ago
The statement x++;
natita [175]

Answer:

The correct option for the given question is option(A) i.e Increments the value currently stored in the variable x and stores that new value back in the variable x.

Explanation:

x++ is an  increment operator Their are two types of increment operator

1.Post increment

2.Pre increment.

Post increment operator assign the value first to variable then increment the value by 1.

for example

int a=7,t;

t=a++; //post increment

Pre increment operator first  increment the value by 1 then store into variable.

int  a=7,t;

t=++a; // Pre increment.

So the correct answer is option(a)

8 0
3 years ago
The specific term for expediting the delivery of software by breaking a task into smaller increments is called
Ksivusya [100]
Rapid Application Development is the specific term
8 0
3 years ago
"last month, our sales rose when we increased prices by 15%, so we should raise our prices another 15% this month." which logica
LekaFEV [45]

In"last month, our sales rose when we increased prices by 15%, so we should raise our prices another 15% this month." the logical fallacy is Confusing a correlation for a cause-and-impact courting.

<h3>What is a logical fallacy?</h3>

A logical fallacy is a assertion that appears to be authentic till you observe the regulations of logic. Then, you recognize that it is not. Logical fallacies can regularly be used to deceive people – to trick them into believing something they in any other case wouldn't.

In many ways, the put up hoc ergo propter hoc fallacy is a particular subset of the fallacy in which a person might also additionally anticipate a causational courting from one that would simply be a wonderful correlation.

Read more about the fallacy :

brainly.com/question/1971023

#SPJ1

6 0
2 years ago
A business that subscribes to a specific computing model has its entire system fully functional within a short time. What benefi
defon

Its quick development

Quick deployment: When a business opts for cloud computing and subscribes to a specific model, its entire system can be fully functional within a short time—even within a few minutes. The amount of time depends on the kind of technology and the business’s computing needs.


7 0
3 years ago
Other questions:
  • A university wants to install a client-server network. Which feature do you think is important for them as they set up the netwo
    8·1 answer
  • Distinguish between multiprogramming and multiprocessing. What were the key motivations for the development of each?
    14·1 answer
  • You tried to access an external html page, which can not be opened on the device for preview. open the page in dreamweaver to pr
    13·1 answer
  • One interesting application of computers is to display graphs and bar charts. Write an application that reads five numbers betwe
    5·1 answer
  • Can someone tell me how to use the Human machine language for beginners? or websites I should use.​
    7·1 answer
  • Explain how software is distinct from hardware.
    8·2 answers
  • You don't have policies that force settings for the look of users' computer desktops. Each user's chosen desktop settings are ap
    15·2 answers
  • What helps companies and organizations to target masses of people, provide 24/7 services, and deliver better marketing in a chea
    6·1 answer
  • Information systems cannot solve some business problems. Give three examples and explain why technology cannot help
    11·1 answer
  • Which of the following best explains how devices and information can be susceptible to unauthorized access if weak passwords are
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!