Question

In: Computer Science

1. Create a symbolic constant called PI in two different manners. For both, the value that...

1. Create a symbolic constant called PI in two different manners. For both, the value that is associated with the constant should be 3.14159

2. x = 0; y = 5;

Is the following condition true or false?

if (   x > 0       and    x < 10      or   y = = 4)

3. What statement is used to bring in libraries at the top of your C program?

Solutions

Expert Solution

1. We can not creating constant PI in two different ways there will be a error.

2. false

3.The statements written in the beginning of the program are known as header files.

#include<stdio.h> is used bring the standard input and output file

#include<conio.h> is used to bring console input and output.


Related Solutions

1. What are the two manners by which prokaryotic transcription stops? How do these two manners...
1. What are the two manners by which prokaryotic transcription stops? How do these two manners differ? How do these differ from eukaryotic transcriptional termination? 2. What is the general process of genome expression in eukaryotes versus prokaryotes? 3. What is the Shine Delgarno sequence? What is a promoter? What is a UTRs transcriptional terminator? 4. What is Rho helicase? 5. RNA polymerase II requires a lot of other factors in order to engage in transcription. Draw out or explain...
create an interface called Visible that has two methods called makeVisiible, makeInvisible. both methods take no...
create an interface called Visible that has two methods called makeVisiible, makeInvisible. both methods take no parameters and should return a boolean result. HTML EditorKeyboard Shortcuts 12pt Paragraph 0 words Flag this Question Question 58 pts The following classes have been created with the given behaviors: public class Leo extends Don { public void method1() { System.out.print("Leo 1 "); } public void method3() { System.out.print("Leo 3 "); } public String toString() { return "Leo 1 "; } } class Mike...
calculate the Pi value of aspartic acid and lysine compare the two values
calculate the Pi value of aspartic acid and lysine compare the two values
Problem 1 Create a new project called Lab7 Create a class in that project called ListORama...
Problem 1 Create a new project called Lab7 Create a class in that project called ListORama Write a static method in that class called makeLists that takes no parameters and returns no value In makeLists, create an ArrayList object called avengers that can hold String objects. Problem 2 Add the following names to the avengers list, one at a time: Chris, Robert, Scarlett, Clark, Jeremy, Gwyneth, Mark Print the avengers object. You will notice that the contents are displayed in...
#Sphere – pi and radius Create two python programs named program_1 and program_2 that will calculate...
#Sphere – pi and radius Create two python programs named program_1 and program_2 that will calculate the surface area of a sphere. The programs will use user-defined functions. Global variables are NOT allowed in either program. Program_1 will be listed first in the answer box with Program_2 written below it. Separate the programs with a line of dashes ( --------------------------------------------- ) as shown in the example below. Program_1 will: Prompt the user for the radius of the shape and store...
1. Create an xml documents called company.xmlcontaining two sections employees and invoices with the following specifications:...
1. Create an xml documents called company.xmlcontaining two sections employees and invoices with the following specifications: A. • Employee ▪ Name o Last name o First name ▪ Address ▪ Hire Date B.​ ▪ Invoice • Order (Should have an order number attribute) o Name (of the customer) o Address (of the customer) o Total price (of the order) o Date (of the order) • Shipping info o Name (of the company) - Use either of the following: ▪ Fed...
1. create a class called ArrayStack that is a generic class. Create a main program to...
1. create a class called ArrayStack that is a generic class. Create a main program to read in one input file and print out the file in reverse order by pushing each item on the stack and popping each item off to print it. The two input files are: tinyTale.txt and numbers.txt. Rules: You cannot inherit the StackofStrings class. 2. Using your new ArrayStack, create a new class called RArrayStack. To do this, you need a) remove the capacity parameter...
C++ Language Implement a two-dimensional image using a nested loop. 1) Create an integer constant DIM...
C++ Language Implement a two-dimensional image using a nested loop. 1) Create an integer constant DIM and set it equal to 5. 2) Use a nested loop to print the output in terms of DIM. Example output: ***** *---* *---* *---* *****
What is the connection between the value of shares and dividends? How are they both different?
What is the connection between the value of shares and dividends? How are they both different?
using python 1. #Write a function called multiply_file_by_index. This function #should take two parameters, both strings....
using python 1. #Write a function called multiply_file_by_index. This function #should take two parameters, both strings. The first string is #the filename of a file to which to write (output_file), and #the second string is the filename of a file from which to read #(input_file). # #In the input file, there will be an integer on every line. #To the output file, you should write the integer from the #original file multiplied by the line number on which it #appeared....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT