Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to ask the user about the validity of a simple statement. The program should accept the response then display the statement as

Write a program to ask the user about the validity of
a simple statement. The program should accept the
response then display the statement as well as the
response. The response should be true or false. For
this question, you must use a variable of type bool.
Use the
Convert. ToBoolean ()
method to obtain a bool from an
input.
It is useful to know that Convert.ToBoolean() can work with true, True, tRue, TRUE etc.
Write a program to calculate the area of a circle. The
user will enter the radius of the circle and the
program will calculate and display the area
according to the formula (area =3.14* radius *
radius). You must accept fractions as the input. If
Use the
Convert. ToDouble()
method to obtain a double from
an input.
the user enters 1.2 for the radius then the area will be 4.52.(Use the "F" format-specifier for
floating point values).
Write a program that prompts the user for a number
(that may be a fraction). The program reads in the
input and print the following: the input as a double,
Use the appropriate method of
the Convert class
the input as an int and finally the input as a char.
e.g. if the input is 65.790, then the output will be 65.790,65, and A.
Adult ticket cost $3.75 and child ticket cost $2.25. Write a program to prompt the user for the
amount of adult and child ticket that she needs. The program will display a user-friendly
message of the number of tickets brought as well as the total cost. (Use the "C" format-
string for currency).
Write a program to calculate and display the potential difference between the ends of a wire.
The program will prompt the user for the current flowing and the resistance of the wire.
Potential difference is the product of the current and the resistance of the wire and may
include a fractional part. (Again, use the "F" format-specifier for floating point values).
image text in transcribed

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Pay him, do not wait until I sign

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago