Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me solve this in the C programming language. Create a program called introduction.c that does the following: In this lab, you use printf

please help me solve this in the C programming language.

image text in transcribed

image text in transcribed

image text in transcribed

Create a program called introduction.c that does the following: In this lab, you use printf statements which will make the answers show up at the output window when run. 1. What is your name? 2. Why are you taking CS 133U? 3. What type of programming experience do you have? 4. What type of system (Windows, Linux, Apple, etc.) will you use to develop programs? 5. What IDE (DevC++, Visual Studio, Xcode, etc.) will you use to develop programs? 6. Based on what you know at this time, what do you dislike most about this course? 7. Based on what you know at this time, what do you like most about this course? 8. What are the most important things the instructor should know about you? 9. What are the most important things the instructor should do to help you? 10. If an in-person meeting is needed with your instructor, which PCC campus would be most convenient? Submit your source code file (introduction.c) to the Desire2Learn dropbox for this lab. Sample Output Program: Test Drive Author: Gayathri Iyer 1. My name is Gayathri lyer. 2. I am in this class because I get paid to be here 3. I started programming in C in 1992. I also program in Objective-C and C++. 4. I use OS X for all of my program development in C, Objective-C, and C++ 5. I use Xcode 6. I don't have an answer for this one, but I'm sure you will 7. I like teaching, and I like programming 8. Instructor, know thyself 9. You will have to tell me 10. My office is at the Sylvania campus Some Videos to help (not terribly good) 1. Printf Function 2. Programming in C Tutorial 1: Printf [HD] 3. C Programming - Level 2 Printf, variables, operations Instructions Create a program called dataExercise.c that declares the following variables and displays their values: 1. Declare a character variable with value 'a', and display the character using printf with a %c format. Then add a second printf that displays the character with a %d format. 2. Declare a short int variable with a value set to the maximum value of a short int (the maximum value for whatever machine I happen to use to grade your assignment - so use the correct limits.h constant). Display the value using printf with a %d format. 3. Declare a double variable with a value set to positive infinity. Display the value using printf with a %f format. 4. Prompt the user and accept the following 4 types of values from a single input line: char int char float 5. Display the values that were read in (4) 6. Prompt the user and accept the following types of values from a single input line: char float int char 7. Display the values that were read in (6) 8. Prompt the user and accept an integer value 9. Display the value read in (8) in a right-justified field of width 15, with leading zeroes 10. Prompt the user and accept a float value 11. Display the value read in (10) in a right-justified field of width 15, with 2 decimal points of precision, and leading spaces Your program must adhere to the class coding standards, and will be graded using the assignment grading criteria. Submit your source code file to the Desire2Learn dropbox for this assignment. Some example videos A video for Visual Studio users to get the pesky scanf error issue out of the way. DO NOT USE scanfs Sample Output (green), sample input in blue Program: dataExercise.c Author: Gayathri Iyer 97 32767 +INF Enter char int char float: a 5 b 5.5 You entered: 'a' 5 'b' 5.500 Enter char float int char: a 6.5 6 b You entered: 'a' 6.500 6'b' Enter an integer value: 5 You entered: 000000000000005 Enter a float value: 6.5 You entered: 6.50 ----PC OUTPUT Program: data Exercise.c Author: Gayathri Iyer 97 32767 1.#INF00 Enter char int char float: a 5 b 5.5 You entered: 'a' 5 'b' 5.500 Enter char float int char: a 6.5 6 b You entered: 'a' 6.500 6 'b' Enter an integer value: 5 You entered: 000000000000005 Enter a float value: 6.5 You entered: 6.50

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Statistical And Scientific Database Management International Working Conference Ssdbm Rome Italy June 21 23 1988 Proceedings Lncs 339

Authors: Maurizio Rafanelli ,John C. Klensin ,Per Svensson

1st Edition

354050575X, 978-3540505754

More Books

Students also viewed these Databases questions

Question

What are the specific things I will do to improve my sensitivity?

Answered: 1 week ago