C++ How to Program (10th Edition)
10th Edition
ISBN: 9780134448237
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
HCI is (Human Computer Interaction)
Answer the following five statements by first stating whether it is true or false and then given one sentence for justifying your answer
a) You drag a folder to make a copy of its contents. An animation appears on the screen, showing files moving from one folder to another. This is an example of feedback.
b) In augmented reality a screen is composed of a computer animation of the reality.
c) The Model Human Processor is used in HCI to model complex cognitive processes
d) Petri Nets can be helpful in modeling concurrent activities in a user interface.
e) Gestalt is important to HCI as it offers tools to understand scenes.
Problem B Musical Key ConversionThe chromatic scale is a 12-note scale in music in which all notes are evenly spaced: that is, the
ratio of the frequency between any two consecutive notes is constant. The notes are typically labeled in the following sequence:
A, A#, B, C, C#, D, D#, E, F, F#, G, G#
After G#, the labels loop back and start over with A (one octave higher). To convert between musical keys, you can shift all notes in a piece of music a constant number of steps along the scale above. For example, the sequence of notes
E, E, F, G, G, F, E, D, C, C, D, E, E, D, D
can be converted to another musical key by shifting everything up three steps:
E, E, F, G, G, F, E, D, C, C, D, E, E, D, D G, G, G#, A#, A#, G#, G, F, D#, D#, F, G, G, F, F
Notice that G was converted to A#, since going three steps up required us to loop off of the top of the scale back to the bottom: G -> G# -> A -> A#. Technically we should note that this would be A# of the next octave up, but we’ll…
7: Exams.cpp) Suppose a teacher weights the four
exams he gives 10%, 25%, 30%, and 35%. Write a program
that reads ten sets of four grades, prints the weighted
average of each set, and prints the unweighted average of
each test. The number of students should be in a global
constant.
Chapter 14 Solutions
C++ How to Program (10th Edition)
Ch. 14 - (Fill in the Blanks) Fill in the blanks in each of...Ch. 14 - (File Matching) Exercise 14.3 asked you to write a...Ch. 14 - (File Matching Test Data) After writing the...Ch. 14 - Prob. 14.8ECh. 14 - (File-Matching Enhancement) Its common to have...Ch. 14 - Write a series of statements that accomplish each...Ch. 14 - Prob. 14.11ECh. 14 - (Telephone-Number Word Generator) Standard...Ch. 14 - (sizeof Operator) Write a program that uses the...Ch. 14 - Prob. 14.14MAD
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
- Assume that the following code segment is executed. Which may occur when the run method of the program executes?arrow_forward4. The car license (number) plate has 3 letters and 4 digits. Determine following. (a) no letter or digit can be repeated (without repetitions) (b) with repetitions allowedarrow_forwardScientific Computing (Matlab) Q1: Write a script named "CheckNumber" that ask the user to enter a number and check if the number is positive or negative? Provide an example to explain the function.arrow_forward
- -s) Using Matlab commands, write a program to draw a red triangle with its corners' coordinates defined as follows: (23,20), (40,6) and (3,6).arrow_forward(Python matplotlib or seaborn) CPU Usage We have the hourly average CPU usage for a worker's computer over the course of a week. Each row of data represents a day of the week starting with Monday. Each column of data is an hour in the day starting with 0 being midnight. Create a chart that shows the CPU usage over the week. You should be able to answer the following questions using the chart: When does the worker typically take lunch? Did the worker do work on the weekend? On which weekday did the worker start working on their computer at the latest hour? cpu_usage = [ [2, 2, 4, 2, 4, 1, 1, 4, 4, 12, 22, 23, 45, 9, 33, 56, 23, 40, 21, 6, 6, 2, 2, 3], # Monday [1, 2, 3, 2, 3, 2, 3, 2, 7, 22, 45, 44, 33, 9, 23, 19, 33, 56, 12, 2, 3, 1, 2, 2], # Tuesday [2, 3, 1, 2, 4, 4, 2, 2, 1, 2, 5, 31, 54, 7, 6, 34, 68, 34, 49, 6, 6, 2, 2, 3], # Wednesday [1, 2, 3, 2, 4, 1, 2, 4, 1, 17, 24, 18, 41, 3, 44, 42, 12, 36, 41, 2, 2, 4, 2, 4], # Thursday [4, 1, 2, 2, 3, 2, 5, 1, 2, 12, 33, 27, 43, 8,…arrow_forwardPython question Question 18 (Basic problem) A list of tuples named cereal_data contains calorie and price details of different cereals. Each tuple contains three elements. The first element of each tuple is the cereal name, stored as a string. The second element is the calorie content and the third element is the price per 100g. The calorie content and the prices are stored as floats. Write a function chosen_cereals(cereal_data,dollar_amount,cal_amount), which returns a list of cereal names which costs less than the dollar_amount and contains less calories than cal_amount. Your function should return None if no records are available that meet the given criteria. See the examples given below (doctests). Note: Your function should work with any database given. def chosen_cereals(cereal_data,dollar_amount,cal_amount): """ Input: A list of tuples with the cereal name, calorie content and the price per 100g. Output: A list of cereal names that costs less than the…arrow_forwardLAB 5 (Selection) A scanner in the department stores reads in the following string (simulate with file input) 22349999991019203150 Where 2234 (first four digits is the department code) 1000-1999 Clothing 2000-2999 Hardware 3000-3999 Food 4000-4999 Toys 5000-5999 Sporting Goods 6000-9999 - Misc. 999999 (next 6 digits) are the part number 101920 next 6 digits are the date (mmddyy) 3150 The remaining digits are the price in pennies ($31.50) Ask the user if receipt should be printer to screen, data file or both. ACME STORE Feb 26, 2020 Hardware Department Item # 999999 Price $31.50 Discount (10%). $3.15 Tax (6.625%) $1.88 Total $30.23 ****arrow_forwardQ3/ A) Find the error in the following code. (x=-10:1:10; y--10:2:10; plot (x,y)) a) Plot is not available in MATLAB, b) Syntax of plot is wrong, c) Length of x and y should be same, d) No error B) Write M. file function to build MATLAB function (factorial four ( 4!) is equal to 24.) without using fact() functionarrow_forwardQ2) Write a C code for a data storage system that works with the command system. The system works with a two-digit number command system. The ones digit of the number entered as a command indicates the data line where the operation will be performed. Tens digit "1" means data addition and "2" means data deletion. There are 10 data lines in total. The program should not end. Enter command: 24 Enter command: 14 Add process for 4 Enter data 1: 25 Enter data 2: 36 Enter data 3: 78 -- Clear process for 4 -- Updated Data: e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e еееее e e e e e e e e e e e e e e e Enter data 4: 59 Enter data 5: 2 Updated Data: еееее e e e e e e e e e 0 e e e e e 25 36 78 59 2 e 0 0 0 0 e e e e e e e e e e e e 0 0 0 e e 0 0 e Enter command: Enter command:arrow_forwardQ1) Write a C code that outputs in the form of square matrices given as an example below according to the number of "N" entered. (“N" value presents size of (N x N) square matrix.) The only input should be the number "N" and output in the required order. Note: Be careful when the "N" value is even and odd. Please enter size of table 5 1 2 3 2 1 2 3 4 3 2 3 4 5 4 3 4 5 6 5 4 5 6 7 6 5 Process exited after 2.525 seconds with return value e Press any key to continue . Please enter size of table 4 1 2 2 1 2 3 3 2 3 4 4 3 4 5 5 4 Process exited after 1.206 seconds with return value e Press any key to continuearrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_ios
Recommended textbooks for you
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author: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
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Algebraic Expressions – Algebra Basics; Author: TabletClass Math;https://www.youtube.com/watch?v=U-7nq7OG18s;License: Standard YouTube License, CC-BY
Python Tutorial for Beginners 3 - Basic Math, Mathematical Operators and Python Expressions; Author: ProgrammingKnowledge;https://www.youtube.com/watch?v=Os4gZUI1ZlM;License: Standard Youtube License