Create a C program, which writes a prompt that asks a user to enter average daily temperature information for two cities. One prompt should request the city name, and the other prompt should request the average daily temperature. Store the data received in two arrays (one for temperature and one for city).
#include<stdio.h>
int main()
{
int i=0;
int temp[2];
char city[2][10];
printf(" Enter the name of the first city : ");
scanf("%s",&city[0]);
printf(" Enter the temperature of the first city :
");
scanf("%d",&temp[0]);
printf(" Enter the name of the second city : ");
scanf("%s",&city[1]);
printf(" Enter the temperature of the second city :
");
scanf("%d",&temp[1]);
printf("\nThe cities stored are : \n");
for(i=0;i<2;i++)
{
printf("%s",city[i]);
printf("\n");
}
printf("\nThe temperatures stored are : \n");
for(i=0;i<2;i++)
{
printf("%d",temp[i]);
printf("\n");
}
}
Sample Run :

Create a C program, which writes a prompt that asks a user to enter average daily...
Develop a Java program that will store data in the form of daily average temperatures for one week. Store the day and average temperature in two different arraylists. Your program should prompt the user for the day of the week (Monday through Sunday) and display both the day and temperature for each day. If “week” is entered, the output for your program should provide the temperature for each day and the weekly average. Use the looping and decision constructs in...
I need Pseudocode Algorithm only, please Write a program that asks the user to enter the name of his or her favorite city. use a String variable to store the input. The program should display the following: The number of characters in the city name the name of the city in all uppercase letters the name of the city in all lower case letters the first character in the name of the city
C++ TrainStation Program Create a function called searchForSchedules that will: - prompt a user to enter a scheduleId - search for arrival and departure times of trains based on a trains ID number Create a function called editSchedules that will: - allow the user to edit the fields for a given schedule that is in the linked list. - the program must prompt the user to enter the scheduleId as the key to find the schedule to edit. Print a...
Write a C++ program that asks the user to enter first lettters of the names of his two favourite persons. The program should print which persons name comes first alphabetically.
Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in the array and then display the following data: The lowest number in the array The highest number in the array The total of the number in the array The average of the numbers in the array PLEASE GIVE THE PSEUDOCODE AND CODE IN C PROGRAMMING
Create a Java program which asks the user how many names they want to enter. The program should then instantiate an array that will hold this many names. The main method should call a method, getNames() to allow the user to enter the names. A for loop should be used in this method. Once the names are entered, the main method should call another method displayNames() which will use a while loop to display the names entered.
***** JAVA ONLY ***** Write a program that asks the user to enter the name of a file, and then asks the user to enter a character. The program should count and display the number of times that the specified character appears in the file. Use Notepad to create a simple file that can be used to test the program. ***** JAVA ONLY *****
Write python program using IDLE Write a full program that asks the user to enter his/her name then repeatedly ask to enter the temperature in Fahrenheit and convert it to Celsius, the program should then prompt the user if he/she wants to continue or exit the program. The formula for the conversion is: °C = (°F - 32) x 5/9 The program should use a function for the conversion. An Example of a sample run should appear on the screen...
write in python idle Write full program that asks the user to enter his/her name then repeatedly ask to enter the temperature in Fahrenheit and convert it to Celsius, the program should then prompt the user if he/she wants to continue or exit the program. The formula for conversion is: °C = (°F - 32) x 5/9 The program should use a function for the conversion. An Example of a sample run should appear on the screen like the text...
Matlab Create a program that asks the user to input a file name. Import the data from the file and store it in a variable. Create a histogram with 10 bins using the data from the file. Label the graph clearly