Write a c program that asks for the users age

Assignment Help Computer Engineering
Reference no: EM132194626

Question :

Write a C program that asks for the user's age. If it is equal to or greater than 21, print a msg to a file named "Yes.txt" telling the user tha the or she is allowed to drink alcohol.

If the user's age is less than 21, print a msg to a file named "No.txt" telling the user how many years he or she has to wait before legally being allowed to drink.

Reference no: EM132194626

Questions Cloud

Print the sum of all the integer numbers : Write a c++ program that asks the user for two integer values and prints the sum of all the integer numbers between the two integers input by the user.
What is the total distance walked : An explorer walks 13 km due east, then 18 km north, and finally 3 km west. What is the resulting displacement of the explorer from the starting point?
Calculate the tension in the cable : An elevator filled with passengers has a mass of 1652 kilograms and moves upward at a speed of 7.4 meters/second for 1 seconds.
Implement a dynamic queue using car as an object : In a car assembly line, cars move on a belt from station to station in a queue. On each station, various components are attached to the cars.
Write a c program that asks for the users age : Write a C program that asks for the user's age. If it is equal to or greater than 21, print a msg to a file named "Yes.txt" telling the user.
Determine the capacitive reactance of the capacitor : A 145 O resistor is connected in series with a 5.75 µF capacitor. The voltage across the resistor is vR=(1.20V)cos(2500rad/s)t.
Describe how a firm configures its marketing mix : What is meant by a marketing mix? Briefly describe how a firm configures its marketing mix.
Write a c program to compute the check digit for the upc : Write a C program to compute the check digit for the UPC. Compute the Checksum as follows: Add the odd digits together in one sum.
What is the minimum speed that the man must have : A man is going to complete a full vertical loop around a post to which a swing is attached. The swing's rope mass is negligible.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down a c program which accepts by keyboard input 8

write a c program that accepts by keyboard input 8 user-ratings of the galaxy s5. the ratings use a scale of 1 to 10

  Write a program to calculate and display a persons body bmi

Write a program to calculate and display a person's Body Mass Index (BMI). BMI is an internationally used measure of obesity.

  Add the code to control the loop

Add the code to control the loop. You may use either a while loop or a do...while loop.

  Conduct research on the website planning process

Conduct research on the website planning process. Create a new document by pulling down the File menu and clicking New.

  What is the size of the initial unsimplified rom

Three light-emitting diodes [LEDs] (one red, one green, one blue) turn on when a number 0-7 is passed through.

  Determine the system function of the overall cascade system

The diagram in Fig. depicts a cascade connection of two linear time-invariant systems; i.e., the output of the first system is the input to the second system.

  Define virtualization as the creation of a virtual resource

Techopedia.com defines Virtualization as the creation of a virtual resource such as a server , desktop, operating system, file, storage or network.

  Dma is executed by a dma controller that doesnt capture

write a 200- to 300-word short-answer response to the followingthe idea behind it is to free up the cpu so it can do

  Write a program that prompts the user to input an integer

Write a program that prompts the user to input an integer that represents cents.

  What will be toms expected profit from selling cookies

Suppose that Tom buys 220 cookies each morning. Use Analytic Solver Platform to perform 5,000 trials of a Monte Carlo simulation on a spreadsheet.

  How many seconds to wait between each scan of the system

Tells spy how many seconds to wait between each scan of the system process table. The default value is one.

  List and describe five of the sustainable design guidelines

List the three possible venues for disassembled components of a product at its end of life. List and describe five of the sustainable design guidelines.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd