
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
screen shot output of the code

Transcribed Image Text:The pricing above applies to standard font size 24 pts, while font size 36 pts will cost 1.5
times and font size 48 pts will cost 2 times.
Both the characters' pricings and the fonts' pricings are stored in files, as these can change
anytime. (See Appendix A)
Write the following functions.
(i) readPricing(filename: string, pricing: dictionary) where the parameter is a
string representing the filename that the pricing is stored. This function reads
the file and store the keys and values into the given dictionary. The keys are the
characters, and the values are the pricings.
(a)
Using readPricing(), we can setup the character's pricing dictionary and fonts'
pricing dictionary, by providing the appropriate filenames.

Transcribed Image Text:The question covers concepts in all the seminars. Apply data structures to store and process
information. Employ structure programming and use of functions to make the program modular.
MonkeyPrint is a company that provides shirt embroidery services. The prices (in cents) for
sewing characters onto clothing are shown in Table 4-1. For example, the price of sewing an
uppercase 'H' is 45 cents and a lowercase 'a' is 63 cents. Characters not found in Table 4-1
cannot be embroidered.
Pricing for font size 24pts
‒‒‒‒‒‒
A 44
H 45
0 56
V 49
C 37
j 50
q 55
x 53
# 64
B 79
I 38
P 53
W 46
d 55
k 51
r 53
y 54
30
C 60
J 49
Q 41
X 48
e 63
1 36
s 61
z 39
36
>
D 56
K 51
R 58
Y 54
f 58
m 32
t 57
! 36
<38
E 46
L 36
S 65
Z 52
g 40
n 58
u 37
& 65
> 38
Table 4-1
F 50
M 48
T 36
a 63
h 31
o 50
v 33
*65
? 45
G 65
N 55
U 23
b 55
1 35
p 55
w 59
$ 65
@65
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 4 steps with 3 images

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
- Don't copy anything i'll dislike then.arrow_forwardHow do I complete the code to get a similar output in the image? Fibonacci Sequence Coding using Memoization C PROGRAM HELP: - Create the mfib() function to calculate Fibonacci using memoization - Also create the initMemo() function to clear out memoization table(s) at the beginning of each mfib() run The output of the program will record the relative amount of time required from the start of each function calculation to the end. Note the speed difference between fib and mfib! Turn in your commented program and a screen shot of the execution run of the program. Do not be alarmed as the non-memoization Fibonacci calls take a long time to calculate, especially the higher values. Be patient. It should finish. Given Code: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <time.h> // max number of inputs #define MAX_FIB 200 // result of call to fib function unsigned long long result; //loop variable int i; //…arrow_forwardA for loop is a ______ loop. Select one: a. Limit-controlled b. Function-controlled c. Range-controlled d. Count-controlledarrow_forward
- How do I complete the code to get a similar output in the image? Fibonacci Sequence Coding using Memoization C PROGRAM HELP: - Create the mfib() function to calculate Fibonacci using memoization - Also create the initMemo() function to clear out memoization table(s) at the beginning of each mfib() run The output of the program will record the relative amount of time required from the start of each function calculation to the end. Note the speed difference between fib and mfib! Turn in your commented program and a screen shot of the execution run of the program. Do not be alarmed as the non-memoization Fibonacci calls take a long time to calculate, especially the higher values. Be patient. It should finish. Given Code: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <time.h> // max number of inputs #define MAX_FIB 200 // result of call to fib function unsigned long long result; //loop variable int i; //…arrow_forwardFlowchart,code and outputarrow_forwardInstructions C++ 8-17 A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee’s weekly pay and the average salary of all employees. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees (Name) a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week (Hrs Worked), the hourly pay rate (Pay Rate), and the weekly pay (Salary). Your program must contain at least the following…arrow_forward
- EGR 226 HOMEWORK #3 Generate a code (in C) for the STM32F446RE microcontroller on the Nucleo-64 dev board with the following features The program is to blink the LED attached to pin PA5 Uses the SysTick to keep time. The period of the LED blink is to be 1s, 0.5s, and 0.25s. The period is selectable with the button attached to pin PC13 such that it starts at 1s. When the button is pressed the blink will have 0.5s. Then 0.25s. Another press will return the period to 1s. Problem #1: Do not include the "stm32f4xx.h" header. Generate the code without using a header and directly addessing each of the registers using their memory locations. Problem #2: Do not include the "stm32f4xx.h" header. Generate the same program using preprosessor directives (#define's) to more readably set the registers. Problem #3: Include the "stm32f4xx.h" header.Generate the same program using the register definitions included in "stm32f4xx.h" header. Submit the three programsarrow_forwardGiven the array initialization int alpha[5] = {100, 200, 300, 400, 500}; Write the loop to produce the output 400 300 200 100explain please C++arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education