EBK C HOW TO PROGRAM
8th Edition
ISBN: 9780100663831
Author: Deitel
Publisher: YUZU
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 3, Problem 3.11E
Fill in the blanks in each of the following:
- The solution to any problem involves performing a series of actions in a specific _______.
- A synonym for procedure is _______.
- A variable that accumulates the sum of several numbers is a(n) _____ .
- A special value used to indicate “end of data entry” is called a(n) _____, a(n) _____, a(n) _____ or a(n) _____ value.
- A(n) _____ is a graphical representation of an
algorithm . - In a flowchart, the order in which the steps should be performed is indicated by _____ symbols.
- Rectangle symbols correspond to calculations that are normally performed by ______ statements and input/output operations that are normally performed by calls to the _____ and _____ Standard Library functions.
- The item written inside a decision symbol is called a(n) _____
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Complete the following questions about different types of variables:i. Check the last digit of your id number(123456789). If it is even or 0, fill the gap in (A)with the word global (i.e., static global), otherwise, fill it with local (i.e., static local).Then, complete Table I.
ii. In a multi-source program, there is a fileA.c that contains variables and functions,and a fileB.c that contains the main function, as well as usage of some of theresources found in fileA.c.
Explain:a) fileA.c has a global variable called my_variable, that should only beaccessed within the file. I.e., no other files should be able to access thatvariable.How should my_variable be declared inside of the file, in order to guaranteethis functionality?
b) fileA.c also has a global variable called my_shared_variable, which canand should be accessible from other files, including fileB.c.How should my_shared_variable be declared in order to allow thisfunctionality?Note for item ii): You also need to state in a…
Exercise 5-8 Determine which of the following can, and which cannot be added to our set of valid argument forms.
(1) p ∨ (q ∨ r) :: r ∨ (q ∨ p)
(3) p ⊃ (q ⊃ r) :: r ⊃ (q ⊃ p)
(5) p ⊃ q /∴ ∼ (∼ q ⊃ p)
Find the error in each of the following program segments and explain how the error can becorrected (see also Exercise 5.46):a) int g(void){printf("%s", Inside function g\n");int h(void){printf("%s", Inside function h\n");}}b) int sum(int x, int y){int result = x + y;}c) void f(float a);{float a;printf("%f", a);}
Chapter 3 Solutions
EBK C HOW TO PROGRAM
Ch. 3 - Indentify and correct the errors in each of the...Ch. 3 - Fill in the blanks in each of the following: The...Ch. 3 - Prob. 3.12ECh. 3 - Write a single pseudocode statement that indicates...Ch. 3 - Formulate a pseudocode algorithm for each of the...Ch. 3 - State which of the following are true and which...Ch. 3 - For Exercises 3.16-3.20, perform each of these...Ch. 3 - For Exercises 3.16 -3.20, perform each of these...Ch. 3 - (Sales-Commission Calculator) One large chemical...Ch. 3 - (Interest Calculator) The simple interest on a...
Ch. 3 - (Salary Calculator) Develop a program that will...Ch. 3 - (Predecrementing vs. Postdecrementing)Write a...Ch. 3 - (Printing Numbers from a Loop) Write a program...Ch. 3 - (Find the Largest Number) The process of finding...Ch. 3 - (Tabular Output) Write a program that uses looping...Ch. 3 - (Tabular Output) Write a program that utilizes...Ch. 3 - (Find the Two Largest Numbers) Using an approach...Ch. 3 - (Validating User Input) Modify the program in...Ch. 3 - Prob. 3.28ECh. 3 - Prob. 3.29ECh. 3 - (Dangling-Else Problem) Determine the output for...Ch. 3 - (Another Dangling-Else Problem) Modify the...Ch. 3 - Prob. 3.32ECh. 3 - (Hollow Square of Asterisks) Modify the program...Ch. 3 - (Palindrome Tester) A palindrome is a number or a...Ch. 3 - (Printing the Decimal Equivalent of a Binary...Ch. 3 - (How Fast Is Your Computer?) How can you determine...Ch. 3 - (Detecting Multiples of 10) Write a program that...Ch. 3 - (Counting 7s) Write a program that reads an...Ch. 3 - (Checkerboard Pattern of Asterisks) Write a...Ch. 3 - (Multiples of 2 with an Infinite Loop) Write a...Ch. 3 - (Diameter, Circumference and Area of a Cirle)...Ch. 3 - Whats wrong with the following statement? Rewrite...Ch. 3 - (Sides of a Triangle) Write a program that reads...Ch. 3 - (Sides of a Right Triangle) Write a program that...Ch. 3 - (Factorial) The factorial of a nonnegative integer...Ch. 3 - (World-Population-Growth Calculator) Use the web...Ch. 3 - (Target-Heart-Rate Calculator) While exercising,...Ch. 3 - (Enforcing Privacy with Cryptography) The...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
This problem will give you a chance to reverb engineer a switch statement from disassembled machine code. In th...
Computer Systems: A Programmer's Perspective (3rd Edition)
The Upper West View Yacht club sponsors sailboat races every weekend for its fleet of SuperGee sailboats, and w...
Starting Out With Visual Basic (8th Edition)
Compare and contrast the break and continue statements.
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
What is the difference between a traditional programmer and a component assembler?
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
What do the Ada and COBOL languages have in common?
Concepts Of Programming Languages
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- (Numerical) a. The following is an extremely useful programming algorithm for rounding a real number to n decimal places: Step 1: Multiply the number by 10n Step 2: Add 0.5 Step 3: Delete the fractional part of the result Step 4: Divide by 10n For example, using this algorithm to round the number 78.374625 to three decimal places yields: Step1:78.374625103=78374.625 Step2:78374.625+0.5=78375.125 Step3:Retainingtheintegerpart=78375Step4:78375dividedby103=78.375 Using this algorithm, write a C++ function that accepts a user-entered value and returns the result rounded to two decimal places. b. Enter, compile, and run the program written for Exercise 11a.arrow_forward(Numerical) Using the srand() and rand() C++ library functions, fill an array of 1000 floating-point numbers with random numbers that have been scaled to the range 1 to 100. Then determine and display the number of random numbers having values between 1 and 50 and the number having values greater than 50. What do you expect the output counts to be?arrow_forward(For thought) Although you have concentrated on operations involving integer and floatingpoint numbers, C++ allows adding and subtracting characters and integers. (These operations are possible with characters because they’re integer data types and are stored by using integer codes.) Therefore, characters and integers can be mixed in arithmetic expressions. For example, if your computer uses the ASCII code, the expression 'a'+1equals'b'and'z'1equals'y'.Similarly,'A'+1is'B'and'Z'-1is'Y'. With this information as background, determine the character results of the following expressions. (Assume all characters are stored by using ASCII codes.) a.m5b.m+5c.G+6d.G6e.baf.ga+1g.GA+1arrow_forward
- Use Python for this question: Write a function testCraps that accepts a positive integer n as an input, simulates n games and craps, and returns the fraction of games the player won. the testCraps function should not make dice rolls directly, instead ... testCraps function should call the craps function repeatedly and keep track of the results if you your craps and testCraps function simulate the game correctly without any extra rolls, you should be able to hit the results below exactly Please run a doctest to make sure the function returns the correct output that is shown in the attached image. The output for this question is in the attached image:arrow_forward4. Odd-Even-inator by CodeChum Admin My friends are geeking out with this new device I invented. It checks if a number is even or odd! ? Do you want to try it out? Instructions: In the code editor, you are provided with a function that checks whether a number is even or odd. Your task is to ask the user for the number of integer, n, they want to input and then the actual n number values. For each of the number, check whether it is even or odd using the function provided for you. Make sure to print the correct, required message. Input 1. Integer n 2. N integer valuesarrow_forwardPrompt: In python language, write a function that give that find the total number of alphanumeric characters in the original input text, the total number of unique numeric characters in the original input text, remove all non alphabetic characters, convert all text to lowercase, the total number of words after preprocessing, the total number of unique words after preprocessing. code: sampleText = "The university was built in 1854. The university`s enrollment is approximately 19000 undergraduate students and 8600 graduate students.[5]" # Your function should return 4 variables: alphaNumCount, uniqueNumCount, wordCount, uniqueWordCount def textPreprocessing(textString): alphaNumCount, uniqueNumCount, wordCount, uniqueWordCount = (0, 0, 0, 0) #YOUR CODE HERE: def test(sampleText): alphaNumCount, uniqueNumCount, wordCount, uniqueWordCount = textPreprocessing(sampleText) print("Total number of alphanumeric characters in the original input text: ", alphaNumCount) print("Total…arrow_forward
- Please fill in the blanks for the following statements: The ________________ statement passes a value back to a function’s caller.arrow_forwardUse Python for this question. Please format the code as it would be shown in Python. Write a function testCraps that accepts a positive integer n as an input, simulates n games and craps, and returns the fraction of games the player won. the testCraps function should not make dice rolls directly, instead ... testCraps function should call the craps function repeatedly and keep track of the results if you your craps and testCraps function simulate the game correctly without any extra rolls, you should be able to hit the results below exactly Please run a doctest to make sure the function returns the correct output that is shown in the attached image. Output for this problem is shown in the attached picturearrow_forwardplease use a different way than the ones online becuase I didn`t understand them use a genuine way please thank you. Write a fraction calculator program that adds, subtracts, multiplies, and di-vides fractions. Your program should check for the division by 0, have and use the fol-lowing functions:(a) abs - returns the absolute value of a given integer.(b) min - returns the smallest of two positive integers.(c) gcd - returns the greatest common divisor of two positive integers.(d) reduce - reduces a given fraction.(e) flip - reduces a given fraction and flips the sign if the denominator is negative.(f) add - finds the reduced sum of a pair of given fractions.(g) subtract - finds the reduced difference of a pair of given fractions, by makingthe second fraction negative then using the add function.(h) multiply - finds the reduced product of a pair of given fractions.(i) divide - finds the reduced quotient of a pair of given fractions by inverting thesecond fraction then using the multiply…arrow_forward
- Match the following function with a possible asymptotic notation. I've tried to start it, but I need a little help. Thank youarrow_forward**PLEASE READ THE WHOLE QUESTION!!"" Write a python, program that prints a pyramid made of letters in the middle of the screen. Use functions with parameters for this assignment. The base width of the pyramid is determined by a character the user enters. If the user enters the letter o, the following pyramid will be printed. It can be assumed that the screen width is 80 characters. The following assignments make use of functions with return values ("fruitful functions"). So if the user enters the letter o it will print the ******The input is not always o, the input o is just an example, so the user can enter also a letter like u or w or something else******** **nBesides that the code may not have the charArray = 'abcdefghijklmnopqrstuvwxyz', but it needs to have the range code like (range(97,123)) or something else **arrow_forwardSuppose a and b are integer variables and we form the sum a + b. Now suppose c andd are floating-point variables and we form the sum c + d. The two + operators here areclearly being used for different purposes. This is an example of____________arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
What Are Data Types?; Author: Jabrils;https://www.youtube.com/watch?v=A37-3lflh8I;License: Standard YouTube License, CC-BY
Data Types; Author: CS50;https://www.youtube.com/watch?v=Fc9htmvVZ9U;License: Standard Youtube License