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
Grace [21]
4 years ago
8

Print 'userNum1 is negative" if userNum1 is less than 0. End with newline Convert userNum2 to 0 if userNum2 is greater than 9. O

therwise, print "userNum2 is less than or equal to 9:. End with newline 3 int main(void) 4 int userNuml; S int userNum2; 6 7 userNum1-1; 8 userNum2 7 10 if (userNum1) printf "userNum1 is negative.n 12 13 if(userNum2-9 14 15 16 17 print f("userNum2 18 19 return ; printf("userNum2 is less than or equal to 9.\n; Your solution goes here is%d.\n", use rNur?); 20 Check Try again x A possible solution uses an if statement for userNum1, and an if-else statement for userNum2 x Testing for correct output for userNum 1 = 0 and userNum2 = 10 Output differs.
Computers and Technology
1 answer:
dlinn [17]4 years ago
8 0

Answer:

#include <stdio.h>

int main()

{

   int userNum1;

   int userNum2;

   

   userNum1 = -1;

   userNum2 = 7;

   

   if (userNum1 < 0)

       printf("userNum1 is negative. \n");

       

   if(userNum2 > 9)

       userNum2 = 0;

   else

       printf("userNum2 is less than or equal to 9.\n");

   return 0;

}

Explanation:  

Initialize userNum1 and userNum2.

If userNum1 is less than 0, print 'userNum1 is negative" and end with newline.

if userNum2 is greater than 9, assign 0 to userNum2.

Otherwise, print "userNum2 is less than or equal to 9 and end with newline.

You might be interested in
Suppose that a laptop identifies its processor as follows: AMD’s A84500M. What does the AMD represent?
zalisa [80]

Answer:

Advanced Micro Devices

Explanation:

4 0
3 years ago
Game Changer Technologies has four software teams. Each of them is developing four different examples of its new game app. Which
bagirrra123 [75]

The software development methodology used by the Game Changer teams is called; <u><em>Prototyping</em></u>

<u><em /></u>

We are given that;

- Game changer technologies has four software teams

- Each of the teams develops 4 different examples of the new game app.

Now, since each of them is developing four four different examples of its new game app, the method being used is called prototyping. This is because prototyping is referred to as the early approximation of the final system of a product whereby such a product is built, tested and rebuilt if required until an acceptable prototype is achieved.

When the acceptable prototype is gotten, then it will be used to develop its final game app.

Read more about prototype at; brainly.com/question/25824140

8 0
2 years ago
What does the process of email encryption involve??
stealth61 [152]

Answer: Option C

Explanation:

4 0
3 years ago
What is the capacity of a disk with two platters, 10,000 cylinders, an average of 400 sectors per track, and 512 bytes per secto
natita [175]

Answer:

The capacity of the disk is "40 GB".

Explanation:

Given value:

\to \text{cylinder}= 10,000\\\\\to \frac{sector}{track} = 400\\\\\to \frac{bytes}{sector} = 512\\

\text{Calculating the size of track} =  \frac{bytes}{sector} \times  \frac{sector}{track}

                                            = 512 \times  400 \\\\ = 204,800 \ \ Or  \ \ 200 \ K

\text{Calculating the size of surface} = \frac{byte}{track} \times \ cylinder

                                               = 2000 \ K \times  10,000 \\\\ = 20, 000,000 \ K

\text{Calculating the capacity of a disk} = \frac{byte}{surface} \times \frac{surface}{disk}

                                                     = 20, 000,000 \ K \times  2 \\\\ = 40, 000,000 \ K \\\\= 40 \ GB

Cache memory is often used to speed up the runtime. It will enable us to improve performance unless we can store information, that is retrieved constantly in memory space.

  • Hit Cache: when the Processor relates to representing database data, Cache Hit results.
  • Miss Cache: when this Processor responds to a non-present cache data, this will trigger its miss of cache.
  • It doesn't have to retrieve the Main Memory through secondary storage.
3 0
3 years ago
You are the administrator for the CorpNet domain. The CorpDC and CorpDC3 servers are the DNS servers for the domain. You are res
azamat

Answer:

1. the ping is unable to find CorpWeb

2. There is a problem with the CorpWeb DNS record

3. Create any DNS records needed to fix the problem

4. The ping now succeeds

Explanation:

1. the ping is unable to find CorpWeb.

In the Search the web and Windows field, enter cmd.

Under Best match, right-click Command Prompt and select Run as Administrator.

At the command prompt, type ping corpweb.corpnet.local and press Enter.

Notice that the ping is unable to find CorpWeb.

2. There is a problem with the CorpWeb DNS record.

At the command prompt, type ping 192.168.0.15 and press Enter.

The ping succeeds using the IP address, indicating a problem with the CorpWeb DNS record.

3. Create any DNS records needed to fix the problem.

In Hyper-V Manager, select CORPSERVER.

Under Virtual Machines, right-click CorpDC and select Connect.

In Server Manager, select Tools > DNS.

In the left pane, expand CORPDC.

Expand Forward Lookup Zones.

Right-click CorpNet.local and select New Host (A or AAAA).

In the Name field, enter CorpWeb.

In the IP address field, enter 192.168.0.15.

Select Create associated pointer (PTR) record to automatically create the PTR record for the new host.

Select Add Host.

Click OK.

Click Done to close the New Host dialog.

4. The ping now succeeds.

At the command prompt on CorpServerping, type ping corpweb.corpnet.local and press Enter.

The ping now succeeds.

Hope this helps!

4 0
3 years ago
Other questions:
  • If you feel that an OSHA inspection is needed to get hazards corrected at your workplace which is the best option
    9·1 answer
  • What ip address cidrs are not allowed to be communicated with by our malware?
    15·1 answer
  • Write a program that gets a single character from the user. If the character is not a capital letter (between 'A' and 'Z'), then
    15·1 answer
  • While doing online research you enter this keyword search with a truncation character: man* Which of the following would not be
    15·1 answer
  • Write the following word or words in Spanish.<br><br> the male teacher
    14·2 answers
  • Eric’s computer slows down when he open several computer programs. Why does this happen?
    15·2 answers
  • Radio waves can be used to transmit energy. What is an advantage of this method in computer technology
    7·2 answers
  • (I WILL GIVE BRAINLIEST) Which steps will delete an appointment?
    8·1 answer
  • Al these are benefits of computer literacy except
    14·1 answer
  • Louis has entered a column of expense values. What feature can he use to insert the total expenses at the end of the column?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!