如何在VB控制台应用程序基础电源编号中编写程序 [英] how to write a program in VB console application base power number

查看:73
本文介绍了如何在VB控制台应用程序基础电源编号中编写程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

- VB控制台应用程序中的一个程序,它显示一条欢迎消息,简要介绍该程序的功能。

- 提示用户输入基数

- 显示结果odf将基数提升到0到第五次幂。

- 如果用户希望看到更多具有相同基数的结果,请询问用户。

-If是;程序显示下一个结果(这个结果一直持续到用户点击否)

- 如果命中NO,程序将询问他们是否想要从另一个基地开始。

- 如果用户选择是,则程序重新开始,允许用户选择另一个基础



要求

1.必须使用以下(在最小值Main(),显示结果()

2.使用varoable启动和/或停止计数器循环

3.用于存储结果的长数据类型变量

4.使用比全局更多的局部变量

5.Program验证用户为base输入无效数值并重新提示用户输入有效的基数

6.程序将保留一个日志文件,其中包含每个会话的开始时间和终止时间

7.必须使用VB控制台应用程序编写。

解决方案

这是你自己的作业,你应该这样做,所以喜欢编程,并在你有一个正确的问题时问这里。

-A program in VB console application, that displays a Welcome message to briefly explain what the program does.
-Prompt the user to enter a base number
-Display the results odf the base number raised to 0 through the fifth power.
-Ask the user if they would like to see more results with the same base.
-If YES; program displays the next results (this recures until the user hits NO)
-If the hit NO, program will ask if they want to start over with another base.
-If the user selects YES, the program starts over allowing the user to select another base

Requirements
1. Must utilize the following (at a minimum) Main(), display results()
2. Use a varoable to start and / or stop the counter loop
3. Long datata type variable to store results
4.uses more local variables than global
5.Program validates user enters invalid numerical value for base and re prompts user to enter valid base
6. Program will keep a log file with the start time aand termination time of each session
7. Must be written in VB console app.

解决方案

It is your own homework and you are supposed to do it, so enjoy programming and ask here when you have a proper question.


这篇关于如何在VB控制台应用程序基础电源编号中编写程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆