C How to Program (8th Edition)
8th Edition
ISBN: 9780133976892
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 1, Problem 1.16MD
(Programmer Responsibility and Liability) As a programmer in industry, you may develop software that could affect people’s health or even their lives. Suppose a software bug in one of your
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
: Erroneous beliefs about software and the process that is used to build it are called myths. These myths are found in managers, customers, and practitioners, and may cause serious problems for them. You are required to briefly describe the following myth. [Customers’ Myth] - A general statement of objectives is sufficient to begin writing programs—we can fill in the details later.
(Article computer information systems)
What are the two primary types of software? How are they different?
(C PROGRAMMING ONLY)
6. Finding the Impostorby CodeChum Admin
There's this Dog game I played where a group of Dogs gather together and complete missions. One of them though is an impostor because it is not a real dog; its breed is not a dog breed.
Your task is to find that impostor. To do this, you need to check
Instructions:
In the code editor, you are provided with the enum, DogBreed. Furthermore, an initial main() code is provided for you where the user is asked for what the breed of the Dog.Then, in lines 18 - 22, a partial code to check if the breed is valid or not is given.Your task is to fill in the correct condition. Make sure to use the values of the enum, DogBreed in checking.Input
1. Dog Breed
Output
Input·the·breed·of·the·dog:·2Yup,·the·breed·is·valid
Chapter 1 Solutions
C How to Program (8th Edition)
Ch. 1 - Categorize each of the following items as either...Ch. 1 - Fill in the blanks in each of the following...Ch. 1 - Prob. 1.6ECh. 1 - Prob. 1.7ECh. 1 - Prob. 1.8ECh. 1 - (Internet Negatives) Besides their numerous...Ch. 1 - Prob. 1.10ECh. 1 - (Test-Drive: Body Mass Index Calculator) Obesity...Ch. 1 - Prob. 1.14MDCh. 1 - (Privacy) Some online e-mail services save all...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
Consider the expression (a && b). Write an equivalent expression (one that evaluates to true at exactly the sam...
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
3.12 (Date Create a class called Date that includes three pieces Of information as data
members—a month (type ...
C++ How to Program (10th Edition)
Consider the following two relations for Millennium College: STUDENT(StudentID, StudentName, CampusAddress, GPA...
Modern Database Management
Why is it necessary to introduce some methods and documentation from plan-based approaches when scaling agile m...
Software Engineering (10th Edition)
This statement can cause other program statements to execute only under certain conditions. 1. Conditional 2. D...
Starting Out With Visual Basic (8th Edition)
Which of the following are not valid cout statements? (Select all that apply.) A) cout Hello World; B) cout H...
Starting Out with C++ from Control Structures to Objects (9th Edition)
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
- (Thermodynamics) a. Design, write, compile, and run a program that determines the work,W, performed by a piston engine providing a force of 1000 N over a distance of 15 centimeters. The following formula is used to determine the work performed: W=Fd F is the force provided by the piston in Newtons. d is the distance the piston moves in meters. b. Manually check the values computed by your program. After verifying that your program is working correctly, modify it to determine the work performed by six pistons, each providing a force of 1500 N over a distance of 20 centimeters.arrow_forward(C PROGRAMMING ONLY) 3. Entertaining the Boredby CodeChum Admin We're now in the middle of our tour but I see these two guys getting bored. I see that their level of engagement is getting low. Luckily, I remember that I'm good at cheering up. Oh wait, the last time I cheered someone up was a long time ago. Please help me learn how to cheer people up again. Instructions: In the code editor, you are provided with the main() function that asks the user for 2 double numbers which represents the engagement levels of the two bored guys and the passes the address of those 2 double numbers to the function call for the function, cheerUp().Your task is to implement the function definition of the cheerUp() function. The cheerUp() function should update the values passed by multiplying each of them by 3.Do not edit anything in the main() function.Input 1. First Engagement Level 2. Second Engagement Level Output Enter engagement level #1: 42.31Enter engagement level #2: 20 Updated engagement…arrow_forward(Topic:Software Design) Q# 1) Write the difference between Logical and Physical software design, Also give some examples of both.arrow_forward
- (C PROGRAMMING ONLY!) 3. Pet Loverby CodeChum Admin One of the easiest ways to make a pet lover happy is to give them very many pets! My friend, Jhelian is a pet lover and for her 21st birthday, I'm planning to give her very many Dogs. It's very timely because my pet dog just gave birth to a lot of cuties! So I don't really need to buy. All I need is to just give these cute little fur babies to her. Instructions: In the code editor, you are provided with the definition of a struct Dog. This struct needs a character value for its gender, which could either be 'm' for a male Dog or 'f' for a female Dog.Furthermore, an array of Dogs has already been created an each of their genders has been set. Then, on line 16, a call to the function giveDogs() was made where the dogs array was passed.Your task is to implement this giveDogs() function which has the following details:Return type - voidName - giveDogsParametersa pointer/holder of a Dogs arraysize of the Dogs arrayDescription - loops…arrow_forward(C LANGUAGE ONLY) 5. Sorting My Todo List by CodeChum Admin Thanks to your help, Programmer. I have reached this point in my life where I feel like I could bounce back and fight again. Thank you for being a good friend ? I just need one last help please, if it's still okay with you. You see, I already have a plan for my life, all that's left to do is to prioritize these things. I want to tackle the biggest items in the list first. Can you help me sort these in descending order please? Instructions: You are given an array which contains predefined elements. Your task is to sort the array in descending order and then print all the elements in 1 line. Output 101·100·99·99·98·91·89·78·77·69·69... source code:arrow_forward( C PROGRAMMING ONLY) 5. Talented Dogsby CodeChum Admin I've just been to a Dog show and the dogs in there are really talented! One Dog was able to jump over a very high bar and one was able to perform a CPR on a human! Now, I'm inspired to train my Dog too so people will also say that mine is talented! Could you please help me with this? Instructions: In the code editor, you are provided with the enum, DogTalent. Then in the main(), the user is asked for an option which represents the talent to be trained. After that, the option selected is checked and the appropriate talent message is printed.Your task is to fill in the blanks found in lines 20 - 24, with the correct enum values of the DogTalent.Input 1. Talent selected Output Which·talent·do·you·want·to·choose?d·-·Dancej·-·Jugglep·-·Play·DeadEnter·option:·dThe·dog·now·knows·how·to·dance!arrow_forward
- (python) 15. When you create a function that has no return/ return type, it automatically returns: a. True b. False c. 0 d. Nonearrow_forward(a) Think about a program that you have written in the past. Would another programmer beable to make changes to it easily? Why or why not?arrow_forward(Capstone) What is the difference between research and designarrow_forward
- (Calculating Weekly Pay) A company pays its employees as managers (who receive a fixedweekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours theywork and “time-and-a-half”—i.e., 1.5 times their hourly wage—for overtime hours worked), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money for each of the items they produce—each pieceworker in thiscompany works on only one type of item). Write a program to compute the weekly pay for eachemployee. You do not know the number of employees in advance. Each type of employee has itsown pay code: Managers have paycode 1, hourly workers have code 2, commission workers havecode 3 and pieceworkers have code 4. Use a switch to compute each employee’s pay based on thatemployee’s paycode. Within the switch, prompt the user (i.e., the payroll clerk) to enter the appropriate facts your program needs to calculate each employee’s pay based on…arrow_forward(python) explain what is encapsulation by giving example codes in pythonarrow_forward(PYTHON)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 Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
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