Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pls provide code in basic C and not C++ or C#... I specifically need the code because of the part about the social security number,

image text in transcribed

pls provide code in basic C and not C++ or C#... I specifically need the code because of the part about the social security number, I got the rest figured out. I would like to know the input and output code.

L PROBLEM DESCRIPTION You are a software developer for the United States Census Bureau, working on software for the 2020 Census. The particular program that you're developing will ask three questions about a census subject: 1. the average number of hours that the subject spends with friends per week: 2. the average number of web videos that the subject watches per day 3. the subject's Social Security Number. Notice that the average number of hours that the subject spends with friends per week MIGHT NOT BE AN INTEGER; for example, a person might average 13.25 hours spent with friends per week. Likewise, the person might average 8.5 web videos watched per day Note that a number that doesn't have to be an integer is known in mathematics as a real number, and is also known in computing as a floating point number. On the other hand, notice that a person's Social Security Number can be expressed as three integer quantities (the area number, the group number and the serial number. separated by hyphens- for example 123-45-6789 So, this program will have a user input two real quantities (average number of hours spent with friends per week, average number of web videos watched per day), and three integer quantities (the parts of the Social Security Number). Write a program to perform the above task. Note that your program MUST begin with a declaration section in which you declare all necessary variables. This will be followed by the execution section (body), which will: 1. greet the user and explain what the program does, and then 2. prompt the user and input the five quantities, and then 3. output the five quantities

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is the effect of word war second?

Answered: 1 week ago