Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 6, Problem 39CRP
Program Plan Intro
Syntax diagram:
Syntax diagram is the
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
This syntax is not working
Summarize three common rules for naming variables
C++ Language code and explain
Zodiac Sign Identifier - Ask the user's birth month and birth day and return the corresponding Zodiac Sign he/she belongs: Evaluate the user's birth month and day by checking the following: If born from,
Mar 21 to Apr 19 - Aries
Apr 20 to May 20 - Taurus
May 21 to Jun 20 - Gemini
Jun 21 to Jul 22 - Cancer
Jul 23 to Aug 22 - Leo
Aug 23 to Sep 22 - Virgo
Sep 23 to Oct 22 - Libra
Oct 23 to Nov 21 - Scorpio
Nov 22 to Dec 21 - Sagittarius
Dec 22 to Jan 19 - Capricorn
Jan 20 to Feb 18 - Aquarius
Feb 19 to Mar 20 - Pisces
Example:
What is your month of birth? 1 - January (31 days) 2 - February (27 days, if Leap Year 28 days) 3 - March (31 days) 4 - April (30 days) 5 - May (31 days) 6 - June (30 days) 7 - July (31 days) 8 - August (31 days) 9 - September (30 days) 10 - October (31 days) 11 - November (30 days) 12 - December (31 days)
Please enter your birth month: 8
Please enter day of your birth: 16
Please enter your year of birth: 1997
Your birthday is every…
Chapter 6 Solutions
Computer Science: An Overview (12th Edition)
Ch. 6.1 - In what sense is a program in a third-generation...Ch. 6.1 - We can summarize the imperative programming...Ch. 6.1 - Prob. 4QECh. 6.2 - Why is the use of a constant considered better...Ch. 6.2 - Prob. 2QECh. 6.2 - Prob. 3QECh. 6.2 - Identity some common control structures found in...Ch. 6.2 - What is the difference between an array and an...Ch. 6.3 - Prob. 1QECh. 6.3 - Prob. 2QE
Ch. 6.3 - Why do many programming languages implement I/O...Ch. 6.3 - Prob. 4QECh. 6.3 - Prob. 5QECh. 6.4 - Prob. 1QECh. 6.4 - What is a symbol table?Ch. 6.4 - What is the difference between a terminal and a...Ch. 6.4 - Prob. 4QECh. 6.4 - Prob. 5QECh. 6.4 - Prob. 6QECh. 6.5 - What is the difference between an object and a...Ch. 6.5 - Prob. 2QECh. 6.5 - Suppose the classes PartTimeEmployee and...Ch. 6.5 - What is a constructor?Ch. 6.5 - Why are some items within a class designated as...Ch. 6.6 - Prob. 1QECh. 6.6 - Prob. 2QECh. 6.6 - Prob. 3QECh. 6.7 - Prob. 2QECh. 6.7 - Prob. 3QECh. 6.7 - Prob. 4QECh. 6 - Prob. 1CRPCh. 6 - Translate the following Python program into the...Ch. 6 - Prob. 3CRPCh. 6 - Why was it necessary to identify the type of data...Ch. 6 - Prob. 6CRPCh. 6 - Suppose the function f expects two numeric values...Ch. 6 - Suppose f is a function that returns the result of...Ch. 6 - Prob. 9CRPCh. 6 - Summarize the distinction between a machine...Ch. 6 - John Programmer argues that the ability to declare...Ch. 6 - Summarize the distinction between declarative...Ch. 6 - Explain the differences between a literal, a...Ch. 6 - a. What is operator precedence? b. Depending on...Ch. 6 - Prob. 16CRPCh. 6 - What is the difference between the meaning of the...Ch. 6 - Draw a flowchart representing the structure...Ch. 6 - Prob. 19CRPCh. 6 - Prob. 20CRPCh. 6 - Draw a flowchart representing the structure...Ch. 6 - Rewrite the following program segment using a...Ch. 6 - Summarize the following rats-nest routine with a...Ch. 6 - Prob. 24CRPCh. 6 - Prob. 25CRPCh. 6 - Suppose the variable X in a program was declared...Ch. 6 - Prob. 27CRPCh. 6 - Why would a large array probably not be passed to...Ch. 6 - Sometimes an actual parameter is passed to a...Ch. 6 - Prob. 32CRPCh. 6 - What ambiguity exists in the statement X = 3 + 2 ...Ch. 6 - Suppose a small company has five employees and is...Ch. 6 - Prob. 35CRPCh. 6 - Prob. 36CRPCh. 6 - Prob. 37CRPCh. 6 - Prob. 38CRPCh. 6 - Prob. 39CRPCh. 6 - Design a set of syntax diagrams that describes the...Ch. 6 - Prob. 41CRPCh. 6 - Prob. 42CRPCh. 6 - Add syntax diagrams to those in Question 5 of...Ch. 6 - Prob. 44CRPCh. 6 - What code optimization could be performed by a...Ch. 6 - Simplify the following program segment Y = 5 if (Y...Ch. 6 - Simplify the following program segment while (X !=...Ch. 6 - In an object-oriented programming environment, how...Ch. 6 - Describe how inheritance might be used to develop...Ch. 6 - What is the difference between the public and...Ch. 6 - a. Give an example of a situation in which an...Ch. 6 - Describe some objects that might be found in a...Ch. 6 - Prob. 53CRPCh. 6 - Prob. 54CRPCh. 6 - Prob. 55CRPCh. 6 - Prob. 56CRPCh. 6 - Prob. 57CRPCh. 6 - Prob. 58CRPCh. 6 - Prob. 59CRPCh. 6 - In general copyright laws support ownership rights...Ch. 6 - By using a high-level programming language, a...Ch. 6 - Prob. 3SICh. 6 - Prob. 4SICh. 6 - Prob. 5SICh. 6 - Suppose an amateur programmer writes a program for...Ch. 6 - Prob. 7SI
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
- The language that must be used is C#arrow_forwardPlease help me with this structured programming task in C language, I'm confused about what to do with this. I will not present this work as my own, but will base your answer on how to formulate my answer. Note: Use any of these structures and not other structures. Selection structures. Sequence Structures. Repetition structures. Structures one-dimensional arrangement. Structures two-dimensional arrangement. Problem: Restaurant Billing For a restaurant, it is desired to implement a billing system that allows for the efficient recording and collection of bills. During peak days, waiters need to be able to more quickly select the dishes and beverages most frequently ordered by customers and to be able to add them to the bill. In case of a mistake, they should also be allowed to remove items from the bill. All food and beverages should be pre-registered in the system with their corresponding prices, but not all of them should appear in the express list, only those that have…arrow_forwardC program Define an inch-feet structure that describe the distance. Please input two distances from the terminal. Then add these two distances and output the result. Note: You should get the information from terminal to initialize the structure. For example, if you input 3 feet 5 inches, you need to save 3 and 5 separately in the structure.arrow_forward
- Use C++ Language Create a program that will determine if a student needs to take a final exam. This decision depends on the course grade average and the student’s attendance. Use the flow chart below for the final exam criteria.arrow_forwardDefine Design modearrow_forwardIn a C program, there are advantages and drawbacks to use parameters rather of a global variable. Parameters may be sent rather than being stored in a variable.arrow_forward
- (Conversion) Write a C++ program to convert kilometers/hr to miles/hr. The program should produce a table of 10 conversions, starting at 60 km/hr and incremented by 5 km/hr. The display should have appropriate headings and list each km/hr and its equivalent miles/hr value. Use the relationship that 1 kilometer=0.6241miles.arrow_forwardHamt stand for whatarrow_forwardC Programming Language Note: Input and Output Must be the same as in case above Use C Language Only need the answer ASAParrow_forward
- Write the program using C Language Onlyarrow_forwardC PROGRAM / C LANGUAGE Make a C program language. Input the number of players then input the number of goals scored for each. Print "Not Messi" if the highest goals exceed 10 and "Okay, fine, it's Messi" if it doesn't INPUT 1. Number of players 2. Goals scored by each player Constraints All of those goals are whole numbers The first line will contain a message prompt to input the number of players • The succeeding lines will contain a message to input the goals scored by each player • The last line contains appropriate resulting message EXPECTED OUTPUT A EXPECTED OUTPUT B Enter the number of players: 4 Goals score by player # 1: 7 Goals score by player #2: 2 Goals score by player #3: 5 Goals score by player #4: 1 Okay, fine it's Messi Enter the number of players: 5 Goals score by player # 1: 10 Goals score by player #2: 2 Goals score by player #3: 20 Goals score by player # 4: 1 Goals score by player # 4: 0 Not Messiarrow_forwardA variable name in the programming language Visual Basic must begin with a letter (uppercase or lowercase) possibly followed by letters, digits (0–9), and various special characters. How many different Visual Basic variable names of length up to four are possible that consist of letters and digits and end in a digit?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 PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning