Answer:
// code to read grade
#include <stdio.h>
// main function
int main(void) {
// if grade is character
char grade;
// if grade is numeric then we can use int or double
// int grade;
// double grade;
printf("Enter your grade:");
// read grade from user
scanf("%c",&grade);
// print grade
printf("your grade is:%c",grade);
return 0;
}
Explanation:
To read a value, scanf() function is used from stdio.h.Read a grade from user and assign it to variable "grade".
Output:
Enter your grade:A
your grade is:A
// code to read die volt
#include <stdio.h>
// main function
int main(void) {
// variable
double die_volt;
printf("Enter die volt:");
// read die volt from user
scanf("%lf",&die_volt);
// print die volt
printf("Entered die volt is:%0.2lf",die_volt);
return 0;
}
Explanation:
Read the die volt from user and assign it to variable "die_volt" with the help
of scanf() function.
Output:
Enter die volt:220
Entered die volt is:220.00
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the number of bottles and cans:");
int numberOfbottles = in.nextInt();
int numberOfcans = in.nextInt();
System.out.printf("Bottles: %8d\n", numberOfbottles);
System.out.printf("Cans: %8d\n", numberOfcans);
}
}
Explanation:
Ask user to input the number of bottles and cans using Scanner class
Print the results so that the numbers to the right line up (Since we know that the numbers have at most 8 digits, we can use %8d in printf. Also, be aware that how printf statements are written so that the numbers line up)
Internet domain extention
Answer: zettabytes
Explanation:
Information system, is simply referred to as an integration of a set of components that are vital for the collection, storage and the processing of data and also important for the provision of information, and knowledge.
With new laws requiring the storage of emails and other important documents, information systems storage now exceeds approximately 4.7 zettabytes.
Answer: a field in a table that links it to other tables in a relational database