#include int main(void) { double dividend = 0.0; double divisor = 0.0; printf("%lf\n", dividend / divisor); dividend = 3.0; printf("%lf\n", dividend / divisor); return 0; }
Q: What should we do if we don't have a paper outlining the requirements?
A: Introduction: It is critical to do a textual analysis of needs to identify improper requirements…
Q: Is there a specific term that can be used to describe the integration of computers?
A: Introduction: When I originally started looking at CS programs, I had the same question. "Why the…
Q: When working with UNIX, the method of interprocess communication that is the quickest is
A: Check next step for the explanation
Q: Draw parallels between software engineering and academic research. Is it possible to identify any…
A: Writing a paper involves the following steps: Pre-writing Research Writing Revising editing and…
Q: Problem 35 (0)5 (2) [] By using the siftdown method, find the max-heap sort date structure for an…
A: The siftdown method is used to move an element in a max-heap down the tree to its correct position.…
Q: Please tell me what year and where the concept of the Internet of Things first emerged.
A: Below is the answer to the question posed above: In actuality, the Internet of Things (IoT) is a…
Q: What import statements do you use when creating a text file? ( HINT: There are 4 statements)
A: Import Statment used when creating text file
Q: Using javascript to write a function taking two numbers as arguments. Return true if the sum of any…
A: The solution is given in the next step
Q: A change advisory board did not approve a requested change due to the lack of alternative actions if…
A: Answer is attached in step 2 along with explanation.
Q: In this section, the Rational Unified model and the Classical Waterfall model will be contrasted to…
A: Since there are several tasks involved in software development, they are divided into waterfall…
Q: What is the big O function of the following growth rate function g(n)? h(n) = 100nlogn +3n + 9…
A: Solution:- Big O notation :- •Big O Notation describes the upper bound of an algorithm's runtime.…
Q: In a few sentences, please explain the various stages that are included in Donald Norman's…
A: Introduction: Model of User Interaction with the Real World Provided by Donald Norman In his book…
Q: It is strongly recommended that you present a more in-depth explanation of the metrics that are…
A: A software metric measures a system or process's property. Even though a metric isn't an estimate…
Q: The use of cloud computing in financial systems presents its own unique set of challenges, just as…
A: Cloud Computing's Drawbacks There are advantages to using cloud computing, but it is apparent that…
Q: Please clarify what you mean by "the internet of things" in your own words. What distinguishes the…
A: The Internet of Things links everyday objects to the internet or identify phones to one other. RFID…
Q: What is the background of the internet of things, and what are some examples of how this relatively…
A: Introduction: IoT refers to physical objects (or groups of such entities) embedded with sensors,…
Q: There are numerous dangers to data security. The next step is to investigate the various possible…
A: INTRODUCTION: Data security is safeguarding company data and preventing data loss from unauthorized…
Q: n the context of software, what kind of connection exists between coupling and cohesion
A: Introduction: The connection between modules is known as "cohesion." It is referred to as the…
Q: Is there a specific term that can be used to describe the integration of computers?
A: Introduction: Output, Input, processing, and storage of data and information are all functions of a…
Q: Please tell me what year and where the concept of the Internet of Things first emerged.
A: Solution: Given, what year and where the concept of the Internet of Things first emerged.
Q: Does software cohesion seem to increase with tighter coupling?
A: The module passage or reference is formed at the interface, where the complexity of the interface…
Q: Deadlock occurs when many processes attempt to utilise a shared resource simultaneously.
A: To state the statement: Deadlock occurs when many processes attempt to utilise a shared resource…
Q: Visual data is shown in VGA mode on a display device. Exactly what evidence do you have for this…
A: Introduction: The graphic display(presentation) of information and data is known as data…
Q: What are your thoughts on the relationship between data quality and data warehouses? Offer benefits…
A: Better data quality improves board decision-making. More high-quality data increases…
Q: What precisely does one do when one works in data science? What kinds of degrees and other…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: Depending on how far along the process is, you should write a brief essay discussing three testing…
A: Testing Maturity Model: A framework called the Testing Maturity Model (TMM) is used to assess the…
Q: What exactly does it mean when someone refers to the internet as a cloud? If allowing hosts to…
A: The Internet, or more specifically, whatever you can access or get remotely through the Internet, is…
Q: In a few sentences, please explain the various stages that are included in Donald Norman's…
A: Model Donald Norman : In his book "The Design of Everyday Things," Donald Norman offers a framework…
Q: When it comes to the planning and execution of software development, can you explain the…
A: When a company creates a software artefact, it outlines how it will achieve its goals utilising a…
Q: Discuss the direction that you would provide to multinational companies who are interested in…
A: Globalization: You may assume it's easier to design a website for international visitors than…
Q: Determine which of the many different types of computer memory storage units is best for your needs…
A: Memory storage units in a computer system need to be differentiated in terms of cost, speed of…
Q: The super class of all classes in c# is
A: Solution the super class of all classes in c# is object class (the root of all classes)The Object…
Q: Exactly what does the foundational ideology of software engineering ignore? Explain
A: Basic Introduction; It is set of programs which contains instructions which will be used to the…
Q: How critical is it to have robust data safeguards, given the arrival of the digital era? What…
A: Data security, sometimes termed information security or PC security, refers to an organization's…
Q: Please name two types of projects where automated testing technologies would prove especially…
A: Testing should have the highest priority for automation, followed by integration and functional…
Q: What exactly is meant by the term "cohesiveness," and how does it contrast with "coupling" in the…
A: Cohesion: Categorization uses cohesion and coupling to show component relationships. Cohesion…
Q: 7.27 Write behavioral VHDL code in the style shown in Figure 7.51 that represents a ring counter.…
A: library IEEE; use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;--library ieee;--use…
Q: o have stalled because deadlocks have been detected in their processes are granted access to the…
A: INTRODUCTION: Deadlock Definition: In Operating System sometimes rarely we come across a situation…
Q: The Internet's transport layer is responsible for ensuring that data may move freely across…
A: Introduction: Transport is the fourth OSI network layer. OSI divides networked computers into seven…
Q: Apply the binary and the ternary exponentiation algorithm for evaluating x^730 . Compare the
A: Solution:- Binary exponentiation (also known as exponentiation by squaring) is a trick which allows…
Q: We need to look at how threads are scheduled and how processes and threads are similar and…
A: How threads are scheduled? A thread's execution is planned according to its priority. Although…
Q: There are many different networks that make up the
A: Dear Student, The answer to your question is given below -
Q: We need to compare and contrast how processes and threads are scheduled.
A: How Processes are scheduled? A process is scheduled into ready, waiting, and operating states via…
Q: Why is it that the Internet is often depicted as a cloud? Why isn't data transfer between hosts the…
A: Internet, but with one small difference: it means using a software service. You can work on it using…
Q: The installation of multiple video cards on a single computer requires the utilization of two…
A: An integrated circuit known as a video card, sometimes known as a graphics card, produces the video…
Q: Is it accurate to represent the web as a cloud? What's the big deal if computers can't merely…
A: Is it accurate to represent the web as a cloud? What's the big deal if computers can't merely…
Q: When using UNIX, the shortest type of interprocess communication is
A: Introduction: A multiuser, multitasking operating system that is commonly used in servers and…
Q: Create three vectors: a = [2 1 – 0 6] b = [–5 20 12 -3] c = [10 7 2 – 1] i) Use the three vectors…
A: Transpose: Change rows to columns and columns to rows. Rows and columns of a matrix: The rows of a…
Q: Should we use a synchronous or asynchronous bus to connect the central processing unit and the…
A: Introduction ; Bus: A bus is a subsystem that links computer parts & allows data to be…
Q: What are the three components that a network must have in order to be considered successful and…
A: The three components of a successful and productive network are: 1) Network Infrastructure, 2)…
What is the output?
#include <stdio.h>
int main(void) {
double dividend = 0.0;
double divisor = 0.0;
printf("%lf\n", dividend / divisor);
dividend = 3.0;
printf("%lf\n", dividend / divisor);
return 0;
}
Question 5 options:
|
inf nan |
|
nan inf |
|
inf 0.0 |
|
nan 0.0 |
Step by step
Solved in 2 steps with 2 images
- #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…
- #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…QUESTION 21 int x1=200; int y1=3003; int z1, z2, z3, z4; int d1, d2, d3; _asm{ mov EAX, x1; 200 mov EBX, y1; 300 mov z1, ESP; assume initial ESP: OFFF FFEA add EAX, x1; 400 push EAX; mov d1, EAX:400 mov z2, ESP; push EBX; SUB EBX, x1; 300-200=100 mov d2, EBX; mov 23, ESP; POP ECX; MOV d3, ECX; MOV z4, ESP; POP EDX; mov d4, EDX; What is z3 in Hexidecimal? O OFFF FFEA O OFFF FFE6 OFFF FFE2 OFFF FFEEusing System; using System.Linq; using System.Text; namespace Games; { class Program { staticvoid Main(string[] args) { int choice,games_choice; cout<<"What are your favorite games - outdoor or indoor"<<endl; cout<<"Press 1 for 'outdoor' or Press 2 for 'indoor'"<<endl; cin>>choice; if(choice==1) { cout<<"What is your favorite outdoor game"<<endl; cout<<"Press 1 for Tennis"<<endl; cout<<"Press 2 for Football"<<endl; cout<<"Press 3 for Cricket"<<endl; cin>>games_choice; if(games_choice==1) cout<<"I also like Tennis"<<endl; elseif(games_choice==2) cout<<"I also like Football"<<endl; elseif(games_choice==3) cout<<"I also like Cricket"<<endl; } elseif(choice==2) { cout<<"What is your favorite indoor game"<<endl; cout<<"Press 1 for Ludo"<<endl; cout<<"Press 2 for Chess"<<endl; cout<<"Press 3 for Cards"<<endl;…
- please correct this code i didnt get the mistake #include<stdio.h>#define NROWS 8#define NCOLS 8#define TRUE 1#define FALSE 0 void main(){ int queenht_row, queenht_col; int line,row,col,i,j; int filled; printf("Chess queenht Program\n"); do{ printf("Enter queenht's coordinates: "); scanf("%d %d",&queenht_row,&queenht_col); }while((queenht_row<1)||(queenht_row>NROWS)||(queenht_col<1)||(queenht_col>NCOLS)); for(line=1;line<=2*NROWS+1;line++){ row = line/2; if(line%2!=0){ printf("+"); for(col=1;col<=NCOLS;col++) printf("---+"); printf("\n"); } else{ printf("|"); for(col=1;col<=NCOLS;col++){ filled=FALSE; if((row==queenht_row) && (col==queenht_col)){ printf(" Q |"); filled = TRUE; continue; }…be recor #include #include minutes #include limit on int func(int, int, int, int); main(){ srand(time(NULL)); int a, b, c, fNum; printf("Choose three different numbers between 0-39:"); scanf ("%d%d%d", &a, &b, &c); fNum = func (a, b, c, 25); printf("\nThe result: %d", fNum); } int func (int ul, int u2, int u3, int iter){ srand (time (NULL)); int n1=0, i=0, count=0; for (;iText-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. Modify the application below (week3.py) so that the selection variable is sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. You will need to add an if statement in the choice() function to make the correct selection.Lowest Score Drop Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: void getScore() should ask the user for a test score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five scores to be entered. void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores. int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop. Input Validation: Do not accept test scores lower than 0 or higher than 100.#include <stdio.h>#include <stdlib.h> int cent50 = 0;int cent20 = 0;int cent10 = 0;int cent05 = 0; //Function definitionvoid calculateChange(int change) {if(change > 0) {if(change >= 50) {change -= 50;cent50++;} else if(change >= 20) {change -= 20;cent20++;} else if(change >= 10) {change -= 10;cent10++;} else if(change >= 05) {change -= 05;cent05++;}calculateChange(change);}} //Define the functionvoid printChange() { if(cent50)printf("\n50 Cents : %d coins", cent50); if(cent20)printf("\n20 Cents : %d coins", cent20); if(cent10)printf("\n10 Cents : %d coins", cent10); if(cent05)printf("\n05 Cents : %d coins", cent05);cent50 = 0;cent20 = 0;cent10 = 0;cent05 = 0; } //Function's definitionint TakeChange() { int change;printf("\nEnter the amount : ");scanf("%d", &change);return change; }//main functionint main() {//call the functionint change = TakeChange(); //use while-loop to repeatedly ask for input to the userwhile(change != -1){if((change %…SEE MORE QUESTIONSRecommended textbooks for youDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSONC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag…Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill EducationDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSONC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag…Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education