URGENT! Please help, i have been working on this for 25+ hours now and i just keep getting error after error. Write in C

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

URGENT! Please help, i have been working on this for 25+ hours now and i just keep getting error after error. Write in C

Post by answerhappygod »

URGENT! Please help, i have been working on this for 25+ hours
now and i just keep getting error after error. Write in C please. I
really need help
Write a C console application that reads any given number of
settings. Each setting is a pair of name and value. The number of
settings to be read is the first thing the program asks for.
Input the number of settings First, the program prompts the user
for the number of settings that will be provided.
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 1
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 1 (45.77 KiB) Viewed 31 times
There is no upper limit for this value. Which means the array
has to be allocated dynamically. If the program does not have
enough memory (i.e. NULL returned from malloc): quit
gracefully.
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 2
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 2 (31.55 KiB) Viewed 31 times
If the number of items provided is invalid, the program prints
an error message, discards the rest of the line, and prompts for
the value again - until it’s a valid value.
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 3
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 3 (52.61 KiB) Viewed 31 times
Input each setting’s name and value Prompts the user for each
setting’s name and value. Each setting’s name and value are
validated individually. - If the setting name is too long, the
program prints an error message, discards the rest of the line, and
prompts for the name again - until it’s a valid name. - If the
setting value is invalid, the program prints an error message,
discards the rest of the line, and prompts for the value again -
until it’s a valid value. Don’t re-prompt for the setting’s name.
If the name provided contains spaces, read the first word and throw
away the rest of the line.
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 4
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 4 (29.87 KiB) Viewed 31 times
Output the formatted settings Print a header like “ ----------
SETTINGS ----------” Have the sample format for each setting
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 5
Urgent Please Help I Have Been Working On This For 25 Hours Now And I Just Keep Getting Error After Error Write In C 5 (87.85 KiB) Viewed 31 times
Limits - Max setting name size: 12 characters (the setting’s
name doesn’t need to be dynamic) - The minimum number of settings
is 1 (one). - Setting names cannot have spaces (no need to
re-prompt if 2 words are provided, accept the 1st)
PS C:\bin\L2> .\settings.exe Number of settings: 100 Setting name (1 of 100): |

PS C:\bin\L2> .\settings.exe Number of settings: 100000000000 Out of memory

PS C:\bin\L2> .\settings.exe Number of settings: not even a number Invalid Number of settings: 0 Invalid Number of settings: 1 Setting name (1 of 1): |

PS C:\bin\L2> .\settings.exe Number of settings: 2 Setting name (1 of 2): this-is-way-too-long Invalid Setting name (1 of 2): no-spaces ignore Setting value (no-spaces): not a number Invalid Setting value (no-spaces): 1 Setting name (2 of 2): fullscreen Setting value (fullscreen): 0 -- SETTINGS --- [no-spaces [fullscreen ] 1 e

PS C:\bin\L2> .\settings.exe Number of settings: 3 Setting name (1 of 3): vsync Setting value (vsync): 0 Setting name (2 of 3): max_width Setting value (max_width): 1920 Setting name (3 of 3): max_height Setting value (max_height): 1080 SETTINGS ]e [vsync [max_width ] 1920 [max_height ] 1080
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply