Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This program need to be able to run on C visual studio 2015. Thank you .11 Sprin

ID: 3869824 • Letter: T

Question

This program need to be able to run on C visual studio 2015. Thank you .11 Sprint 8:38 PM 85% Close HW-2 © 2017 Saeed Rajput, Ph.D Problem **Submit source code (labl.c) through Canvas Lab topic: Simple Interactive program- Declare any 1. Print "Hello my name is (add your name here)" onto the screen. 2. Ask the user for a number 3. Scan the number from the user 4. Multiply the number by 2 variables needed 5. Print the number and the product back onto the screen. 6. Ask the user for a letter 7. Scan the letter from the user 8. Make an uppercase and a lowercase version of the letter (use the library ctype.h) 9. Print both letters back onto the screen. Automatic "O" Policies Any of the following will trigger an automatic zero score for your assignment

Explanation / Answer

Lab1.c

#include <stdio.h>

#include <ctype.h>

int main(void)

{

int num1, num2;

char a, b ,c;

printf (" Hello my name is Sandhya ! ");

printf ('' Enter a number :");

scanf ("%d", &num1);

num2 = num1*2;

printf (" The input number is : %d ", num1);

printf ("The product obtained on multipying the number by 2 is : %d ", num2);

printf (" Enter a lowercase character ");

scanf (" %c ", &a);

b = toupper(a);

printf (" The uppercase format of the letter is %c ", b);

c = tolower(b);

printf (" The lowercase format of the letter is %c ", c);

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote